diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-06-05 08:39:49 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-06-05 08:39:49 +0000 |
commit | 03b4c7ddcb08a565104c91859f51e56e513e3fd0 (patch) | |
tree | 231f4fa2c172739f5f7bebd4a7ea7245c4e7622b /os | |
parent | 9b147c25513490e959acf299a0fed9beaee04457 (diff) | |
download | ChibiOS-03b4c7ddcb08a565104c91859f51e56e513e3fd0.tar.gz ChibiOS-03b4c7ddcb08a565104c91859f51e56e513e3fd0.tar.bz2 ChibiOS-03b4c7ddcb08a565104c91859f51e56e513e3fd0.zip |
FatFs demo for the STM32F103ZG using the SDC driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3028 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/platforms/STM32/sdc_lld.c | 3 | ||||
-rw-r--r-- | os/hal/src/sdc.c | 6 |
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),
|