diff options
Diffstat (limited to 'os/hal/templates/serial_lld.c')
-rw-r--r-- | os/hal/templates/serial_lld.c | 11 |
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;
}
|