aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-LPC214x-GCC/mmcsd.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-06-07 17:53:23 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-06-07 17:53:23 +0000
commitbe1e6b03d4a49b6fa16c3368435089f8706fb566 (patch)
treeea4aca882019de105a00451e379ca55955c38dfb /demos/ARM7-LPC214x-GCC/mmcsd.c
parentb2e6f6a6a5ee0af322472c151565be6cba0e1fa0 (diff)
downloadChibiOS-be1e6b03d4a49b6fa16c3368435089f8706fb566.tar.gz
ChibiOS-be1e6b03d4a49b6fa16c3368435089f8706fb566.tar.bz2
ChibiOS-be1e6b03d4a49b6fa16c3368435089f8706fb566.zip
Adjusted PAL support for LPC214x.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1026 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-LPC214x-GCC/mmcsd.c')
-rw-r--r--demos/ARM7-LPC214x-GCC/mmcsd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/demos/ARM7-LPC214x-GCC/mmcsd.c b/demos/ARM7-LPC214x-GCC/mmcsd.c
index bff2967d9..98ff2a23b 100644
--- a/demos/ARM7-LPC214x-GCC/mmcsd.c
+++ b/demos/ARM7-LPC214x-GCC/mmcsd.c
@@ -18,6 +18,7 @@
*/
#include <ch.h>
+#include <pal.h>
#include "board.h"
#include "lpc214x_ssp.h"
@@ -42,7 +43,7 @@ void InitMMC(void) {
void tmrfunc(void *par) {
if (cnt) {
- if (!(chPortRead(IOPORT_B) & PB_CP1)) {
+ if (!palReadPad(IOPORT_B, PB_CP1)) {
if (!--cnt)
chEvtBroadcastI(&MMCInsertEventSource);
}
@@ -50,7 +51,7 @@ void tmrfunc(void *par) {
cnt = POLLING_INTERVAL;
}
else {
- if (chPortRead(IOPORT_B) & PB_CP1) {
+ if (palReadPad(IOPORT_B, PB_CP1)) {
cnt = POLLING_INTERVAL;
chEvtBroadcastI(&MMCRemoveEventSource);
}