aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-05-09 18:44:47 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-05-09 18:44:47 +0000
commit6a8a643ab00e5964a3fb77e5b2394561bb797e55 (patch)
tree176069080cfea24c39cd307872aef3f0e2a72d40 /demos
parent7f87eee586adf22f28b1687ef92051065a0a5ee5 (diff)
downloadChibiOS-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 'demos')
-rw-r--r--demos/ARMCM3-STM32F103-FATFS/main.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/demos/ARMCM3-STM32F103-FATFS/main.c b/demos/ARMCM3-STM32F103-FATFS/main.c
index c45b119b0..8df04aef7 100644
--- a/demos/ARMCM3-STM32F103-FATFS/main.c
+++ b/demos/ARMCM3-STM32F103-FATFS/main.c
@@ -53,12 +53,6 @@ static SPIConfig hs_spicfg = {NULL, IOPORT2, GPIOB_SPI2NSS, 0};
static SPIConfig ls_spicfg = {NULL, IOPORT2, GPIOB_SPI2NSS,
SPI_CR1_BR_2 | SPI_CR1_BR_1};
-/* Card insertion verification.*/
-static bool_t mmc_is_inserted(void) {return palReadPad(IOPORT3, GPIOC_MMCCP);}
-
-/* Card protection verification.*/
-static bool_t mmc_is_protected(void) {return !palReadPad(IOPORT3, GPIOC_MMCWP);}
-
/* Generic large buffer.*/
uint8_t fbuff[1024];
@@ -277,9 +271,7 @@ int main(void) {
*/
palSetPadMode(IOPORT2, GPIOB_SPI2NSS, PAL_MODE_OUTPUT_PUSHPULL);
palSetPad(IOPORT2, GPIOB_SPI2NSS);
- mmcObjectInit(&MMCD1, &SPID2,
- &ls_spicfg, &hs_spicfg,
- mmc_is_protected, mmc_is_inserted);
+ mmcObjectInit(&MMCD1, &SPID2, &ls_spicfg, &hs_spicfg);
mmcStart(&MMCD1, NULL);
/*