diff options
Diffstat (limited to 'boards/OLIMEX_SAM7_P256/board.c')
-rw-r--r-- | boards/OLIMEX_SAM7_P256/board.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/boards/OLIMEX_SAM7_P256/board.c b/boards/OLIMEX_SAM7_P256/board.c index bb79437a8..60c6b2761 100644 --- a/boards/OLIMEX_SAM7_P256/board.c +++ b/boards/OLIMEX_SAM7_P256/board.c @@ -68,6 +68,21 @@ void __early_init(void) { at91sam7_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(IOPORT1, PIOA_MMC_CP);
+}
+
+bool_t mmc_lld_is_write_protected(MMCDriver *mmcp) {
+
+ (void)mmcp;
+ return palReadPad(IOPORT1, PIOA_MMC_WP);
+}
+#endif
+
/*
* Board-specific initialization code.
*/
|