aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/serial_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-01-02 13:35:55 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-01-02 13:35:55 +0000
commitbedb87c1e7cc9741c57c299d81d6e24c5e9c59c5 (patch)
tree7a3f0b05365b525bd9335b9a660aa80b6b6975b3 /os/hal/templates/serial_lld.c
parent15e6fecf11e470abebe963177434f83883e63acf (diff)
downloadChibiOS-bedb87c1e7cc9741c57c299d81d6e24c5e9c59c5.tar.gz
ChibiOS-bedb87c1e7cc9741c57c299d81d6e24c5e9c59c5.tar.bz2
ChibiOS-bedb87c1e7cc9741c57c299d81d6e24c5e9c59c5.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1495 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/templates/serial_lld.c')
-rw-r--r--os/hal/templates/serial_lld.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/os/hal/templates/serial_lld.c b/os/hal/templates/serial_lld.c
index 63d1b09cf..cd155f210 100644
--- a/os/hal/templates/serial_lld.c
+++ b/os/hal/templates/serial_lld.c
@@ -38,7 +38,7 @@
/*===========================================================================*/
/** @brief Driver default configuration.*/
-static const SerialDriverConfig default_config = {
+static const SerialConfig default_config = {
};
/*===========================================================================*/
@@ -64,14 +64,11 @@ void sd_lld_init(void) {
* @brief Low level serial driver configuration and (re)start.
*
* @param[in] sdp pointer to a @p SerialDriver object
- * @param[in] config the architecture-dependent serial driver configuration.
- * If this parameter is set to @p NULL then a default
- * configuration is used.
*/
-void sd_lld_start(SerialDriver *sdp, const SerialDriverConfig *config) {
+void sd_lld_start(SerialDriver *sdp) {
- if (config == NULL)
- config = &default_config;
+ if (sdp->sd.config == NULL)
+ sdp->sd.config = &default_config;
}