diff options
Diffstat (limited to 'os/hal/src')
-rw-r--r-- | os/hal/src/sdc.c | 6 |
1 files changed, 4 insertions, 2 deletions
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),
|