aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-11-14 19:57:56 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-11-14 19:57:56 +0000
commit55252f65b2a444692ff1b2673b32ec1cf2b205c0 (patch)
tree73b8661252818c1ac4bbc1fa77cc0fd13b951446 /demos
parent9963e8f14e99c8ad7083002a0e5242d2aa13bd59 (diff)
downloadChibiOS-55252f65b2a444692ff1b2673b32ec1cf2b205c0.tar.gz
ChibiOS-55252f65b2a444692ff1b2673b32ec1cf2b205c0.tar.bz2
ChibiOS-55252f65b2a444692ff1b2673b32ec1cf2b205c0.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1298 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-rw-r--r--demos/ARMCM3-STM32F103-FATFS-GCC/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/ARMCM3-STM32F103-FATFS-GCC/main.c b/demos/ARMCM3-STM32F103-FATFS-GCC/main.c
index ef06c6614..5fd6737a6 100644
--- a/demos/ARMCM3-STM32F103-FATFS-GCC/main.c
+++ b/demos/ARMCM3-STM32F103-FATFS-GCC/main.c
@@ -58,7 +58,7 @@ static const MMCConfig mmc_cfg = {};
*/
static bool_t mmc_is_inserted(void) {
- return (bool_t)palReadPad(IOPORT3, GPIOC_MMCCP);
+ return palReadPad(IOPORT3, GPIOC_MMCCP);
}
/*
@@ -66,7 +66,7 @@ static bool_t mmc_is_inserted(void) {
*/
static bool_t mmc_is_protected(void) {
- return (bool_t)palReadPad(IOPORT3, GPIOC_MMCWP);
+ return !palReadPad(IOPORT3, GPIOC_MMCWP);
}
/**