Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Multiple_7SegDisplays
Fork of RS485 by
RS485.cpp
00001 #include "RS485.h" 00002 00003 RS485::RS485(PinName tx, PinName rx, PinName mode, const char *name) : Serial( tx, rx, name), m_modePin(mode) 00004 { 00005 m_modePin = 0; 00006 } 00007 00008 int RS485::_getc() { 00009 return _base_getc(); 00010 } 00011 00012 int RS485::_putc(int c) { 00013 m_modePin = 1; 00014 int ret = _base_putc(c); 00015 m_modePin = 0; 00016 return ret; 00017 } 00018
Generated on Wed Jul 13 2022 02:46:13 by
1.7.2
