aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-LPC214x-GCC-minimal/board.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-06-07 16:54:39 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-06-07 16:54:39 +0000
commitb2e6f6a6a5ee0af322472c151565be6cba0e1fa0 (patch)
treeb6ec49597ebdb242c26db48db7a37f9e6cde0252 /demos/ARM7-LPC214x-GCC-minimal/board.c
parentf9ecd9f46e829010b0457a04993d2a89a37c104a (diff)
downloadChibiOS-b2e6f6a6a5ee0af322472c151565be6cba0e1fa0.tar.gz
ChibiOS-b2e6f6a6a5ee0af322472c151565be6cba0e1fa0.tar.bz2
ChibiOS-b2e6f6a6a5ee0af322472c151565be6cba0e1fa0.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1025 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-LPC214x-GCC-minimal/board.c')
-rw-r--r--demos/ARM7-LPC214x-GCC-minimal/board.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/demos/ARM7-LPC214x-GCC-minimal/board.c b/demos/ARM7-LPC214x-GCC-minimal/board.c
index a06b24291..2e56028cc 100644
--- a/demos/ARM7-LPC214x-GCC-minimal/board.c
+++ b/demos/ARM7-LPC214x-GCC-minimal/board.c
@@ -18,6 +18,7 @@
*/
#include <ch.h>
+#include <pal.h>
#include "lpc214x.h"
#include "vic.h"
@@ -103,11 +104,11 @@ void hwinit0(void) {
PINSEL0 = VAL_PINSEL0;
PINSEL1 = VAL_PINSEL1;
PINSEL2 = VAL_PINSEL2;
- ioport_init_lld();
- ioport_lpc214x_set_direction_lld(IOPORT_A, VAL_FIO0DIR);
- ioport_write_lld(IOPORT_A, 0xFFFFFFFF);
- ioport_lpc214x_set_direction_lld(IOPORT_B, VAL_FIO1DIR);
- ioport_write_lld(IOPORT_B, 0xFFFFFFFF);
+ palInit();
+ 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);
}
/*