From be1e6b03d4a49b6fa16c3368435089f8706fb566 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 7 Jun 2009 17:53:23 +0000 Subject: Adjusted PAL support for LPC214x. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1026 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/ARM7-LPC214x-G++/board.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'demos/ARM7-LPC214x-G++/board.c') diff --git a/demos/ARM7-LPC214x-G++/board.c b/demos/ARM7-LPC214x-G++/board.c index f188372b3..c3c39a5a9 100644 --- a/demos/ARM7-LPC214x-G++/board.c +++ b/demos/ARM7-LPC214x-G++/board.c @@ -18,6 +18,7 @@ */ #include +#include #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); } /* -- cgit v1.2.3