diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-05-02 15:23:50 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-05-02 15:23:50 +0000 |
commit | 31456cb4fea72d79b9c1af9a5b0cc7e3fed1ed6e (patch) | |
tree | edd790c30758bf9cef1e70e1066fa0a909547f76 /os/hal/platforms | |
parent | 9dd9aca2d4da2c346b3dd48ce532bdd07ac913f6 (diff) | |
download | ChibiOS-31456cb4fea72d79b9c1af9a5b0cc7e3fed1ed6e.tar.gz ChibiOS-31456cb4fea72d79b9c1af9a5b0cc7e3fed1ed6e.tar.bz2 ChibiOS-31456cb4fea72d79b9c1af9a5b0cc7e3fed1ed6e.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2914 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms')
-rw-r--r-- | os/hal/platforms/STM32/sdc_lld.c | 36 | ||||
-rw-r--r-- | os/hal/platforms/STM32/sdc_lld.h | 2 |
2 files changed, 38 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32/sdc_lld.c b/os/hal/platforms/STM32/sdc_lld.c index bc6855fed..b289da8ba 100644 --- a/os/hal/platforms/STM32/sdc_lld.c +++ b/os/hal/platforms/STM32/sdc_lld.c @@ -301,6 +301,42 @@ bool_t sdc_lld_send_cmd_long_crc(SDCDriver *sdcp, uint8_t cmd, uint32_t arg, return FALSE;
}
+/**
+ * @brief Data read through the SDIO bus.
+ *
+ * @param[in] sdcp pointer to the @p SDCDriver object
+ * @param[out] buf pointer to the read buffer
+ * @param[in] n number of blocks to read
+ * @return The operation status.
+ * @retval FALSE operation succeeded, the requested blocks have been
+ * read.
+ * @retval TRUE operation failed, the state of the buffer is uncertain.
+ *
+ * @notapi
+ */
+bool_t sdc_lld_read_blocks(SDCDriver *sdcp, uint8_t *buf, uint32_t n) {
+
+ return TRUE;
+}
+
+/**
+ * @brief Data write through the SDIO bus.
+ *
+ * @param[in] sdcp pointer to the @p SDCDriver object
+ * @param[out] buf pointer to the write buffer
+ * @param[in] n number of blocks to write
+ * @return The operation status.
+ * @retval FALSE operation succeeded, the requested blocks have been
+ * written.
+ * @retval TRUE operation failed.
+ *
+ * @notapi
+ */
+bool_t sdc_lld_write_blocks(SDCDriver *sdcp, const uint8_t *buf, uint32_t n) {
+
+ return TRUE;
+}
+
#endif /* HAL_USE_SDC */
/** @} */
diff --git a/os/hal/platforms/STM32/sdc_lld.h b/os/hal/platforms/STM32/sdc_lld.h index e55205b53..349c1df95 100644 --- a/os/hal/platforms/STM32/sdc_lld.h +++ b/os/hal/platforms/STM32/sdc_lld.h @@ -172,6 +172,8 @@ extern "C" { uint32_t *resp);
bool_t sdc_lld_send_cmd_long_crc(SDCDriver *sdcp, uint8_t cmd, uint32_t arg,
uint32_t *resp);
+ bool_t sdc_lld_read_blocks(SDCDriver *sdcp, uint8_t *buffer, uint32_t n);
+ bool_t sdc_lld_write_blocks(SDCDriver *sdcp, const uint8_t *buf, uint32_t n);
#ifdef __cplusplus
}
#endif
|