diff options
author | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2008-09-30 10:01:38 +0000 |
---|---|---|
committer | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2008-09-30 10:01:38 +0000 |
commit | 29cc14771b4341838332388cea6edc756d05a93e (patch) | |
tree | 24755d2080420d90b3324a308e7a17bb3ceeef5f /c/src/lib/libbsp/arm/lpc24xx/startup/bspstart.c | |
parent | Added definitions for asynchronous read and write IO commands. (diff) | |
download | rtems-29cc14771b4341838332388cea6edc756d05a93e.tar.bz2 |
added SSP support files, fixed some typos
Diffstat (limited to 'c/src/lib/libbsp/arm/lpc24xx/startup/bspstart.c')
-rw-r--r-- | c/src/lib/libbsp/arm/lpc24xx/startup/bspstart.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/arm/lpc24xx/startup/bspstart.c b/c/src/lib/libbsp/arm/lpc24xx/startup/bspstart.c index 5ec46291f3..893ea589e5 100644 --- a/c/src/lib/libbsp/arm/lpc24xx/startup/bspstart.c +++ b/c/src/lib/libbsp/arm/lpc24xx/startup/bspstart.c @@ -22,6 +22,7 @@ #include <bsp.h> #include <bsp/bootcard.h> +#include <bsp/dma.h> #include <bsp/irq.h> #include <bsp/linker-symbols.h> #include <bsp/lpc24xx.h> @@ -61,23 +62,26 @@ void bsp_start( void) /* Spin forever */ } } + + /* DMA */ + lpc24xx_dma_initialize(); } #define ULSR_THRE 0x00000020U -static void my_BSP_output_char( char c) +static void lpc24xx_BSP_output_char( char c) { - while (REG_FLAG_IS_CLEARED( U0LSR, ULSR_THRE)) { + while (IS_FLAG_CLEARED( U0LSR, ULSR_THRE)) { /* Wait */ } U0THR = c; if (c == '\n') { - while (REG_FLAG_IS_CLEARED( U0LSR, ULSR_THRE)) { + while (IS_FLAG_CLEARED( U0LSR, ULSR_THRE)) { /* Wait */ } U0THR = '\r'; } } -BSP_output_char_function_type BSP_output_char = my_BSP_output_char; +BSP_output_char_function_type BSP_output_char = lpc24xx_BSP_output_char; |