diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-06-21 17:39:26 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-06-21 17:39:26 +0000 |
commit | 11907c39a829e1ecef33da09974028349af683f2 (patch) | |
tree | 70f25e083bce99eb28c7970441bd855600d65b0d /os/hal/platforms/STM32F1xx | |
parent | a41017aac10f2255f13ce45044f567b021eeb474 (diff) | |
download | ChibiOS-11907c39a829e1ecef33da09974028349af683f2.tar.gz ChibiOS-11907c39a829e1ecef33da09974028349af683f2.tar.bz2 ChibiOS-11907c39a829e1ecef33da09974028349af683f2.zip |
STM32 CAN driver adapted to the new ISR names.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4320 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F1xx')
-rw-r--r-- | os/hal/platforms/STM32F1xx/stm32_isr.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32F1xx/stm32_isr.h b/os/hal/platforms/STM32F1xx/stm32_isr.h index 18de3210e..660a061b9 100644 --- a/os/hal/platforms/STM32F1xx/stm32_isr.h +++ b/os/hal/platforms/STM32F1xx/stm32_isr.h @@ -37,6 +37,30 @@ * @name ISR names and numbers remapping
* @{
*/
+/*
+ * CAN units.
+ */
+#define STM32_CAN1_TX_HANDLER CAN1_TX_IRQHandler
+#define STM32_CAN1_RX0_HANDLER CAN1_RX0_IRQHandler
+#define STM32_CAN1_RX1_HANDLER CAN1_RX1_IRQHandler
+#define STM32_CAN1_SCE_HANDLER CAN1_SCE_IRQHandler
+#define STM32_CAN2_TX_HANDLER CAN2_TX_IRQHandler
+#define STM32_CAN2_RX0_HANDLER CAN2_RX0_IRQHandler
+#define STM32_CAN2_RX1_HANDLER CAN2_RX1_IRQHandler
+#define STM32_CAN2_SCE_HANDLER CAN2_SCE_IRQHandler
+
+#define STM32_CAN1_TX_NUMBER USB_HP_CAN1_TX_IRQn
+#define STM32_CAN1_RX0_NUMBER USB_LP_CAN1_RX0_IRQn
+#define STM32_CAN1_RX1_NUMBER CAN1_RX1_IRQn
+#define STM32_CAN1_SCE_NUMBER CAN2_SCE_IRQn
+#define STM32_CAN2_TX_NUMBER CAN2_TX_IRQn
+#define STM32_CAN2_RX0_NUMBER CAN2_RX0_IRQn
+#define STM32_CAN2_RX1_NUMBER CAN2_RX1_IRQn
+#define STM32_CAN2_SCE_NUMBER CAN2_SCE_IRQn
+
+/*
+ * TIM units.
+ */
#if defined(STM32F10X_XL)
#define STM32_TIM1_UP_HANDLER TIM1_UP_IRQHandler
#elif defined(STM32F10X_LD_VL) || defined(STM32F10X_MD_VL) || \
|