git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1298 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
9963e8f14e
commit
55252f65b2
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue