aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/can_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-01 16:32:16 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-01 16:32:16 +0000
commit3d182788ee7386b0fa53b4aee08fe8146d67d3b0 (patch)
tree81d4d87f00e741fd846843cb1e7ce0b7a6fe2080 /os/hal/platforms/STM32/can_lld.h
parent8a433087afe80e92aea1c558965994b53bfcfb48 (diff)
downloadChibiOS-3d182788ee7386b0fa53b4aee08fe8146d67d3b0.tar.gz
ChibiOS-3d182788ee7386b0fa53b4aee08fe8146d67d3b0.tar.bz2
ChibiOS-3d182788ee7386b0fa53b4aee08fe8146d67d3b0.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1369 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/can_lld.h')
-rw-r--r--os/hal/platforms/STM32/can_lld.h12
1 files changed, 10 insertions, 2 deletions
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.
*/
@@ -49,6 +49,14 @@
#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
* does not support the sleep mode.
@@ -159,7 +167,7 @@ typedef struct {
/**
* @brief Pointer to the CAN registers.
*/
- CAN_TypeDef *cd_canp;
+ CAN_TypeDef *cd_can;
} CANDriver;
/*===========================================================================*/