Modbus-RS485
Dependencies: Modbus nvt_rs485
Revision 3:b9af2b5f1a11, committed 2017-01-04
- Comitter:
- wclin
- Date:
- Wed Jan 04 08:31:35 2017 +0000
- Parent:
- 2:8a1ce53d31e9
- Commit message:
- Support NuMaker-PFM-M453 board
Changed in this revision
--- a/Modbus.lib Tue Sep 20 07:05:45 2016 +0000 +++ b/Modbus.lib Wed Jan 04 08:31:35 2017 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/users/wclin/code/Modbus/#d4c3b20819a7 +http://developer.mbed.org/users/wclin/code/Modbus/#08849dd9654d
--- 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() {
--- a/mbed-os.lib Tue Sep 20 07:05:45 2016 +0000 +++ b/mbed-os.lib Wed Jan 04 08:31:35 2017 +0000 @@ -1,1 +1,1 @@ -https://github.com/ARMmbed/mbed-os/#21dd7008a1540c02150f1b87c12294301db979bb +https://github.com/ARMmbed/mbed-os/#0789928ee7f2db08a419fa4a032fffd9bd477aa7
--- a/nvt_rs485.lib Tue Sep 20 07:05:45 2016 +0000 +++ b/nvt_rs485.lib Wed Jan 04 08:31:35 2017 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/wclin/code/nvt_rs485/#22be4d425fdb +http://mbed.org/users/wclin/code/nvt_rs485/#750bbd296b36