2017-02-08 14:20:16 +00:00
|
|
|
/* mbed Microcontroller Library
|
2020-11-18 16:58:22 +00:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
******************************************************************************
|
2017-02-08 14:20:16 +00:00
|
|
|
*
|
2020-11-18 16:58:22 +00:00
|
|
|
* Copyright (c) 2015-2020 STMicroelectronics.
|
|
|
|
* All rights reserved.
|
2017-02-08 14:20:16 +00:00
|
|
|
*
|
2020-11-18 16:58:22 +00:00
|
|
|
* This software component is licensed by ST under BSD 3-Clause license,
|
|
|
|
* the "License"; You may not use this file except in compliance with the
|
|
|
|
* License. You may obtain a copy of the License at:
|
|
|
|
* opensource.org/licenses/BSD-3-Clause
|
2017-02-08 14:20:16 +00:00
|
|
|
*
|
2020-11-18 16:58:22 +00:00
|
|
|
******************************************************************************
|
2017-02-08 14:20:16 +00:00
|
|
|
*/
|
2020-11-18 16:58:22 +00:00
|
|
|
|
2017-02-08 14:20:16 +00:00
|
|
|
#ifndef MBED_CAN_DEVICE_H
|
|
|
|
#define MBED_CAN_DEVICE_H
|
|
|
|
|
|
|
|
#include "cmsis.h"
|
2017-11-14 08:44:20 +00:00
|
|
|
#include "stm32f0xx.h"
|
2017-02-08 14:20:16 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2018-12-19 23:19:33 +00:00
|
|
|
#if DEVICE_CAN
|
2017-02-08 14:20:16 +00:00
|
|
|
|
2017-11-14 08:44:20 +00:00
|
|
|
#define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie
|
2017-02-08 14:20:16 +00:00
|
|
|
|
|
|
|
#define CAN1_IRQ_RX_IRQN CEC_CAN_IRQn
|
|
|
|
#define CAN1_IRQ_RX_VECT CAN_IRQHandler
|
|
|
|
#define CAN1_IRQ_TX_IRQN CEC_CAN_IRQn
|
|
|
|
#define CAN1_IRQ_TX_VECT CAN_IRQHandler
|
|
|
|
#define CAN1_IRQ_ERROR_IRQN CEC_CAN_IRQn
|
|
|
|
#define CAN1_IRQ_ERROR_VECT CAN_IRQHandler
|
|
|
|
#define CAN1_IRQ_PASSIVE_IRQN CEC_CAN_IRQn
|
|
|
|
#define CAN1_IRQ_PASSIVE_VECT CAN_IRQHandler
|
|
|
|
#define CAN1_IRQ_BUS_IRQN CEC_CAN_IRQn
|
|
|
|
#define CAN1_IRQ_BUS_VECT CAN_IRQHandler
|
|
|
|
|
|
|
|
#endif // DEVICE_CAN
|
|
|
|
|
|
|
|
#endif
|