Proyecto publicado para compartir

Dependencies:   mbed

Fork of Modbus by Cam Marshall

Revision:
1:ca1df3dffd0f
Parent:
0:0453a0a7e500
--- a/portserial.cpp	Thu Apr 15 12:10:34 2010 +0000
+++ b/portserial.cpp	Thu Oct 15 18:04:00 2015 +0000
@@ -36,8 +36,11 @@
 static void prvvUARTISR( void );
 
 /* ----------------------- System Variables ---------------------------------*/
-Serial pc(USBTX, USBRX);            // Cam - mbed USB serial port
-
+///////////////////////////////////////////////////////////////////////////////
+//Serial pc(USBTX, USBRX);            // Cam - mbed USB serial port
+///////////////////////////////////////////////////////////////////////////////
+//modication to select any port changing the define parameters TX_MODBUS_PORT and RX_MODBUS_PORT into the file "md.h"
+Serial pc(TX_MODBUS_PORT,RX_MODBUS_PORT);
 Ticker simISR;                      // Cam - mbed ticker
                                     // we don't have the TX buff empty interrupt, so
                                     // we just interrupt every 1 mSec and read RX & TX