from Cam Marshall original modbus

Dependencies:   mbed

Fork of Modbus by Cam Marshall

Revision:
5:c712a10c9414
Parent:
2:5f360876388e
--- a/Modbus/porttimer.cpp	Tue Mar 14 14:25:27 2017 +0800
+++ b/Modbus/porttimer.cpp	Tue Mar 14 22:23:17 2017 +0800
@@ -28,7 +28,7 @@
 /* ----------------------- Modbus includes ----------------------------------*/
 #include "mb.h"
 #include "mbport.h"
-
+extern DigitalOut testD8; //stanley
 /* ----------------------- static functions ---------------------------------*/
 static void prvvTIMERExpiredISR( void );
 
@@ -40,8 +40,7 @@
 BOOL
 xMBPortTimersInit( USHORT usTim1Timerout50us )
 {
-    //usInterval = 50 * usTim1Timerout50us;
-	usInterval = 200 * usTim1Timerout50us;  //10ms timeout ®É¶¡§ì9600bps 10byte ªº®É¶¡  stanley
+    usInterval = 50 * usTim1Timerout50us;
     return TRUE;
 }
 
@@ -72,7 +71,8 @@
  */
 static void prvvTIMERExpiredISR( void )
 {
-    ( void )pxMBPortCBTimerExpired(  );
+	
+    (void)pxMBPortCBTimerExpired( );
     // Cam - disable further interrupts by detaching
     toMBUS.detach(); 
 }