From 3d182788ee7386b0fa53b4aee08fe8146d67d3b0 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 1 Dec 2009 16:32:16 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1369 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/can_lld.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'os/hal/platforms/STM32/can_lld.h') diff --git a/os/hal/platforms/STM32/can_lld.h b/os/hal/platforms/STM32/can_lld.h index a02ce15fc..422249cef 100644 --- a/os/hal/platforms/STM32/can_lld.h +++ b/os/hal/platforms/STM32/can_lld.h @@ -40,7 +40,7 @@ /*===========================================================================*/ /** - * @brief ADC1 driver enable switch. + * @brief CAN1 driver enable switch. * @details If set to @p TRUE the support for ADC1 is included. * @note The default is @p TRUE. */ @@ -48,6 +48,14 @@ #define USE_STM32_CAN1 TRUE #endif +/** + * @brief CAN1 interrupt priority level setting. + * @note @p BASEPRI_KERNEL >= @p STM32_SPI1_IRQ_PRIORITY > @p PRIORITY_PENDSV. + */ +#if !defined(STM32_CAN1_IRQ_PRIORITY) || defined(__DOXYGEN__) +#define STM32_CAN1_IRQ_PRIORITY 0xB0 +#endif + /** * @brief Sleep mode related APIs inclusion switch. * @note This switch is enforced to @p FALSE if the driver implementation @@ -159,7 +167,7 @@ typedef struct { /** * @brief Pointer to the CAN registers. */ - CAN_TypeDef *cd_canp; + CAN_TypeDef *cd_can; } CANDriver; /*===========================================================================*/ -- cgit v1.2.3