From 75792b3d6af243e043e66b1b2f7199229d430ef8 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 21 Apr 2010 14:11:12 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1882 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/MSP430/serial_lld.h | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'os/hal/platforms/MSP430/serial_lld.h') diff --git a/os/hal/platforms/MSP430/serial_lld.h b/os/hal/platforms/MSP430/serial_lld.h index ad7ae7dd4..d19c9160d 100644 --- a/os/hal/platforms/MSP430/serial_lld.h +++ b/os/hal/platforms/MSP430/serial_lld.h @@ -18,8 +18,9 @@ */ /** - * @file MSP430/serial_lld.h - * @brief MSP430 low level serial driver header. + * @file MSP430/serial_lld.h + * @brief MSP430 low level serial driver header. + * * @addtogroup MSP430_SERIAL * @{ */ @@ -38,18 +39,18 @@ /*===========================================================================*/ /** - * @brief USART0 driver enable switch. + * @brief USART0 driver enable switch. * @details If set to @p TRUE the support for USART0 is included. - * @note The default is @p TRUE. + * @note The default is @p TRUE. */ #if !defined(USE_MSP430_USART0) || defined(__DOXYGEN__) #define USE_MSP430_USART0 TRUE #endif /** - * @brief USART1 driver enable switch. + * @brief USART1 driver enable switch. * @details If set to @p TRUE the support for USART1 is included. - * @note The default is @p FALSE. + * @note The default is @p FALSE. */ #if !defined(USE_MSP430_USART1) || defined(__DOXYGEN__) #define USE_MSP430_USART1 TRUE @@ -64,12 +65,12 @@ /*===========================================================================*/ /** - * Serial Driver condition flags type. + * @brief Serial Driver condition flags type. */ typedef uint8_t sdflags_t; /** - * @brief MSP430 Serial Driver configuration structure. + * @brief MSP430 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. */ @@ -95,8 +96,6 @@ typedef struct { _base_asynchronous_channel_data \ /* Driver state.*/ \ sdstate_t state; \ - /* Current configuration data.*/ \ - const SerialConfig *config; \ /* Input queue.*/ \ InputQueue iqueue; \ /* Output queue.*/ \ @@ -116,8 +115,8 @@ typedef struct { /*===========================================================================*/ /** - * @brief Macro for baud rate computation. - * @note Make sure the final baud rate is within tolerance. + * @brief Macro for baud rate computation. + * @note Make sure the final baud rate is within tolerance. */ #define UBR(b) (SMCLK / (b)) @@ -136,7 +135,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 } -- cgit v1.2.3