Skip to content

Commit e9df4a2

Browse files
committed
Add missing defines
***NO_CI***
1 parent 34cce37 commit e9df4a2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

targets/ChibiOS/_nanoCLR/nanoFramework.Devices.Can/nf_devices_can_native_nanoFramework_Devices_Can_CanController.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ static void RxMessage(CANDriver *canp, uint32_t flags)
2626
controllerId = 1;
2727
}
2828
#endif
29-
#if (STM32_CAN_USE_CAN2) && (STM32_CAN_USE_CAN2 == TRUE)
29+
#if defined(STM32_CAN_USE_CAN2) && (STM32_CAN_USE_CAN2 == TRUE)
3030
if (canp == &CAND2)
3131
{
3232
palCan = &Can2_PAL;
3333
controllerId = 2;
3434
}
3535
#endif
36-
#if (STM32_CAN_USE_CAN3) && (STM32_CAN_USE_CAN3 == TRUE)
36+
#if defined(STM32_CAN_USE_CAN3) && (STM32_CAN_USE_CAN3 == TRUE)
3737
if (canp == &CAND3)
3838
{
3939
palCan = &Can3_PAL;
@@ -62,10 +62,10 @@ static void RxMessage(CANDriver *canp, uint32_t flags)
6262
#if defined(STM32_CAN_USE_CAN1) && (STM32_CAN_USE_CAN1 == TRUE)
6363
NF_PAL_CAN Can1_PAL;
6464
#endif
65-
#if (STM32_CAN_USE_CAN2) && (STM32_CAN_USE_CAN2 == TRUE)
65+
#if defined(STM32_CAN_USE_CAN2) && (STM32_CAN_USE_CAN2 == TRUE)
6666
NF_PAL_CAN Can2_PAL;
6767
#endif
68-
#if (STM32_CAN_USE_CAN3) && (STM32_CAN_USE_CAN3 == TRUE)
68+
#if defined(STM32_CAN_USE_CAN3) && (STM32_CAN_USE_CAN3 == TRUE)
6969
NF_PAL_CAN Can3_PAL;
7070
#endif
7171

targets/ChibiOS/_nanoCLR/nanoFramework.Devices.Can/nf_devices_can_native_target.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ typedef struct
2727
#if defined(STM32_CAN_USE_CAN1) && (STM32_CAN_USE_CAN1 == TRUE)
2828
extern NF_PAL_CAN Can1_PAL;
2929
#endif
30-
#if (STM32_CAN_USE_CAN2) && (STM32_CAN_USE_CAN2 == TRUE)
30+
#if defined(STM32_CAN_USE_CAN2) && (STM32_CAN_USE_CAN2 == TRUE)
3131
extern NF_PAL_CAN Can2_PAL;
3232
#endif
33-
#if (STM32_CAN_USE_CAN3) && (STM32_CAN_USE_CAN3 == TRUE)
33+
#if defined(STM32_CAN_USE_CAN3) && (STM32_CAN_USE_CAN3 == TRUE)
3434
extern NF_PAL_CAN Can3_PAL;
3535
#endif
3636

0 commit comments

Comments
 (0)