diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-08-27 16:42:07 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-08-27 16:42:07 +0000 |
commit | 8b55cb9767ce881b7a22c5af34605ed3a261582d (patch) | |
tree | 2b1e4239c2909496d83058a0a16da65525c9e70c /demos/ARM7-LPC214x-GCC/mmcsd.c | |
parent | b8e618f59a5bc34aa76e2aacd6484ad217c54e33 (diff) | |
download | ChibiOS-8b55cb9767ce881b7a22c5af34605ed3a261582d.tar.gz ChibiOS-8b55cb9767ce881b7a22c5af34605ed3a261582d.tar.bz2 ChibiOS-8b55cb9767ce881b7a22c5af34605ed3a261582d.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1109 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-LPC214x-GCC/mmcsd.c')
-rw-r--r-- | demos/ARM7-LPC214x-GCC/mmcsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/ARM7-LPC214x-GCC/mmcsd.c b/demos/ARM7-LPC214x-GCC/mmcsd.c index 98ff2a23b..aba532544 100644 --- a/demos/ARM7-LPC214x-GCC/mmcsd.c +++ b/demos/ARM7-LPC214x-GCC/mmcsd.c @@ -43,7 +43,7 @@ void InitMMC(void) { void tmrfunc(void *par) {
if (cnt) {
- if (!palReadPad(IOPORT_B, PB_CP1)) {
+ if (!palReadPad(IOPORT2, PB_CP1)) {
if (!--cnt)
chEvtBroadcastI(&MMCInsertEventSource);
}
@@ -51,7 +51,7 @@ void tmrfunc(void *par) { cnt = POLLING_INTERVAL;
}
else {
- if (palReadPad(IOPORT_B, PB_CP1)) {
+ if (palReadPad(IOPORT2, PB_CP1)) {
cnt = POLLING_INTERVAL;
chEvtBroadcastI(&MMCRemoveEventSource);
}
|