NuMaker RS485 lib
Dependents: NuMaker-mbed-modbus-sample
Diff: nvt_rs485.h
- Revision:
- 4:3bdf456890b6
- Parent:
- 1:783999122629
--- a/nvt_rs485.h Fri Oct 06 02:23:24 2017 +0000 +++ b/nvt_rs485.h Thu Feb 25 15:26:25 2021 +0800 @@ -2,8 +2,12 @@ #define NVTRS485_H #include "mbed.h" - +#if MBED_MAJOR_VERSION >= 6 +#include "MyUnbufferedSerial.h" +class NvtRS485 : public MyUnbufferedSerial { +#else class NvtRS485 : public Serial { +#endif public: NvtRS485(PinName tx, PinName rx, PinName dir); virtual ~NvtRS485(void);