test
Dependencies: mbed Watchdog stm32-sensor-base2
Diff: RS485/RS485.cpp
- Revision:
- 2:b7fdc74e5c5d
- Child:
- 4:f6e22dd39313
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RS485/RS485.cpp Tue Jul 07 15:19:06 2020 +0530 @@ -0,0 +1,18 @@ +#include "RS485.h" + +RS485::RS485(PinName tx, PinName rx, PinName mode, const char *name) : Serial( tx, rx, name), m_modePin(mode) +{ + m_modePin = 0; +} + +int RS485::_getc() { + return _base_getc(); +} + +int RS485::_putc(int c) { + m_modePin = 1; + int ret = _base_putc(c); + m_modePin = 0; + return ret; +} +