diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-04-21 17:42:35 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-04-21 17:42:35 +0000 |
commit | f843a37153bf8a35a4d45f43bd79a4540d595b65 (patch) | |
tree | aeff3aad6fa1d47037ec1665440642d57012d787 /os/hal/platforms/MSP430 | |
parent | 75792b3d6af243e043e66b1b2f7199229d430ef8 (diff) | |
download | ChibiOS-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/MSP430')
-rw-r--r-- | os/hal/platforms/MSP430/serial_lld.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/platforms/MSP430/serial_lld.c b/os/hal/platforms/MSP430/serial_lld.c index 8186813fb..4ab12a872 100644 --- a/os/hal/platforms/MSP430/serial_lld.c +++ b/os/hal/platforms/MSP430/serial_lld.c @@ -264,18 +264,18 @@ void sd_lld_init(void) { */
void sd_lld_start(SerialDriver *sdp, const SerialConfig *config) {
- if (sdp->config == NULL)
- sdp->config = &default_config;
+ if (config == NULL)
+ config = &default_config;
#if USE_MSP430_USART0
if (&SD1 == sdp) {
- usart0_init(sdp->config);
+ usart0_init(config);
return;
}
#endif
#if USE_MSP430_USART1
if (&SD2 == sdp) {
- usart1_init(sdp->config);
+ usart1_init(config);
return;
}
#endif
|