mbed library sources. Supersedes mbed-src.
Fork of mbed-dev by
targets/TARGET_STM/TARGET_STM32F3/can_device.h@162:16168a1438f3, 2017-04-08 (annotated)
- Committer:
- funshine
- Date:
- Sat Apr 08 17:03:55 2017 +0000
- Revision:
- 162:16168a1438f3
- Parent:
- 160:d5399cc887bb
add code to handle serial port rx error in uart_irq()
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 160:d5399cc887bb | 1 | /* mbed Microcontroller Library |
<> | 160:d5399cc887bb | 2 | * Copyright (c) 2006-2017 ARM Limited |
<> | 160:d5399cc887bb | 3 | * |
<> | 160:d5399cc887bb | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
<> | 160:d5399cc887bb | 5 | * you may not use this file except in compliance with the License. |
<> | 160:d5399cc887bb | 6 | * You may obtain a copy of the License at |
<> | 160:d5399cc887bb | 7 | * |
<> | 160:d5399cc887bb | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
<> | 160:d5399cc887bb | 9 | * |
<> | 160:d5399cc887bb | 10 | * Unless required by applicable law or agreed to in writing, software |
<> | 160:d5399cc887bb | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
<> | 160:d5399cc887bb | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
<> | 160:d5399cc887bb | 13 | * See the License for the specific language governing permissions and |
<> | 160:d5399cc887bb | 14 | * limitations under the License. |
<> | 160:d5399cc887bb | 15 | */ |
<> | 160:d5399cc887bb | 16 | #ifndef MBED_CAN_DEVICE_H |
<> | 160:d5399cc887bb | 17 | #define MBED_CAN_DEVICE_H |
<> | 160:d5399cc887bb | 18 | |
<> | 160:d5399cc887bb | 19 | #include "cmsis.h" |
<> | 160:d5399cc887bb | 20 | |
<> | 160:d5399cc887bb | 21 | #ifdef __cplusplus |
<> | 160:d5399cc887bb | 22 | extern "C" { |
<> | 160:d5399cc887bb | 23 | #endif |
<> | 160:d5399cc887bb | 24 | |
<> | 160:d5399cc887bb | 25 | #ifdef DEVICE_CAN |
<> | 160:d5399cc887bb | 26 | |
<> | 160:d5399cc887bb | 27 | #define CAN_NUM 1 // Number of CAN peripherals present in the STM32 serie |
<> | 160:d5399cc887bb | 28 | |
<> | 160:d5399cc887bb | 29 | #define CAN1_IRQ_RX_IRQN CAN_RX0_IRQn |
<> | 160:d5399cc887bb | 30 | #define CAN1_IRQ_RX_VECT CAN_RX0_IRQHandler |
<> | 160:d5399cc887bb | 31 | #define CAN1_IRQ_TX_IRQN CAN_TX_IRQn |
<> | 160:d5399cc887bb | 32 | #define CAN1_IRQ_TX_VECT CAN_TX_IRQHandler |
<> | 160:d5399cc887bb | 33 | #define CAN1_IRQ_ERROR_IRQN CAN_SCE_IRQn |
<> | 160:d5399cc887bb | 34 | #define CAN1_IRQ_ERROR_VECT CAN_SCE_IRQHandler |
<> | 160:d5399cc887bb | 35 | #define CAN1_IRQ_PASSIVE_IRQN CAN_SCE_IRQn |
<> | 160:d5399cc887bb | 36 | #define CAN1_IRQ_PASSIVE_VECT CAN_SCE_IRQHandler |
<> | 160:d5399cc887bb | 37 | #define CAN1_IRQ_BUS_IRQN CAN_SCE_IRQn |
<> | 160:d5399cc887bb | 38 | #define CAN1_IRQ_BUS_VECT CAN_SCE_IRQHandler |
<> | 160:d5399cc887bb | 39 | |
<> | 160:d5399cc887bb | 40 | #endif // DEVICE_CAN |
<> | 160:d5399cc887bb | 41 | |
<> | 160:d5399cc887bb | 42 | #endif |