diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-21 18:25:56 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-21 18:25:56 +0000 |
commit | 0f395838d3782f0865ead3dacc7c5acb5cfc73f0 (patch) | |
tree | 4083259d2e7ac1765853e00596b4598e60c5fca1 /os | |
parent | f2386f6a22c55842203278c5b1f9691c5ac5f8fd (diff) | |
download | ChibiOS-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')
-rw-r--r-- | os/hal/include/mmc_spi.h | 3 | ||||
-rw-r--r-- | os/hal/src/adc.c | 5 | ||||
-rw-r--r-- | os/hal/src/can.c | 5 | ||||
-rw-r--r-- | os/hal/src/mmc_spi.c | 4 |
4 files changed, 10 insertions, 7 deletions
diff --git a/os/hal/include/mmc_spi.h b/os/hal/include/mmc_spi.h index f413e3c15..241fae54a 100644 --- a/os/hal/include/mmc_spi.h +++ b/os/hal/include/mmc_spi.h @@ -120,9 +120,10 @@ typedef bool_t (*mmcquery_t)(void); /**
* @brief Driver configuration structure.
+ * @note Not required in the current implementation.
*/
typedef struct {
-
+ uint8_t dummy;
} MMCConfig;
/**
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),
diff --git a/os/hal/src/can.c b/os/hal/src/can.c index f389380ea..22f816e73 100644 --- a/os/hal/src/can.c +++ b/os/hal/src/can.c @@ -88,13 +88,14 @@ void canObjectInit(CANDriver *canp) { * complete.
*
* @param[in] canp pointer to the @p CANDriver object
- * @param[in] config pointer to the @p CANConfig object
+ * @param[in] config pointer to the @p CANConfig object. Depending on
+ * the implementation the value can be @p NULL.
*
* @api
*/
void canStart(CANDriver *canp, const CANConfig *config) {
- chDbgCheck((canp != NULL) && (config != NULL), "canStart");
+ chDbgCheck(canp != NULL, "canStart");
chSysLock();
chDbgAssert((canp->cd_state == CAN_STOP) ||
diff --git a/os/hal/src/mmc_spi.c b/os/hal/src/mmc_spi.c index f98f3f435..1004c26c2 100644 --- a/os/hal/src/mmc_spi.c +++ b/os/hal/src/mmc_spi.c @@ -236,13 +236,13 @@ void mmcObjectInit(MMCDriver *mmcp, SPIDriver *spip, * @brief Configures and activates the MMC peripheral.
*
* @param[in] mmcp pointer to the @p MMCDriver object
- * @param[in] config pointer to the @p MMCConfig object
+ * @param[in] config pointer to the @p MMCConfig object. Must be @p NULL.
*
* @api
*/
void mmcStart(MMCDriver *mmcp, const MMCConfig *config) {
- chDbgCheck((mmcp != NULL) && (config != NULL), "mmcStart");
+ chDbgCheck((mmcp != NULL) && (config == NULL), "mmcStart");
chSysLock();
chDbgAssert(mmcp->mmc_state == MMC_STOP, "mmcStart(), #1", "invalid state");
|