aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/LPC214x/serial_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-04-21 17:42:35 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-04-21 17:42:35 +0000
commitf843a37153bf8a35a4d45f43bd79a4540d595b65 (patch)
treeaeff3aad6fa1d47037ec1665440642d57012d787 /os/hal/platforms/LPC214x/serial_lld.h
parent75792b3d6af243e043e66b1b2f7199229d430ef8 (diff)
downloadChibiOS-f843a37153bf8a35a4d45f43bd79a4540d595b65.tar.gz
ChibiOS-f843a37153bf8a35a4d45f43bd79a4540d595b65.tar.bz2
ChibiOS-f843a37153bf8a35a4d45f43bd79a4540d595b65.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1883 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/LPC214x/serial_lld.h')
-rw-r--r--os/hal/platforms/LPC214x/serial_lld.h37
1 files changed, 18 insertions, 19 deletions
diff --git a/os/hal/platforms/LPC214x/serial_lld.h b/os/hal/platforms/LPC214x/serial_lld.h
index 6d47f9d95..a5cea7538 100644
--- a/os/hal/platforms/LPC214x/serial_lld.h
+++ b/os/hal/platforms/LPC214x/serial_lld.h
@@ -18,8 +18,9 @@
*/
/**
- * @file LPC214x/serial_lld.h
- * @brief LPC214x low level serial driver header.
+ * @file LPC214x/serial_lld.h
+ * @brief LPC214x low level serial driver header.
+ *
* @addtogroup LPC214x_SERIAL
* @{
*/
@@ -38,45 +39,45 @@
/*===========================================================================*/
/**
- * @brief UART0 driver enable switch.
+ * @brief UART0 driver enable switch.
* @details If set to @p TRUE the support for UART0 is included.
- * @note The default is @p TRUE .
+ * @note The default is @p TRUE .
*/
#if !defined(USE_LPC214x_UART0) || defined(__DOXYGEN__)
#define USE_LPC214x_UART0 TRUE
#endif
/**
- * @brief UART1 driver enable switch.
+ * @brief UART1 driver enable switch.
* @details If set to @p TRUE the support for UART1 is included.
- * @note The default is @p TRUE.
+ * @note The default is @p TRUE.
*/
#if !defined(USE_LPC214x_UART1) || defined(__DOXYGEN__)
#define USE_LPC214x_UART1 TRUE
#endif
/**
- * @brief FIFO preload parameter.
+ * @brief FIFO preload parameter.
* @details Configuration parameter, this values defines how many bytes are
- * preloaded in the HW transmit FIFO for each interrupt, the maximum value is
- * 16 the minimum is 1.
- * @note An high value reduces the number of interrupts generated but can
- * also increase the worst case interrupt response time because the
- * preload loops.
+ * preloaded in the HW transmit FIFO for each interrupt, the maximum
+ * value is 16 the minimum is 1.
+ * @note An high value reduces the number of interrupts generated but can
+ * also increase the worst case interrupt response time because the
+ * preload loops.
*/
#if !defined(LPC214x_UART_FIFO_PRELOAD) || defined(__DOXYGEN__)
#define LPC214x_UART_FIFO_PRELOAD 16
#endif
/**
- * @brief UART0 interrupt priority level setting.
+ * @brief UART0 interrupt priority level setting.
*/
#if !defined(LPC214x_UART0_PRIORITY) || defined(__DOXYGEN__)
#define LPC214x_UART0_PRIORITY 1
#endif
/**
- * @brief UART1 interrupt priority level setting.
+ * @brief UART1 interrupt priority level setting.
*/
#if !defined(LPC214x_UART1_PRIORITY) || defined(__DOXYGEN__)
#define LPC214x_UART1_PRIORITY 2
@@ -95,12 +96,12 @@
/*===========================================================================*/
/**
- * @brief Serial Driver condition flags type.
+ * @brief Serial Driver condition flags type.
*/
typedef uint32_t sdflags_t;
/**
- * @brief LPC214x Serial Driver configuration structure.
+ * @brief LPC214x Serial Driver configuration structure.
* @details An instance of this structure must be passed to @p sdStart()
* in order to configure and start a serial driver operations.
*/
@@ -126,8 +127,6 @@ typedef struct {
_base_asynchronous_channel_data \
/* Driver state.*/ \
sdstate_t state; \
- /* Current configuration data.*/ \
- const SerialConfig *config; \
/* Input queue.*/ \
InputQueue iqueue; \
/* Output queue.*/ \
@@ -163,7 +162,7 @@ extern SerialDriver SD2;
extern "C" {
#endif
void sd_lld_init(void);
- void sd_lld_start(SerialDriver *sdp);
+ void sd_lld_start(SerialDriver *sdp, const SerialConfig *config);
void sd_lld_stop(SerialDriver *sdp);
#ifdef __cplusplus
}