From 86e45e167e4db866268e968b174b1cbb88420338 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 29 Dec 2009 12:05:35 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1475 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/hal_lld.c | 10 +++++----- os/hal/platforms/LPC214x/hal_lld.h | 4 ++++ os/hal/platforms/LPC214x/pal_lld.c | 20 ++++++++++++++++++++ os/hal/platforms/LPC214x/serial_lld.c | 14 +++++++++++--- os/hal/platforms/LPC214x/serial_lld.h | 16 ++++++++++++---- os/hal/platforms/LPC214x/spi_lld.c | 16 ++++++++-------- os/hal/platforms/LPC214x/spi_lld.h | 10 +++++++--- 7 files changed, 67 insertions(+), 23 deletions(-) (limited to 'os') diff --git a/os/hal/platforms/LPC214x/hal_lld.c b/os/hal/platforms/LPC214x/hal_lld.c index a971afcbf..5f0e3eedb 100644 --- a/os/hal/platforms/LPC214x/hal_lld.c +++ b/os/hal/platforms/LPC214x/hal_lld.c @@ -28,11 +28,11 @@ #include "hal.h" /*===========================================================================*/ -/* Low Level Driver exported variables. */ +/* Driver exported variables. */ /*===========================================================================*/ /*===========================================================================*/ -/* Low Level Driver local variables. */ +/* Driver local variables. */ /*===========================================================================*/ /** @@ -49,11 +49,11 @@ const LPC214xFIOConfig pal_default_config = }; /*===========================================================================*/ -/* Low Level Driver local functions. */ +/* Driver local functions. */ /*===========================================================================*/ /*===========================================================================*/ -/* Low Level Driver interrupt handlers. */ +/* Driver interrupt handlers. */ /*===========================================================================*/ /* @@ -71,7 +71,7 @@ static CH_IRQ_HANDLER(irq_handler) { } /*===========================================================================*/ -/* Low Level Driver exported functions. */ +/* Driver exported functions. */ /*===========================================================================*/ /** diff --git a/os/hal/platforms/LPC214x/hal_lld.h b/os/hal/platforms/LPC214x/hal_lld.h index aa23729aa..e342fcab6 100644 --- a/os/hal/platforms/LPC214x/hal_lld.h +++ b/os/hal/platforms/LPC214x/hal_lld.h @@ -53,6 +53,10 @@ /* Driver data structures and types. */ /*===========================================================================*/ +/*===========================================================================*/ +/* Driver macros. */ +/*===========================================================================*/ + /*===========================================================================*/ /* External declarations. */ /*===========================================================================*/ diff --git a/os/hal/platforms/LPC214x/pal_lld.c b/os/hal/platforms/LPC214x/pal_lld.c index 44144a759..6d9e03027 100644 --- a/os/hal/platforms/LPC214x/pal_lld.c +++ b/os/hal/platforms/LPC214x/pal_lld.c @@ -29,6 +29,26 @@ #if CH_HAL_USE_PAL || defined(__DOXYGEN__) +/*===========================================================================*/ +/* Driver exported variables. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Driver local variables. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Driver local functions. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Driver interrupt handlers. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Driver exported functions. */ +/*===========================================================================*/ + /** * @brief LPC214x I/O ports configuration. * @details FIO units and PINSEL registers initialization. diff --git a/os/hal/platforms/LPC214x/serial_lld.c b/os/hal/platforms/LPC214x/serial_lld.c index d7eaaadc4..819b2df9a 100644 --- a/os/hal/platforms/LPC214x/serial_lld.c +++ b/os/hal/platforms/LPC214x/serial_lld.c @@ -29,6 +29,10 @@ #if CH_HAL_USE_SERIAL || defined(__DOXYGEN__) +/*===========================================================================*/ +/* Driver exported variables. */ +/*===========================================================================*/ + #if USE_LPC214x_UART0 || defined(__DOXYGEN__) /** @brief UART0 serial driver identifier.*/ SerialDriver SD1; @@ -39,6 +43,10 @@ SerialDriver SD1; SerialDriver SD2; #endif +/*===========================================================================*/ +/* Driver local variables. */ +/*===========================================================================*/ + /** @brief Driver default configuration.*/ static const SerialDriverConfig default_config = { 38400, @@ -47,7 +55,7 @@ static const SerialDriverConfig default_config = { }; /*===========================================================================*/ -/* Low Level Driver local functions. */ +/* Driver local functions. */ /*===========================================================================*/ /** @@ -228,7 +236,7 @@ static void notify2(void) { #endif /*===========================================================================*/ -/* Low Level Driver interrupt handlers. */ +/* Driver interrupt handlers. */ /*===========================================================================*/ #if USE_LPC214x_UART0 || defined(__DOXYGEN__) @@ -257,7 +265,7 @@ CH_IRQ_HANDLER(UART1IrqHandler) { /*===========================================================================*/ -/* Low Level Driver exported functions. */ +/* Driver exported functions. */ /*===========================================================================*/ /** diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h index 376107ec7..cea587935 100644 --- a/os/hal/platforms/LPC214x/serial_lld.h +++ b/os/hal/platforms/LPC214x/serial_lld.h @@ -29,6 +29,10 @@ #if CH_HAL_USE_SERIAL || defined(__DOXYGEN__) +/*===========================================================================*/ +/* Driver constants. */ +/*===========================================================================*/ + /*===========================================================================*/ /* Driver pre-compile time settings. */ /*===========================================================================*/ @@ -56,7 +60,7 @@ * smaller and simpler. */ #if !defined(UART_FIFO_PRELOAD) || defined(__DOXYGEN__) -#define UART_FIFO_PRELOAD 16 +#define UART_FIFO_PRELOAD 16 #endif /** @@ -65,7 +69,7 @@ * @note The default is @p TRUE . */ #if !defined(USE_LPC214x_UART0) || defined(__DOXYGEN__) -#define USE_LPC214x_UART0 TRUE +#define USE_LPC214x_UART0 TRUE #endif /** @@ -74,7 +78,7 @@ * @note The default is @p TRUE. */ #if !defined(USE_LPC214x_UART1) || defined(__DOXYGEN__) -#define USE_LPC214x_UART1 TRUE +#define USE_LPC214x_UART1 TRUE #endif /** @@ -92,7 +96,7 @@ #endif /*===========================================================================*/ -/* Unsupported event flags and custom events. */ +/* Derived constants and error checks. */ /*===========================================================================*/ /*===========================================================================*/ @@ -148,6 +152,10 @@ typedef struct { uint32_t fcr; } SerialDriverConfig; +/*===========================================================================*/ +/* Driver macros. */ +/*===========================================================================*/ + /*===========================================================================*/ /* External declarations. */ /*===========================================================================*/ diff --git a/os/hal/platforms/LPC214x/spi_lld.c b/os/hal/platforms/LPC214x/spi_lld.c index 6e7f7a44b..8ed19b8ea 100644 --- a/os/hal/platforms/LPC214x/spi_lld.c +++ b/os/hal/platforms/LPC214x/spi_lld.c @@ -18,9 +18,9 @@ */ /** - * @file templates/spi_lld.c - * @brief SPI Driver subsystem low level driver source template. - * @addtogroup SPI_LLD + * @file LPC214x/spi_lld.c + * @brief LPC214x low level SPI driver code. + * @addtogroup LPC214x_SPI * @{ */ @@ -30,7 +30,7 @@ #if CH_HAL_USE_SPI || defined(__DOXYGEN__) /*===========================================================================*/ -/* Low Level Driver exported variables. */ +/* Driver exported variables. */ /*===========================================================================*/ #if USE_LPC214x_SPI1 || defined(__DOXYGEN__) @@ -39,11 +39,11 @@ SPIDriver SPID1; #endif /*===========================================================================*/ -/* Low Level Driver local variables. */ +/* Driver local variables. */ /*===========================================================================*/ /*===========================================================================*/ -/* Low Level Driver local functions. */ +/* Driver local functions. */ /*===========================================================================*/ /** @@ -77,11 +77,11 @@ void rw8(size_t n, const uint8_t *txbuf, uint8_t *rxbuf) { } /*===========================================================================*/ -/* Low Level Driver interrupt handlers. */ +/* Driver interrupt handlers. */ /*===========================================================================*/ /*===========================================================================*/ -/* Low Level Driver exported functions. */ +/* Driver exported functions. */ /*===========================================================================*/ /** diff --git a/os/hal/platforms/LPC214x/spi_lld.h b/os/hal/platforms/LPC214x/spi_lld.h index 4d174b587..6f3527171 100644 --- a/os/hal/platforms/LPC214x/spi_lld.h +++ b/os/hal/platforms/LPC214x/spi_lld.h @@ -18,9 +18,9 @@ */ /** - * @file templates/spi_lld.h - * @brief SPI Driver subsystem low level driver header template. - * @addtogroup SPI_LLD + * @file LPC214x/spi_lld.h + * @brief LPC214x low level SPI driver header. + * @addtogroup LPC214x_SPI * @{ */ @@ -116,6 +116,10 @@ typedef struct { /* End of the mandatory fields.*/ } SPIDriver; +/*===========================================================================*/ +/* Driver macros. */ +/*===========================================================================*/ + /*===========================================================================*/ /* External declarations. */ /*===========================================================================*/ -- cgit v1.2.3