Nuvoton
/
NuMaker-mbed-can
NUMAKER CAN sample
Diff: main.cpp
- Revision:
- 5:499978915868
- Parent:
- 0:df0aeb0c8f2c
- Child:
- 6:b9714e564dee
--- a/main.cpp Thu Apr 19 11:01:59 2018 +0800 +++ b/main.cpp Thu Apr 19 11:22:45 2018 +0800 @@ -16,9 +16,11 @@ #define CAN_DEV_ID 0x1AC #if defined(TARGET_NUMAKER_PFM_NUC472) -CAN canObj(PA_0, PA_1); +CAN canObj(PA_0, PA_1); // Internal in the board #elif defined(TARGET_NUMAKER_PFM_M453) -CAN canObj(PA_13,PA_12); +CAN canObj(PA_13, PA_12); // Internal in the board +#elif defined(TARGET_NUMAKER_PFM_M487) +CAN canObj(D9, D8); // Change to match external attachment #endif CANMessage canMsg;