aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARMCM3-STM32F103-GCC/board.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-06-07 10:27:48 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-06-07 10:27:48 +0000
commit4fc5b696fad6b10620dcd49149bf64b829e38f77 (patch)
tree4e2509a8201057aa54fc2cb22eac8188c738c4e5 /demos/ARMCM3-STM32F103-GCC/board.c
parent9659a679baf31f9890d941c4e25617a7ca70756f (diff)
downloadChibiOS-4fc5b696fad6b10620dcd49149bf64b829e38f77.tar.gz
ChibiOS-4fc5b696fad6b10620dcd49149bf64b829e38f77.tar.bz2
ChibiOS-4fc5b696fad6b10620dcd49149bf64b829e38f77.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1019 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARMCM3-STM32F103-GCC/board.c')
-rw-r--r--demos/ARMCM3-STM32F103-GCC/board.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/demos/ARMCM3-STM32F103-GCC/board.c b/demos/ARMCM3-STM32F103-GCC/board.c
index 2c73879f7..52701992a 100644
--- a/demos/ARMCM3-STM32F103-GCC/board.c
+++ b/demos/ARMCM3-STM32F103-GCC/board.c
@@ -18,6 +18,7 @@
*/
#include <ch.h>
+#include <pal.h>
#include <nvic.h>
#include "board.h"
@@ -59,23 +60,21 @@ void hwinit0(void) {
;
/*
- * I/O ports initialization as specified in board.h. Note that being this
- * a low level initialization routine it is OK to invoke directly the
- * low level port functions.
+ * I/O ports initialization as specified in board.h.
*/
- ioport_init_lld();
+ palInit();
- ioport_stm32_setup_lld(IOPORT_A, VAL_GPIOACRH, VAL_GPIOACRL);
- ioport_write_lld(IOPORT_A, VAL_GPIOAODR);
+ pal_lld_stm32_setup(IOPORT_A, VAL_GPIOACRH, VAL_GPIOACRL);
+ palWritePort(IOPORT_A, VAL_GPIOAODR);
- ioport_stm32_setup_lld(IOPORT_B, VAL_GPIOBCRH, VAL_GPIOBCRL);
- ioport_write_lld(IOPORT_B, VAL_GPIOBODR);
+ pal_lld_stm32_setup(IOPORT_B, VAL_GPIOBCRH, VAL_GPIOBCRL);
+ palWritePort(IOPORT_B, VAL_GPIOBODR);
- ioport_stm32_setup_lld(IOPORT_C, VAL_GPIOCCRH, VAL_GPIOCCRL);
- ioport_write_lld(IOPORT_C, VAL_GPIOCODR);
+ pal_lld_stm32_setup(IOPORT_C, VAL_GPIOCCRH, VAL_GPIOCCRL);
+ palWritePort(IOPORT_C, VAL_GPIOCODR);
- ioport_stm32_setup_lld(IOPORT_D, VAL_GPIODCRH, VAL_GPIODCRL);
- ioport_write_lld(IOPORT_D, VAL_GPIODODR);
+ pal_lld_stm32_setup(IOPORT_D, VAL_GPIODCRH, VAL_GPIODCRL);
+ palWritePort(IOPORT_D, VAL_GPIODODR);
}
/*