Skip to content

Commit be2a6ae

Browse files
committed
STM32: Use CAN3_BASE + typos
1 parent 0ef4e28 commit be2a6ae

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

targets/TARGET_STM/TARGET_STM32F0/can_device.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
#define MBED_CAN_DEVICE_H
1818

1919
#include "cmsis.h"
20-
#include "stm32f0xx_hal.h"
20+
#include "stm32f0xx.h"
2121

2222
#ifdef __cplusplus
2323
extern "C" {
2424
#endif
2525

2626
#ifdef DEVICE_CAN
2727

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
2929

3030
#define CAN1_IRQ_RX_IRQN CEC_CAN_IRQn
3131
#define CAN1_IRQ_RX_VECT CAN_IRQHandler

targets/TARGET_STM/TARGET_STM32F1/can_device.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
#define MBED_CAN_DEVICE_H
1818

1919
#include "cmsis.h"
20-
#include "stm32f1xx_hal.h"
20+
#include "stm32f1.h"
2121

2222
#ifdef __cplusplus
2323
extern "C" {
2424
#endif
2525

2626
#ifdef DEVICE_CAN
2727

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
2929

3030
#define CAN1_IRQ_RX_IRQN CAN1_RX0_IRQn
3131
#define CAN1_IRQ_RX_VECT CAN1_RX0_IRQHandler

targets/TARGET_STM/TARGET_STM32F2/can_device.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
#define MBED_CAN_DEVICE_H
1818

1919
#include "cmsis.h"
20-
#include "stm32f2xx_hal.h"
20+
#include "stm32f2xx.h"
2121

2222
#ifdef __cplusplus
2323
extern "C" {
2424
#endif
2525

2626
#ifdef DEVICE_CAN
2727

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
2929

3030
#define CAN1_IRQ_RX_IRQN CAN1_RX0_IRQn
3131
#define CAN1_IRQ_RX_VECT CAN1_RX0_IRQHandler

targets/TARGET_STM/TARGET_STM32F3/can_device.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
#define MBED_CAN_DEVICE_H
1818

1919
#include "cmsis.h"
20-
#include "stm32f3xx_hal.h"
20+
#include "stm32f3xx.h"
2121

2222
#ifdef __cplusplus
2323
extern "C" {
2424
#endif
2525

2626
#ifdef DEVICE_CAN
2727

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
2929

3030
#define CAN1_IRQ_RX_IRQN CAN_RX0_IRQn
3131
#define CAN1_IRQ_RX_VECT CAN_RX0_IRQHandler

targets/TARGET_STM/TARGET_STM32F4/can_device.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@
1717
#define MBED_CAN_DEVICE_H
1818

1919
#include "cmsis.h"
20-
#include "stm32f4xx_hal.h"
20+
#include "stm32f4xx.h"
2121

2222
#ifdef __cplusplus
2323
extern "C" {
2424
#endif
2525

2626
#ifdef DEVICE_CAN
2727

28-
#if defined(STM32F413xx)
28+
#if defined(CAN3_BASE)
2929

30-
#define CAN_NUM 3
30+
#define CAN_NUM 3 // Number of CAN peripherals present in the STM32 serie
3131

3232
#define CAN3_IRQ_RX_IRQN CAN3_RX0_IRQn
3333
#define CAN3_IRQ_RX_VECT CAN3_RX0_IRQHandler
@@ -42,7 +42,7 @@ extern "C" {
4242

4343
#else
4444

45-
#define CAN_NUM 2
45+
#define CAN_NUM 2 // Number of CAN peripherals present in the STM32 serie
4646

4747
#endif
4848

targets/TARGET_STM/TARGET_STM32F7/can_device.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@
1717
#define MBED_CAN_DEVICE_H
1818

1919
#include "cmsis.h"
20-
#include "stm32f7xx_hal.h"
20+
#include "stm32f7xx.h"
2121

2222
#ifdef __cplusplus
2323
extern "C" {
2424
#endif
2525

2626
#ifdef DEVICE_CAN
2727

28-
#if defined(STM32F767xx)
28+
#if defined(CAN3_BASE)
2929

30-
#define CAN_NUM 3
30+
#define CAN_NUM 3 // Number of CAN peripherals present in the STM32 serie
3131

3232
#define CAN3_IRQ_RX_IRQN CAN3_RX0_IRQn
3333
#define CAN3_IRQ_RX_VECT CAN3_RX0_IRQHandler
@@ -42,7 +42,7 @@ extern "C" {
4242

4343
#else
4444

45-
#define CAN_NUM 2
45+
#define CAN_NUM 2 // Number of CAN peripherals present in the STM32 serie
4646

4747
#endif
4848

targets/TARGET_STM/TARGET_STM32L4/can_device.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
#define MBED_CAN_DEVICE_H
1818

1919
#include "cmsis.h"
20-
#include "stm32l4xx_hal.h"
20+
#include "stm32l4xx.h"
2121

2222
#ifdef __cplusplus
2323
extern "C" {
2424
#endif
2525

2626
#ifdef DEVICE_CAN
2727

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
2929

3030
#define CAN1_IRQ_RX_IRQN CAN1_RX0_IRQn
3131
#define CAN1_IRQ_RX_VECT CAN1_RX0_IRQHandler

0 commit comments

Comments
 (0)