From c2ba7ebf4611f2beec0ebdf537934f6f28513579 Mon Sep 17 00:00:00 2001 From: liamstask Date: Mon, 19 Apr 2010 15:29:44 +0000 Subject: * 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 --- os/hal/src/serial.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'os/hal/src') diff --git a/os/hal/src/serial.c b/os/hal/src/serial.c index 52a1772c8..94418e46c 100644 --- a/os/hal/src/serial.c +++ b/os/hal/src/serial.c @@ -146,8 +146,7 @@ void sdStart(SerialDriver *sdp, const SerialConfig *config) { chDbgAssert((sdp->state == SD_STOP) || (sdp->state == SD_READY), "sdStart(), #1", "invalid state"); - sdp->config = config; - sd_lld_start(sdp); + sd_lld_start(sdp, config); sdp->state = SD_READY; chSysUnlock(); } -- cgit v1.2.3