File tree Expand file tree Collapse file tree 7 files changed +18
-18
lines changed Expand file tree Collapse file tree 7 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 17
17
#define MBED_CAN_DEVICE_H
18
18
19
19
#include "cmsis.h"
20
- #include "stm32f0xx_hal .h"
20
+ #include "stm32f0xx .h"
21
21
22
22
#ifdef __cplusplus
23
23
extern "C" {
24
24
#endif
25
25
26
26
#ifdef DEVICE_CAN
27
27
28
- #define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie
28
+ #define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie
29
29
30
30
#define CAN1_IRQ_RX_IRQN CEC_CAN_IRQn
31
31
#define CAN1_IRQ_RX_VECT CAN_IRQHandler
Original file line number Diff line number Diff line change 17
17
#define MBED_CAN_DEVICE_H
18
18
19
19
#include "cmsis.h"
20
- #include "stm32f1xx_hal .h"
20
+ #include "stm32f1 .h"
21
21
22
22
#ifdef __cplusplus
23
23
extern "C" {
24
24
#endif
25
25
26
26
#ifdef DEVICE_CAN
27
27
28
- #define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie
28
+ #define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie
29
29
30
30
#define CAN1_IRQ_RX_IRQN CAN1_RX0_IRQn
31
31
#define CAN1_IRQ_RX_VECT CAN1_RX0_IRQHandler
Original file line number Diff line number Diff line change 17
17
#define MBED_CAN_DEVICE_H
18
18
19
19
#include "cmsis.h"
20
- #include "stm32f2xx_hal .h"
20
+ #include "stm32f2xx .h"
21
21
22
22
#ifdef __cplusplus
23
23
extern "C" {
24
24
#endif
25
25
26
26
#ifdef DEVICE_CAN
27
27
28
- #define CAN_NUM 2 // Number of CAN peripherals present in the STM32 serie (1 or 2)
28
+ #define CAN_NUM 2 // Number of CAN peripherals present in the STM32 serie
29
29
30
30
#define CAN1_IRQ_RX_IRQN CAN1_RX0_IRQn
31
31
#define CAN1_IRQ_RX_VECT CAN1_RX0_IRQHandler
Original file line number Diff line number Diff line change 17
17
#define MBED_CAN_DEVICE_H
18
18
19
19
#include "cmsis.h"
20
- #include "stm32f3xx_hal .h"
20
+ #include "stm32f3xx .h"
21
21
22
22
#ifdef __cplusplus
23
23
extern "C" {
24
24
#endif
25
25
26
26
#ifdef DEVICE_CAN
27
27
28
- #define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie
28
+ #define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie
29
29
30
30
#define CAN1_IRQ_RX_IRQN CAN_RX0_IRQn
31
31
#define CAN1_IRQ_RX_VECT CAN_RX0_IRQHandler
Original file line number Diff line number Diff line change 17
17
#define MBED_CAN_DEVICE_H
18
18
19
19
#include "cmsis.h"
20
- #include "stm32f4xx_hal .h"
20
+ #include "stm32f4xx .h"
21
21
22
22
#ifdef __cplusplus
23
23
extern "C" {
24
24
#endif
25
25
26
26
#ifdef DEVICE_CAN
27
27
28
- #if defined(STM32F413xx )
28
+ #if defined(CAN3_BASE )
29
29
30
- #define CAN_NUM 3
30
+ #define CAN_NUM 3 // Number of CAN peripherals present in the STM32 serie
31
31
32
32
#define CAN3_IRQ_RX_IRQN CAN3_RX0_IRQn
33
33
#define CAN3_IRQ_RX_VECT CAN3_RX0_IRQHandler
@@ -42,7 +42,7 @@ extern "C" {
42
42
43
43
#else
44
44
45
- #define CAN_NUM 2
45
+ #define CAN_NUM 2 // Number of CAN peripherals present in the STM32 serie
46
46
47
47
#endif
48
48
Original file line number Diff line number Diff line change 17
17
#define MBED_CAN_DEVICE_H
18
18
19
19
#include "cmsis.h"
20
- #include "stm32f7xx_hal .h"
20
+ #include "stm32f7xx .h"
21
21
22
22
#ifdef __cplusplus
23
23
extern "C" {
24
24
#endif
25
25
26
26
#ifdef DEVICE_CAN
27
27
28
- #if defined(STM32F767xx )
28
+ #if defined(CAN3_BASE )
29
29
30
- #define CAN_NUM 3
30
+ #define CAN_NUM 3 // Number of CAN peripherals present in the STM32 serie
31
31
32
32
#define CAN3_IRQ_RX_IRQN CAN3_RX0_IRQn
33
33
#define CAN3_IRQ_RX_VECT CAN3_RX0_IRQHandler
@@ -42,7 +42,7 @@ extern "C" {
42
42
43
43
#else
44
44
45
- #define CAN_NUM 2
45
+ #define CAN_NUM 2 // Number of CAN peripherals present in the STM32 serie
46
46
47
47
#endif
48
48
Original file line number Diff line number Diff line change 17
17
#define MBED_CAN_DEVICE_H
18
18
19
19
#include "cmsis.h"
20
- #include "stm32l4xx_hal .h"
20
+ #include "stm32l4xx .h"
21
21
22
22
#ifdef __cplusplus
23
23
extern "C" {
24
24
#endif
25
25
26
26
#ifdef DEVICE_CAN
27
27
28
- #define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie
28
+ #define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie
29
29
30
30
#define CAN1_IRQ_RX_IRQN CAN1_RX0_IRQn
31
31
#define CAN1_IRQ_RX_VECT CAN1_RX0_IRQHandler
You can’t perform that action at this time.
0 commit comments