aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/hal/platforms/STM32/sdc_lld.c3
-rw-r--r--os/hal/src/sdc.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/os/hal/platforms/STM32/sdc_lld.c b/os/hal/platforms/STM32/sdc_lld.c
index c790f49d9..a88ad53fa 100644
--- a/os/hal/platforms/STM32/sdc_lld.c
+++ b/os/hal/platforms/STM32/sdc_lld.c
@@ -422,7 +422,8 @@ void sdc_lld_init(void) {
/**
* @brief Configures and activates the SDC peripheral.
*
- * @param[in] sdcp pointer to the @p SDCDriver object
+ * @param[in] sdcp pointer to the @p SDCDriver object, must be @p NULL,
+ * this driver does not require any configuration
*
* @notapi
*/
diff --git a/os/hal/src/sdc.c b/os/hal/src/sdc.c
index 08c667df4..283a0ee75 100644
--- a/os/hal/src/sdc.c
+++ b/os/hal/src/sdc.c
@@ -113,13 +113,15 @@ void sdcObjectInit(SDCDriver *sdcp) {
* @brief Configures and activates the SDC peripheral.
*
* @param[in] sdcp pointer to the @p SDCDriver object
- * @param[in] config pointer to the @p SDCConfig object
+ * @param[in] config pointer to the @p SDCConfig object, can be @p NULL if
+ * the driver supports a default configuration or
+ * requires no configuration
*
* @api
*/
void sdcStart(SDCDriver *sdcp, const SDCConfig *config) {
- chDbgCheck((sdcp != NULL) && (config != NULL), "sdcStart");
+ chDbgCheck(sdcp != NULL, "sdcStart");
chSysLock();
chDbgAssert((sdcp->state == SDC_STOP) || (sdcp->state == SDC_READY),