aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARMCM3-STM32F103-GCC
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-10-31 15:22:27 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-10-31 15:22:27 +0000
commita95d728fc36f0d96c08a78b6af543a440217d3a4 (patch)
tree81b235e8989ec1ea612bafc803da751834cd15a8 /demos/ARMCM3-STM32F103-GCC
parent43f9fd4180030081daae9122bd57a521ec9c58e1 (diff)
downloadChibiOS-a95d728fc36f0d96c08a78b6af543a440217d3a4.tar.gz
ChibiOS-a95d728fc36f0d96c08a78b6af543a440217d3a4.tar.bz2
ChibiOS-a95d728fc36f0d96c08a78b6af543a440217d3a4.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1259 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARMCM3-STM32F103-GCC')
-rw-r--r--demos/ARMCM3-STM32F103-GCC/Makefile1
-rw-r--r--demos/ARMCM3-STM32F103-GCC/board.c6
2 files changed, 6 insertions, 1 deletions
diff --git a/demos/ARMCM3-STM32F103-GCC/Makefile b/demos/ARMCM3-STM32F103-GCC/Makefile
index 8f3e902ed..2e65c9c16 100644
--- a/demos/ARMCM3-STM32F103-GCC/Makefile
+++ b/demos/ARMCM3-STM32F103-GCC/Makefile
@@ -72,6 +72,7 @@ CSRC = ${PORTSRC} \
${CHIBIOS}/os/io/platforms/STM32/pal_lld.c \
${CHIBIOS}/os/io/platforms/STM32/serial_lld.c \
${CHIBIOS}/os/io/platforms/STM32/spi_lld.c \
+ ${CHIBIOS}/os/io/platforms/STM32/stm32_dma.c \
${CHIBIOS}/os/various/evtimer.c \
board.c main.c
diff --git a/demos/ARMCM3-STM32F103-GCC/board.c b/demos/ARMCM3-STM32F103-GCC/board.c
index 6c8bf8c0a..050c2be62 100644
--- a/demos/ARMCM3-STM32F103-GCC/board.c
+++ b/demos/ARMCM3-STM32F103-GCC/board.c
@@ -19,10 +19,12 @@
#include <ch.h>
#include <pal.h>
+#include <serial.h>
+#include <spi.h>
+#include <stm32_dma.h>
#include <nvic.h>
#include "board.h"
-#include "serial.h"
#define AIRCR_VECTKEY 0x05FA0000
@@ -112,7 +114,9 @@ void hwinit1(void) {
/*
* Other subsystems initialization.
*/
+ dmaInit();
sdInit();
+ spiInit();
/*
* ChibiOS/RT initialization.