NuMaker Transfer data UART to Ethernet
Fork of Serial-to-Ethernet by
Diff: ste_config.h
- Revision:
- 7:c03b2ed97d94
- Parent:
- 6:014b1a469aed
--- a/ste_config.h Tue Mar 02 10:09:10 2021 +0800 +++ b/ste_config.h Mon Mar 06 04:07:18 2023 +0000 @@ -13,9 +13,9 @@ #include "FATFileSystem.h" #include "NuSDBlockDevice.h" - -#include "BufferSerial.h" - +#if MBED_MAJOR_VERSION <= 5 +#include "BufferedSerial.h" +#endif /* A simple web server for network and UART configuration 0: Disable the web server. @@ -70,7 +70,7 @@ typedef struct { E_NetMode mode; // Network server or client mode int port; // Network port number (Server mode) - BufferSerial *pserial; // UART number + BufferedSerial *pserial; // UART number int baud; // UART baud int data; // UART data bits int stop; // UART stop bits @@ -88,3 +88,5 @@ void start_httpd(void); #endif + + \ No newline at end of file