1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#ifdef W2_HOST_WIN32 #include "serial.h" int w2_serial_read() { return 0x00; } bool w2_serial_write(char *data, uint8_t length) { return true; } bool w2_serial_open(const char *port_name) { return true; } void w2_serial_close() { return; } #endif