NuMaker Modbus-RS485

Dependencies:   nvt_rs485 Modbus

Fork of modbus-over-rs485-sample by Wayne Lin

Revision:
12:4d2e0c6164b9
Parent:
9:32ff3d56f070
Child:
15:a935936e74c1
diff -r 8ac0e6d13233 -r 4d2e0c6164b9 main.cpp
--- a/main.cpp	Fri Oct 06 17:11:03 2017 +0800
+++ b/main.cpp	Thu Apr 19 13:12:11 2018 +0800
@@ -35,13 +35,7 @@
 DigitalOut led3(LED3);  // For Holder CB
 
 #define DEF_PIN_NUM 6
-#if defined(TARGET_NUMAKER_PFM_NUC472)
-DigitalIn DipSwitch[DEF_PIN_NUM] = { PG_1, PG_2, PF_9, PF_10, PC_10, PC_11 } ;
-#elif defined(TARGET_NUMAKER_PFM_M453)
-DigitalIn DipSwitch[DEF_PIN_NUM] = { PD_6, PD_1, PC_6, PC_7, PC_11, PC_12 };
-#elif defined(TARGET_NUMAKER_PFM_M487)
-DigitalIn DipSwitch[DEF_PIN_NUM] = { PH_9, PH_8, PB_9, PF_11, PG_4, PC_11 } ;
-#endif
+DigitalIn DipSwitch[DEF_PIN_NUM] = { D0, D1, D2, D3, D4, D5 } ;
 
 unsigned short GetValueOnDipSwitch()
 {