diff options
Diffstat (limited to 'os/hal/src/adc.c')
-rw-r--r-- | os/hal/src/adc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/os/hal/src/adc.c b/os/hal/src/adc.c index e057ea425..c5ac7534a 100644 --- a/os/hal/src/adc.c +++ b/os/hal/src/adc.c @@ -91,13 +91,14 @@ void adcObjectInit(ADCDriver *adcp) { * @brief Configures and activates the ADC peripheral.
*
* @param[in] adcp pointer to the @p ADCDriver object
- * @param[in] config pointer to the @p ADCConfig object
+ * @param[in] config pointer to the @p ADCConfig object. Depending on
+ * the implementation the value can be @p NULL.
*
* @api
*/
void adcStart(ADCDriver *adcp, const ADCConfig *config) {
- chDbgCheck((adcp != NULL) && (config != NULL), "adcStart");
+ chDbgCheck(adcp != NULL, "adcStart");
chSysLock();
chDbgAssert((adcp->ad_state == ADC_STOP) || (adcp->ad_state == ADC_READY),
|