RedHawk 01784b6a80 esp_socket: [#57] Added driver for esp.
* 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.
2023-06-11 12:20:51 +03:00

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_ */