mirror of https://github.com/ARMmbed/mbed-os.git
STM32: Use CAN3_BASE + typos
parent
0ef4e2881c
commit
be2a6ae273
|
@ -17,7 +17,7 @@
|
|||
#define MBED_CAN_DEVICE_H
|
||||
|
||||
#include "cmsis.h"
|
||||
#include "stm32f0xx_hal.h"
|
||||
#include "stm32f0xx.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -25,7 +25,7 @@ extern "C" {
|
|||
|
||||
#ifdef DEVICE_CAN
|
||||
|
||||
#define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie
|
||||
#define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie
|
||||
|
||||
#define CAN1_IRQ_RX_IRQN CEC_CAN_IRQn
|
||||
#define CAN1_IRQ_RX_VECT CAN_IRQHandler
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#define MBED_CAN_DEVICE_H
|
||||
|
||||
#include "cmsis.h"
|
||||
#include "stm32f1xx_hal.h"
|
||||
#include "stm32f1.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -25,7 +25,7 @@ extern "C" {
|
|||
|
||||
#ifdef DEVICE_CAN
|
||||
|
||||
#define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie
|
||||
#define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie
|
||||
|
||||
#define CAN1_IRQ_RX_IRQN CAN1_RX0_IRQn
|
||||
#define CAN1_IRQ_RX_VECT CAN1_RX0_IRQHandler
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#define MBED_CAN_DEVICE_H
|
||||
|
||||
#include "cmsis.h"
|
||||
#include "stm32f2xx_hal.h"
|
||||
#include "stm32f2xx.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -25,7 +25,7 @@ extern "C" {
|
|||
|
||||
#ifdef DEVICE_CAN
|
||||
|
||||
#define CAN_NUM 2 // Number of CAN peripherals present in the STM32 serie (1 or 2)
|
||||
#define CAN_NUM 2 // Number of CAN peripherals present in the STM32 serie
|
||||
|
||||
#define CAN1_IRQ_RX_IRQN CAN1_RX0_IRQn
|
||||
#define CAN1_IRQ_RX_VECT CAN1_RX0_IRQHandler
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#define MBED_CAN_DEVICE_H
|
||||
|
||||
#include "cmsis.h"
|
||||
#include "stm32f3xx_hal.h"
|
||||
#include "stm32f3xx.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -25,7 +25,7 @@ extern "C" {
|
|||
|
||||
#ifdef DEVICE_CAN
|
||||
|
||||
#define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie
|
||||
#define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie
|
||||
|
||||
#define CAN1_IRQ_RX_IRQN CAN_RX0_IRQn
|
||||
#define CAN1_IRQ_RX_VECT CAN_RX0_IRQHandler
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#define MBED_CAN_DEVICE_H
|
||||
|
||||
#include "cmsis.h"
|
||||
#include "stm32f4xx_hal.h"
|
||||
#include "stm32f4xx.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -25,9 +25,9 @@ extern "C" {
|
|||
|
||||
#ifdef DEVICE_CAN
|
||||
|
||||
#if defined(STM32F413xx)
|
||||
#if defined(CAN3_BASE)
|
||||
|
||||
#define CAN_NUM 3
|
||||
#define CAN_NUM 3 // Number of CAN peripherals present in the STM32 serie
|
||||
|
||||
#define CAN3_IRQ_RX_IRQN CAN3_RX0_IRQn
|
||||
#define CAN3_IRQ_RX_VECT CAN3_RX0_IRQHandler
|
||||
|
@ -42,7 +42,7 @@ extern "C" {
|
|||
|
||||
#else
|
||||
|
||||
#define CAN_NUM 2
|
||||
#define CAN_NUM 2 // Number of CAN peripherals present in the STM32 serie
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#define MBED_CAN_DEVICE_H
|
||||
|
||||
#include "cmsis.h"
|
||||
#include "stm32f7xx_hal.h"
|
||||
#include "stm32f7xx.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -25,9 +25,9 @@ extern "C" {
|
|||
|
||||
#ifdef DEVICE_CAN
|
||||
|
||||
#if defined(STM32F767xx)
|
||||
#if defined(CAN3_BASE)
|
||||
|
||||
#define CAN_NUM 3
|
||||
#define CAN_NUM 3 // Number of CAN peripherals present in the STM32 serie
|
||||
|
||||
#define CAN3_IRQ_RX_IRQN CAN3_RX0_IRQn
|
||||
#define CAN3_IRQ_RX_VECT CAN3_RX0_IRQHandler
|
||||
|
@ -42,7 +42,7 @@ extern "C" {
|
|||
|
||||
#else
|
||||
|
||||
#define CAN_NUM 2
|
||||
#define CAN_NUM 2 // Number of CAN peripherals present in the STM32 serie
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#define MBED_CAN_DEVICE_H
|
||||
|
||||
#include "cmsis.h"
|
||||
#include "stm32l4xx_hal.h"
|
||||
#include "stm32l4xx.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -25,7 +25,7 @@ extern "C" {
|
|||
|
||||
#ifdef DEVICE_CAN
|
||||
|
||||
#define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie
|
||||
#define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie
|
||||
|
||||
#define CAN1_IRQ_RX_IRQN CAN1_RX0_IRQn
|
||||
#define CAN1_IRQ_RX_VECT CAN1_RX0_IRQHandler
|
||||
|
|
Loading…
Reference in New Issue