aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/adc.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-21 18:25:56 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-21 18:25:56 +0000
commit0f395838d3782f0865ead3dacc7c5acb5cfc73f0 (patch)
tree4083259d2e7ac1765853e00596b4598e60c5fca1 /os/hal/src/adc.c
parentf2386f6a22c55842203278c5b1f9691c5ac5f8fd (diff)
downloadChibiOS-0f395838d3782f0865ead3dacc7c5acb5cfc73f0.tar.gz
ChibiOS-0f395838d3782f0865ead3dacc7c5acb5cfc73f0.tar.bz2
ChibiOS-0f395838d3782f0865ead3dacc7c5acb5cfc73f0.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2516 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src/adc.c')
-rw-r--r--os/hal/src/adc.c5
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),