diff options
author | liamstask <liamstask@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-04-19 15:29:44 +0000 |
---|---|---|
committer | liamstask <liamstask@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-04-19 15:29:44 +0000 |
commit | c2ba7ebf4611f2beec0ebdf537934f6f28513579 (patch) | |
tree | 88040ba4b38819e5877f1c9ded4321303ddc653c /os/hal/platforms/AT91SAM7/serial_lld.h | |
parent | 09126fe34f64af501fd163d4d385a71479d71096 (diff) | |
download | ChibiOS-c2ba7ebf4611f2beec0ebdf537934f6f28513579.tar.gz ChibiOS-c2ba7ebf4611f2beec0ebdf537934f6f28513579.tar.bz2 ChibiOS-c2ba7ebf4611f2beec0ebdf537934f6f28513579.zip |
* remove the SerialConfig pointer from the SerialDriver structure. This is now simply passed through from sdStart() to sd_lld_start()
* implementation for AT91SAM7 port provided - others will need to be updated
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1875 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/AT91SAM7/serial_lld.h')
-rw-r--r-- | os/hal/platforms/AT91SAM7/serial_lld.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/platforms/AT91SAM7/serial_lld.h b/os/hal/platforms/AT91SAM7/serial_lld.h index e3bb23259..33355ab3d 100644 --- a/os/hal/platforms/AT91SAM7/serial_lld.h +++ b/os/hal/platforms/AT91SAM7/serial_lld.h @@ -90,10 +90,12 @@ typedef uint32_t sdflags_t; typedef struct {
/**
* @brief Bit rate.
+ * @details This is written to the US_BRGR register of the appropriate AT91S_USART
*/
uint32_t sc_speed;
/**
* @brief Initialization value for the MR register.
+ * @details This is written to the US_MR register of the appropriate AT91S_USART
*/
uint32_t sc_mr;
} SerialConfig;
@@ -105,8 +107,6 @@ typedef struct { _base_asynchronous_channel_data \
/* Driver state.*/ \
sdstate_t state; \
- /* Current configuration data.*/ \
- const SerialConfig *config; \
/* Input queue.*/ \
InputQueue iqueue; \
/* Output queue.*/ \
@@ -142,7 +142,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
}
|