Skip to content

Commit d93843a

Browse files
authored
Merge pull request #15080 from jeromecoutant/PR_F407_CAN
STM32F4: CAN issue with F407 target
2 parents ff6d401 + f9010ed commit d93843a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

targets/TARGET_STM/TARGET_STM32F4/PeripheralNames.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ typedef enum {
139139
#endif
140140
} PWMName;
141141

142-
#if DEVICE_CAN
142+
#if CAN1_BASE
143143
typedef enum {
144144
CAN_1 = (int)CAN1_BASE,
145145
#if defined CAN2_BASE

targets/targets.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,6 +1798,7 @@
17981798
],
17991799
"device_has_add": [
18001800
"ANALOGOUT",
1801+
"CAN",
18011802
"TRNG"
18021803
]
18031804
},
@@ -1816,6 +1817,7 @@
18161817
"EMAC"
18171818
],
18181819
"device_has_remove": [
1820+
"CAN",
18191821
"LPTICKER",
18201822
"SERIAL_FC"
18211823
],

0 commit comments

Comments
 (0)