diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-12-29 11:12:05 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-12-29 11:12:05 +0000 |
commit | fe24da9fcca4967e58b25a2698c46717995de0ad (patch) | |
tree | c65c37f80160846a873d1c0f3903666b3ad9cb71 /os/hal/include/can.h | |
parent | 2a05dca9157fe8ad58a873bd51b6115e4380e10a (diff) | |
download | ChibiOS-fe24da9fcca4967e58b25a2698c46717995de0ad.tar.gz ChibiOS-fe24da9fcca4967e58b25a2698c46717995de0ad.tar.bz2 ChibiOS-fe24da9fcca4967e58b25a2698c46717995de0ad.zip |
Reorganized sections in HAL files.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1473 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include/can.h')
-rw-r--r-- | os/hal/include/can.h | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/os/hal/include/can.h b/os/hal/include/can.h index 8f2a7572d..2a0d1e4df 100644 --- a/os/hal/include/can.h +++ b/os/hal/include/can.h @@ -29,9 +29,9 @@ #if CH_HAL_USE_CAN || defined(__DOXYGEN__)
-#if !CH_USE_SEMAPHORES
-#error "CAN driver requires CH_USE_SEMAPHORES"
-#endif
+/*===========================================================================*/
+/* Driver constants. */
+/*===========================================================================*/
/**
* @brief Errors rate warning.
@@ -54,6 +54,22 @@ */
#define CAN_OVERFLOW_ERROR 16
+/*===========================================================================*/
+/* Driver pre-compile time settings. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Derived constants and error checks. */
+/*===========================================================================*/
+
+#if !CH_USE_SEMAPHORES
+#error "CAN driver requires CH_USE_SEMAPHORES"
+#endif
+
+/*===========================================================================*/
+/* Driver data structures and types. */
+/*===========================================================================*/
+
/**
* @brief Driver state machine possible states.
*/
@@ -67,6 +83,10 @@ typedef enum { #include "can_lld.h"
+/*===========================================================================*/
+/* Driver macros. */
+/*===========================================================================*/
+
/**
* @brief Adds some flags to the CAN status mask.
*
@@ -75,6 +95,10 @@ typedef enum { */
#define canAddFlagsI(canp, mask) ((canp)->cd_status |= (mask))
+/*===========================================================================*/
+/* External declarations. */
+/*===========================================================================*/
+
#ifdef __cplusplus
extern "C" {
#endif
|