From dc403a00e86455bc65aabbd6c3d0fffe97b00ac4 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 29 Dec 2009 13:15:29 +0000 Subject: Updated all platforms. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1480 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/can_lld.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 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 24f88cb80..33d4bdff7 100644 --- a/os/hal/platforms/STM32/can_lld.h +++ b/os/hal/platforms/STM32/can_lld.h @@ -29,6 +29,10 @@ #if CH_HAL_USE_CAN || defined(__DOXYGEN__) +/*===========================================================================*/ +/* Driver constants. */ +/*===========================================================================*/ + /* * The following macros from the ST header file are replaced with better * equivalents. @@ -38,10 +42,6 @@ #undef CAN_BTR_TS2 #undef CAN_BTR_SJW -/*===========================================================================*/ -/* Driver constants. */ -/*===========================================================================*/ - /** * @brief This switch defines whether the driver implementation supports * a low power switch mode with automatic an wakeup feature. @@ -49,7 +49,7 @@ #define CAN_SUPPORTS_SLEEP TRUE /** - * @brief Manimum number of CAN filters. + * @brief Minimum number of CAN filters. */ #if defined(STM32F10X_CL) || defined(__DOXYGEN__) #define CAN_MAX_FILTERS 28 @@ -106,10 +106,6 @@ /* Derived constants and error checks. */ /*===========================================================================*/ -#if !CH_USE_SEMAPHORES || !CH_USE_EVENTS -#error "the ADC driver requires CH_USE_SEMAPHORES and CH_USE_EVENTS" -#endif - /*===========================================================================*/ /* Driver data structures and types. */ /*===========================================================================*/ @@ -297,6 +293,10 @@ typedef struct { CAN_TypeDef *cd_can; } CANDriver; +/*===========================================================================*/ +/* Driver macros. */ +/*===========================================================================*/ + /*===========================================================================*/ /* External declarations. */ /*===========================================================================*/ -- cgit v1.2.3