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/src | |
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/src')
-rw-r--r-- | os/hal/src/adc.c | 16 | ||||
-rw-r--r-- | os/hal/src/can.c | 16 | ||||
-rw-r--r-- | os/hal/src/hal.c | 16 | ||||
-rw-r--r-- | os/hal/src/mac.c | 20 | ||||
-rw-r--r-- | os/hal/src/mmc_spi.c | 8 | ||||
-rw-r--r-- | os/hal/src/pal.c | 16 | ||||
-rw-r--r-- | os/hal/src/pwm.c | 16 | ||||
-rw-r--r-- | os/hal/src/serial.c | 16 | ||||
-rw-r--r-- | os/hal/src/spi.c | 18 |
9 files changed, 141 insertions, 1 deletions
diff --git a/os/hal/src/adc.c b/os/hal/src/adc.c index afa464212..16bdeac43 100644 --- a/os/hal/src/adc.c +++ b/os/hal/src/adc.c @@ -29,6 +29,22 @@ #if CH_HAL_USE_ADC || defined(__DOXYGEN__)
+/*===========================================================================*/
+/* Driver exported variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local functions. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver exported functions. */
+/*===========================================================================*/
+
/**
* @brief ADC Driver initialization.
*/
diff --git a/os/hal/src/can.c b/os/hal/src/can.c index e48095bc0..e70c25617 100644 --- a/os/hal/src/can.c +++ b/os/hal/src/can.c @@ -29,6 +29,22 @@ #if CH_HAL_USE_CAN || defined(__DOXYGEN__)
+/*===========================================================================*/
+/* Driver exported variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local functions. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver exported functions. */
+/*===========================================================================*/
+
/**
* @brief CAN Driver initialization.
*/
diff --git a/os/hal/src/hal.c b/os/hal/src/hal.c index 0f5bb9148..3631028e5 100644 --- a/os/hal/src/hal.c +++ b/os/hal/src/hal.c @@ -27,6 +27,22 @@ #include "ch.h"
#include "hal.h"
+/*===========================================================================*/
+/* Driver exported variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local functions. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver exported functions. */
+/*===========================================================================*/
+
/**
* @brief HAL initialization. */
diff --git a/os/hal/src/mac.c b/os/hal/src/mac.c index a18d3e4df..6d31c7b9e 100644 --- a/os/hal/src/mac.c +++ b/os/hal/src/mac.c @@ -29,6 +29,26 @@ #if CH_HAL_USE_MAC || defined(__DOXYGEN__)
+/*===========================================================================*/
+/* Driver exported variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local functions. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver interrupt handlers. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver exported functions. */
+/*===========================================================================*/
+
/**
* @brief MAC Driver initialization. */
diff --git a/os/hal/src/mmc_spi.c b/os/hal/src/mmc_spi.c index 24abf2a2b..f9f8eef5a 100644 --- a/os/hal/src/mmc_spi.c +++ b/os/hal/src/mmc_spi.c @@ -30,6 +30,14 @@ #if CH_HAL_USE_MMC_SPI || defined(__DOXYGEN__)
/*===========================================================================*/
+/* Driver exported variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
/* Driver local functions. */
/*===========================================================================*/
diff --git a/os/hal/src/pal.c b/os/hal/src/pal.c index a0f91b8d2..a04f4ed96 100644 --- a/os/hal/src/pal.c +++ b/os/hal/src/pal.c @@ -29,6 +29,22 @@ #if CH_HAL_USE_PAL || defined(__DOXYGEN__)
+/*===========================================================================*/
+/* Driver exported variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local functions. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver exported functions. */
+/*===========================================================================*/
+
/**
* @brief Read from an I/O bus.
*
diff --git a/os/hal/src/pwm.c b/os/hal/src/pwm.c index f6164ea35..404f3d8a7 100644 --- a/os/hal/src/pwm.c +++ b/os/hal/src/pwm.c @@ -29,6 +29,22 @@ #if CH_HAL_USE_PWM || defined(__DOXYGEN__)
+/*===========================================================================*/
+/* Driver exported variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local functions. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver exported functions. */
+/*===========================================================================*/
+
/**
* @brief PWM Driver initialization.
*/
diff --git a/os/hal/src/serial.c b/os/hal/src/serial.c index d2cb17c77..5df69d1a0 100644 --- a/os/hal/src/serial.c +++ b/os/hal/src/serial.c @@ -29,6 +29,18 @@ #if CH_HAL_USE_SERIAL || defined(__DOXYGEN__)
+/*===========================================================================*/
+/* Driver exported variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local functions. */
+/*===========================================================================*/
+
/*
* Interface implementation, the following functions just invoke the equivalent
* queue-level function or macro. @@ -69,6 +81,10 @@ static const struct SerialDriverVMT vmt = { {}
};
+/*===========================================================================*/
+/* Driver exported functions. */
+/*===========================================================================*/
+
/**
* @brief Serial Driver initialization. */
diff --git a/os/hal/src/spi.c b/os/hal/src/spi.c index 08113a000..36bde9a3a 100644 --- a/os/hal/src/spi.c +++ b/os/hal/src/spi.c @@ -29,6 +29,22 @@ #if CH_HAL_USE_SPI || defined(__DOXYGEN__)
+/*===========================================================================*/
+/* Driver exported variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver local functions. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Driver exported functions. */
+/*===========================================================================*/
+
/**
* @brief SPI Driver initialization.
*/
@@ -255,7 +271,7 @@ void spiReleaseBus(SPIDriver *spip) { chSemSignal(&spip->spd_semaphore);
#endif
}
-#endif /*SPI_USE_MUTUAL_EXCLUSION */
+#endif /* SPI_USE_MUTUAL_EXCLUSION */
#endif /* CH_HAL_USE_SPI */
|