* With small example code in master. * esp_connect currently blocks the execution. * Debug messages in socket don't follow the standart. (It is .c file, while debug messages are done in c++) * LpcUart will work only with UART1, due to the PIN_FUNC.
31 lines
487 B
C
31 lines
487 B
C
/*
|
|
* serial_port.h
|
|
*
|
|
* Created on: 25.8.2021
|
|
* Author: keijo
|
|
*/
|
|
|
|
#ifndef SERIAL_PORT_H_
|
|
#define SERIAL_PORT_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
void serial_init(void *ctx);
|
|
void serial_write_buf(void *ctx, const char *buf, int len);
|
|
void serial_write_str(void *ctx, const char *s);
|
|
int serial_read_buf(void *ctx, char *buf, int len);
|
|
int serial_get_char(void *ctx, char *p);
|
|
int serial_peek(void *ctx);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif /* SERIAL_PORT_H_ */
|