diff options
author | Jay Monkman <jtm@smoothsmoothie.com> | 2005-03-11 07:27:56 +0000 |
---|---|---|
committer | Jay Monkman <jtm@smoothsmoothie.com> | 2005-03-11 07:27:56 +0000 |
commit | e8c785c68aeb6565c1cd56fcefd8edb1163f4894 (patch) | |
tree | dd3954615862f25cf1a9e81e455f37f730af7074 /c/src/lib/libbsp/arm/gp32/include | |
parent | 2005-03-11 Philippe Simons <loki_666@fastmail.fm> (diff) | |
download | rtems-e8c785c68aeb6565c1cd56fcefd8edb1163f4894.tar.bz2 |
2005-03-11 Philippe Simons <loki_666@fastmail.fm>
* acinclude.m4: Added gp32 BSP.
* gp32/.cvsignore, gp32/Makefile.am, gp32/README, gp32/bsp_specs,
gp32/configure.ac, gp32/console/.cvsignore, gp32/console/conio.c,
gp32/console/console.c, gp32/console/defaultfont.c,
gp32/include/.cvsignore, gp32/include/bsp.h, gp32/include/conio.h,
gp32/include/tm27.h, gp32/start/.cvsignore, gp32/start/start.S,
gp32/startup/.cvsignore, gp32/startup/bspstart.c,
gp32/startup/exit.c, gp32/startup/linkcmds, gp32/startup/memmap.c: New files.
Diffstat (limited to 'c/src/lib/libbsp/arm/gp32/include')
-rw-r--r-- | c/src/lib/libbsp/arm/gp32/include/.cvsignore | 7 | ||||
-rw-r--r-- | c/src/lib/libbsp/arm/gp32/include/bsp.h | 55 | ||||
-rw-r--r-- | c/src/lib/libbsp/arm/gp32/include/conio.h | 79 | ||||
-rw-r--r-- | c/src/lib/libbsp/arm/gp32/include/tm27.h | 32 |
4 files changed, 173 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/arm/gp32/include/.cvsignore b/c/src/lib/libbsp/arm/gp32/include/.cvsignore new file mode 100644 index 0000000000..34cf1342d5 --- /dev/null +++ b/c/src/lib/libbsp/arm/gp32/include/.cvsignore @@ -0,0 +1,7 @@ +Makefile +Makefile.in +coverhd.h +bspopts.h +bspopts.h.in +stamp-h +stamp-h.in diff --git a/c/src/lib/libbsp/arm/gp32/include/bsp.h b/c/src/lib/libbsp/arm/gp32/include/bsp.h new file mode 100644 index 0000000000..3b5b57ce55 --- /dev/null +++ b/c/src/lib/libbsp/arm/gp32/include/bsp.h @@ -0,0 +1,55 @@ +/*-------------------------------------------------------------------------+ +| bsp.h - ARM BSP ++--------------------------------------------------------------------------+ +| This include file contains definitions related to the ARM BSP. ++--------------------------------------------------------------------------+ +| +| Copyright (c) Canon Research France SA.] +| Emmanuel Raguet, mailto:raguet@crf.canon.fr +| +| The license and distribution terms for this file may be +| found in found in the file LICENSE in this distribution or at +| http://www.rtems.com/license/LICENSE. +| +| $Id$ ++--------------------------------------------------------------------------*/ + + +#ifndef __BSP_H_ +#define __BSP_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include <bspopts.h> + +#include <rtems.h> +#include <rtems/iosupp.h> +#include <rtems/console.h> +#include <rtems/clockdrv.h> +#include <s3c2400.h> + +extern rtems_configuration_table BSP_Configuration; + +void LCD_BREAK(); + +/* What is the input clock freq in hertz? */ +#define BSP_OSC_FREQ 12000000 /* 12 MHz oscillator */ +#define M_MDIV 81 +#define M_PDIV 2 +#define M_SDIV 1 + +/* How many serial ports? */ +#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 1 + +/* How big should the interrupt stack be? */ +#define CONFIGURE_INTERRUPT_STACK_MEMORY (16 * 1024) + +#ifdef __cplusplus +} +#endif + +#endif /* __BSP_H_ */ +/* end of include file */ + diff --git a/c/src/lib/libbsp/arm/gp32/include/conio.h b/c/src/lib/libbsp/arm/gp32/include/conio.h new file mode 100644 index 0000000000..784e0d69a7 --- /dev/null +++ b/c/src/lib/libbsp/arm/gp32/include/conio.h @@ -0,0 +1,79 @@ +/* + * conio.h : ARM GP32 BSP + * + * This file contains the GP32 conio I/O package. + * + * + * Copyright (c) 2004 Markku Puro <markku.puro@kopteri.net> + * + * The license and distribution terms for this file may be + * found in found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + */ + +#ifndef _CONIO_H +#define _CONIO_H + +#ifdef __cplusplus +extern "C" { +#endif + +/*---------------------------------------------------------------------------* + * Defines * + *---------------------------------------------------------------------------*/ +#define ASCII_BEL 0x07 /* bell */ +#define ASCII_BS 0x08 /* backspace */ +#define ASCII_TAB 0x09 /* horizontal tab */ +#define ASCII_LF 0x0A /* line feed */ +#define ASCII_CR 0x0D /* carriage return */ +#define ASCII_XON 0x11 /* control-Q */ +#define ASCII_XOFF 0x13 /* control-S */ +#define ASCII_ESC 0x1B /* escape */ + +enum COLORS +{ + BLACK, + BLUE, + GREEN, + CYAN, + RED, + MAGENTA, + BROWN, + LIGHTGRAY, + DARKGRAY, + LIGHTBLUE, + LIGHTGREEN, + LIGHTCYAN, + LIGHTRED, + LIGHTMAGENTA, + YELLOW, + WHITE, + MAXCOLORS +}; + +#define DEF_TEXTCOLOR BLACK +#define DEF_TEXTBACKGROUND WHITE + +/*---------------------------------------------------------------------------* + * Prototypes * + *---------------------------------------------------------------------------*/ +void gpconio_clrscr(); +void gpconio_textattr(int _attr); +void gpconio_textbackground(int _color); +void gpconio_textcolor(int _color); +void gpconio_putch(char _c); +void gpconio_puts(const char *_str); +int gpconio_printf(const char *_format, ...); +void gpconio_gotoxy(int _x, int _y); + +char gpconio_getch(void); +char gpconio_getch_noblock(void); + + +#ifdef __cplusplus +} +#endif + +#endif // _CONIO_H diff --git a/c/src/lib/libbsp/arm/gp32/include/tm27.h b/c/src/lib/libbsp/arm/gp32/include/tm27.h new file mode 100644 index 0000000000..b417668d83 --- /dev/null +++ b/c/src/lib/libbsp/arm/gp32/include/tm27.h @@ -0,0 +1,32 @@ +/* + * tm27.h + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + */ + +#ifndef _RTEMS_TMTEST27 +#error "This is an RTEMS internal file you must not include directly." +#endif + +#ifndef __tm27_h +#define __tm27_h + +/* + * Define the interrupt mechanism for Time Test 27 + */ + +#define MUST_WAIT_FOR_INTERRUPT 0 + +#define Install_tm27_vector( handler ) /* empty */ + +#define Cause_tm27_intr() /* empty */ + +#define Clear_tm27_intr() /* empty */ + +#define Lower_tm27_intr() /* empty */ + +#endif |