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.
Diff: RWDModule.cpp
- Revision:
- 3:60db4ab4dafe
- Parent:
- 2:37fafd1e1a20
--- a/RWDModule.cpp Tue Jul 13 16:11:29 2010 +0000
+++ b/RWDModule.cpp Wed Jul 14 10:45:29 2010 +0000
@@ -26,6 +26,8 @@
RWDModule::RWDModule(PinName tx, PinName rx, PinName cts) : m_serial(tx, rx), m_cts(cts),
m_cmd(0), m_paramsBuf(NULL), m_respBuf(NULL), m_pos(0), m_paramsLen(0), m_respLen(0), m_ackOk(0), m_ackOkMask(0), m_ack(0), m_state(READY)
{
+ //Setup baudrate
+ m_serial.baud(9600);
//Setup interrupts
m_serial.attach(this, &RWDModule::intTx, Serial::TxIrq); //Serial port writeable
m_serial.attach(this, &RWDModule::intRx, Serial::RxIrq); //Serial port readable
RWD RFID Module