
Modbus-RS485
Dependencies: Modbus nvt_rs485
Diff: main.cpp
- Revision:
- 3:b9af2b5f1a11
- Parent:
- 1:f9d748875768
diff -r 8a1ce53d31e9 -r b9af2b5f1a11 main.cpp --- a/main.cpp Tue Sep 20 07:05:45 2016 +0000 +++ b/main.cpp Wed Jan 04 08:31:35 2017 +0000 @@ -35,7 +35,11 @@ DigitalOut led3(LED3); // For Holder CB #define DEF_PIN_NUM 6 -DigitalIn DipSwitch[DEF_PIN_NUM] = { PG_1, PG_2, PF_9, PF_10, PC_10, PC_11 } ; +#if defined(TARGET_NUMAKER_PFM_NUC472) // for NUC472 board + DigitalIn DipSwitch[DEF_PIN_NUM] = { PG_1, PG_2, PF_9, PF_10, PC_10, PC_11 } ; +#elif defined(TARGET_NUMAKER_PFM_M453) // for M453 board + DigitalIn DipSwitch[DEF_PIN_NUM] = { PD_6, PD_1, PC_6, PC_7, PC_11, PC_12 } ; +#endif unsigned short GetValueOnDipSwitch() {