git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1475 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2009-12-29 12:05:35 +00:00
parent 99563ecc3d
commit 86e45e167e
7 changed files with 67 additions and 23 deletions

View File

@ -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. */
/*===========================================================================*/
/**

View File

@ -53,6 +53,10 @@
/* Driver data structures and types. */
/*===========================================================================*/
/*===========================================================================*/
/* Driver macros. */
/*===========================================================================*/
/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/

View File

@ -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.

View File

@ -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. */
/*===========================================================================*/
/**

View File

@ -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. */
/*===========================================================================*/

View File

@ -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. */
/*===========================================================================*/
/**

View File

@ -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. */
/*===========================================================================*/