aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-LPC214x-GCC-minimal
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-07-04 15:33:21 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-07-04 15:33:21 +0000
commit2b5e0544c8285976d94abe21268342698c94dd85 (patch)
treec7cf0e209458e1622f9e399bc167e2c66f5f0586 /demos/ARM7-LPC214x-GCC-minimal
parent979da150361becdb50625d056915f81099710122 (diff)
downloadChibiOS-2b5e0544c8285976d94abe21268342698c94dd85.tar.gz
ChibiOS-2b5e0544c8285976d94abe21268342698c94dd85.tar.bz2
ChibiOS-2b5e0544c8285976d94abe21268342698c94dd85.zip
Completed PAL support for LPC214x.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1056 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-LPC214x-GCC-minimal')
-rw-r--r--demos/ARM7-LPC214x-GCC-minimal/board.c7
-rw-r--r--demos/ARM7-LPC214x-GCC-minimal/board.h6
2 files changed, 2 insertions, 11 deletions
diff --git a/demos/ARM7-LPC214x-GCC-minimal/board.c b/demos/ARM7-LPC214x-GCC-minimal/board.c
index 980626ab5..95732cfef 100644
--- a/demos/ARM7-LPC214x-GCC-minimal/board.c
+++ b/demos/ARM7-LPC214x-GCC-minimal/board.c
@@ -113,14 +113,7 @@ void hwinit0(void) {
/*
* I/O pins configuration.
*/
-// PINSEL0 = VAL_PINSEL0;
-// PINSEL1 = VAL_PINSEL1;
-// PINSEL2 = VAL_PINSEL2;
palInit(&config);
-// pal_lld_lpc214x_set_direction(IOPORT_A, VAL_FIO0DIR);
-// palWritePort(IOPORT_A, 0xFFFFFFFF);
-// pal_lld_lpc214x_set_direction(IOPORT_B, VAL_FIO1DIR);
-// palWritePort(IOPORT_B, 0xFFFFFFFF);
}
/*
diff --git a/demos/ARM7-LPC214x-GCC-minimal/board.h b/demos/ARM7-LPC214x-GCC-minimal/board.h
index ab4aa76f6..022383032 100644
--- a/demos/ARM7-LPC214x-GCC-minimal/board.h
+++ b/demos/ARM7-LPC214x-GCC-minimal/board.h
@@ -20,9 +20,7 @@
#ifndef _BOARD_H_
#define _BOARD_H_
-#ifndef _LPC214X_H_
#include "lpc214x.h"
-#endif
#define BOARD_OLIMEX_LCP_P2148
@@ -64,8 +62,8 @@
#define VAL_PINSEL2 0x00000004
#define VAL_FIO0DIR 0xB0703C00
#define VAL_FIO1DIR 0x00000000
-#define VAL_FIO0PIN 0x00000000
-#define VAL_FIO1PIN 0x00000000
+#define VAL_FIO0PIN 0xFFFFFFFF
+#define VAL_FIO1PIN 0xFFFFFFFF
#define PA_LED1 10
#define PA_LED2 11