source: rtems/c/src/lib/libbsp/arm/gp32/include/conio.h @ 32cf23b1

4.104.114.84.95
Last change on this file since 32cf23b1 was 32cf23b1, checked in by Joel Sherrill <joel.sherrill@…>, on 06/02/05 at 13:41:35

2005-06-01 Philippe Simons <loki_666@…>

  • bsp_specs: Add rules for cpp support
  • include/bsp.h: Add gp32 support fct prototypes
  • console/conio.c: Moved video buffer to 0x0c7ed000
  • startup/bspstart.c: Add some init code, some cleaning...
  • Property mode set to 100644
File size: 2.1 KB
Line 
1/*
2 * conio.h :  ARM GP32 BSP
3 *
4 * This file contains the GP32 conio I/O package.
5 *
6 *
7 *  Copyright (c) 2004  Markku Puro <markku.puro@kopteri.net>
8 *
9 *  The license and distribution terms for this file may be
10 *  found in found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15
16#ifndef _CONIO_H
17#define _CONIO_H
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/*---------------------------------------------------------------------------*
24 * Defines                                                                   *
25 *---------------------------------------------------------------------------*/
26#define ASCII_BEL       0x07            /* bell            */
27#define ASCII_BS        0x08            /* backspace       */
28#define ASCII_TAB       0x09            /* horizontal tab  */
29#define ASCII_LF        0x0A            /* line feed       */
30#define ASCII_CR        0x0D            /* carriage return */
31#define ASCII_XON       0x11            /* control-Q       */
32#define ASCII_XOFF      0x13            /* control-S       */
33#define ASCII_ESC       0x1B            /* escape          */
34
35enum COLORS
36{
37    BLACK,
38    BLUE,
39    GREEN,
40    CYAN,
41    RED,
42    MAGENTA,
43    BROWN,
44    LIGHTGRAY,
45    DARKGRAY,
46    LIGHTBLUE,
47    LIGHTGREEN,
48    LIGHTCYAN,
49    LIGHTRED,
50    LIGHTMAGENTA,
51    YELLOW,
52    WHITE,
53    MAXCOLORS
54};
55
56#define  DEF_TEXTCOLOR       BLACK
57#define  DEF_TEXTBACKGROUND  WHITE
58
59/*---------------------------------------------------------------------------*
60 * Prototypes                                                                *
61 *---------------------------------------------------------------------------*/
62void    gpconio_clrscr();
63void    gpconio_textattr(int _attr);
64void    gpconio_textbackground(int _color);
65void    gpconio_textcolor(int _color);
66void    gpconio_putch(char _c);
67void    gpconio_puts(const char *_str);
68int     gpconio_printf(const char *_format, ...);
69void    gpconio_gotoxy(int _x, int _y);
70
71char    gpconio_getch(void);
72char    gpconio_getch_noblock(void);
73
74void    InitConIO();
75void    ShowConIO();
76
77
78#ifdef __cplusplus
79}
80#endif
81
82#endif  // _CONIO_H
Note: See TracBrowser for help on using the repository browser.