diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-05-09 18:44:47 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-05-09 18:44:47 +0000 |
commit | 6a8a643ab00e5964a3fb77e5b2394561bb797e55 (patch) | |
tree | 176069080cfea24c39cd307872aef3f0e2a72d40 /boards/OLIMEX_STM32_P103 | |
parent | 7f87eee586adf22f28b1687ef92051065a0a5ee5 (diff) | |
download | ChibiOS-6a8a643ab00e5964a3fb77e5b2394561bb797e55.tar.gz ChibiOS-6a8a643ab00e5964a3fb77e5b2394561bb797e55.tar.bz2 ChibiOS-6a8a643ab00e5964a3fb77e5b2394561bb797e55.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4179 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/OLIMEX_STM32_P103')
-rw-r--r-- | boards/OLIMEX_STM32_P103/board.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/boards/OLIMEX_STM32_P103/board.c b/boards/OLIMEX_STM32_P103/board.c index 92f1fe364..cdd45553c 100644 --- a/boards/OLIMEX_STM32_P103/board.c +++ b/boards/OLIMEX_STM32_P103/board.c @@ -47,6 +47,21 @@ void __early_init(void) { stm32_clock_init();
}
+#if HAL_USE_MMC_SPI
+/* Board-related functions related to the MMC_SPI driver.*/
+bool_t mmc_lld_is_card_inserted(MMCDriver *mmcp) {
+
+ (void)mmcp;
+ return palReadPad(GPIOC, GPIOC_MMCCP);
+}
+
+bool_t mmc_lld_is_write_protected(MMCDriver *mmcp) {
+
+ (void)mmcp;
+ return !palReadPad(GPIOC, GPIOC_MMCWP);
+}
+#endif
+
/*
* Board-specific initialization code.
*/
|