test
targets/TARGET_STM/TARGET_STM32F1/can_device.h@2:4364577b5ad8, 2020-11-09 (annotated)
- Committer:
- elijahsj
- Date:
- Mon Nov 09 00:33:19 2020 -0500
- Revision:
- 2:4364577b5ad8
- Parent:
- 1:8a094db1347f
copied mbed library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
elijahsj | 1:8a094db1347f | 1 | /* mbed Microcontroller Library |
elijahsj | 1:8a094db1347f | 2 | * Copyright (c) 2006-2017 ARM Limited |
elijahsj | 1:8a094db1347f | 3 | * |
elijahsj | 1:8a094db1347f | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
elijahsj | 1:8a094db1347f | 5 | * you may not use this file except in compliance with the License. |
elijahsj | 1:8a094db1347f | 6 | * You may obtain a copy of the License at |
elijahsj | 1:8a094db1347f | 7 | * |
elijahsj | 1:8a094db1347f | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
elijahsj | 1:8a094db1347f | 9 | * |
elijahsj | 1:8a094db1347f | 10 | * Unless required by applicable law or agreed to in writing, software |
elijahsj | 1:8a094db1347f | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
elijahsj | 1:8a094db1347f | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
elijahsj | 1:8a094db1347f | 13 | * See the License for the specific language governing permissions and |
elijahsj | 1:8a094db1347f | 14 | * limitations under the License. |
elijahsj | 1:8a094db1347f | 15 | */ |
elijahsj | 1:8a094db1347f | 16 | #ifndef MBED_CAN_DEVICE_H |
elijahsj | 1:8a094db1347f | 17 | #define MBED_CAN_DEVICE_H |
elijahsj | 1:8a094db1347f | 18 | |
elijahsj | 1:8a094db1347f | 19 | #include "cmsis.h" |
elijahsj | 1:8a094db1347f | 20 | #include "stm32f1xx_hal.h" |
elijahsj | 1:8a094db1347f | 21 | |
elijahsj | 1:8a094db1347f | 22 | #ifdef __cplusplus |
elijahsj | 1:8a094db1347f | 23 | extern "C" { |
elijahsj | 1:8a094db1347f | 24 | #endif |
elijahsj | 1:8a094db1347f | 25 | |
elijahsj | 1:8a094db1347f | 26 | #ifdef DEVICE_CAN |
elijahsj | 1:8a094db1347f | 27 | |
elijahsj | 1:8a094db1347f | 28 | #define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie |
elijahsj | 1:8a094db1347f | 29 | |
elijahsj | 1:8a094db1347f | 30 | #define CAN1_IRQ_RX_IRQN CAN1_RX0_IRQn |
elijahsj | 1:8a094db1347f | 31 | #define CAN1_IRQ_RX_VECT CAN1_RX0_IRQHandler |
elijahsj | 1:8a094db1347f | 32 | #define CAN1_IRQ_TX_IRQN CAN1_TX_IRQn |
elijahsj | 1:8a094db1347f | 33 | #define CAN1_IRQ_TX_VECT CAN1_TX_IRQHandler |
elijahsj | 1:8a094db1347f | 34 | #define CAN1_IRQ_ERROR_IRQN CAN1_SCE_IRQn |
elijahsj | 1:8a094db1347f | 35 | #define CAN1_IRQ_ERROR_VECT CAN1_SCE_IRQHandler |
elijahsj | 1:8a094db1347f | 36 | #define CAN1_IRQ_PASSIVE_IRQN CAN1_SCE_IRQn |
elijahsj | 1:8a094db1347f | 37 | #define CAN1_IRQ_PASSIVE_VECT CAN1_SCE_IRQHandler |
elijahsj | 1:8a094db1347f | 38 | #define CAN1_IRQ_BUS_IRQN CAN1_SCE_IRQn |
elijahsj | 1:8a094db1347f | 39 | #define CAN1_IRQ_BUS_VECT CAN1_SCE_IRQHandler |
elijahsj | 1:8a094db1347f | 40 | |
elijahsj | 1:8a094db1347f | 41 | #endif // DEVICE_CAN |
elijahsj | 1:8a094db1347f | 42 | |
elijahsj | 1:8a094db1347f | 43 | #endif |