source: rtems/c/src/lib/libbsp/arm/gp32/include/bsp.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| bsp.h - ARM BSP
3+--------------------------------------------------------------------------+
4| This include file contains definitions related to the ARM BSP.
5+--------------------------------------------------------------------------+
6|
7| Copyright (c) Canon Research France SA.]
8| Emmanuel Raguet, mailto:raguet@crf.canon.fr
9|
10|  The license and distribution terms for this file may be
11|  found in found in the file LICENSE in this distribution or at
12|  http://www.rtems.com/license/LICENSE.
13|
14|  $Id$
15+--------------------------------------------------------------------------*/
16
17
18#ifndef _BSP_H
19#define _BSP_H
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#include <bspopts.h>
26
27#include <rtems.h>
28#include <rtems/iosupp.h>
29#include <rtems/console.h>
30#include <rtems/clockdrv.h>
31#include <s3c2400.h>
32
33extern rtems_configuration_table BSP_Configuration;
34
35void gp32_setFramebuffer(void *add);
36short gp32_initFramebufferN(void *add, uint32_t bitmode, uint32_t refreshrate);
37short gp32_initFramebufferBP(void *add, uint32_t bitmode, uint32_t refreshrate);
38#define gp32_initButtons() {rPBCON=0x0;}
39#define gp32_getButtons() ( (((~rPEDAT >> 6) & 0x3 )<<8) | (((~rPBDAT >> 8) & 0xFF)<<0) )
40
41/*functions to get the differents s3c2400 clks*/
42uint32_t get_FCLK(void);
43uint32_t get_HCLK(void);
44uint32_t get_PCLK(void);
45uint32_t get_UCLK(void);
46
47
48void gp32_setPalette( unsigned char pos, uint16_t color);
49
50/* What is the input clock freq in hertz? */
51#define BSP_OSC_FREQ  12000000    /* 12 MHz oscillator */
52#define M_MDIV 81       /* FCLK=133Mhz */
53#define M_PDIV 2
54#define M_SDIV 1
55#define M_CLKDIVN 2     /* HCLK=FCLK/2, PCLK=FCLK/2 */
56
57#define REFEN   0x1     /* enable refresh */
58#define TREFMD  0x0     /* CBR(CAS before RAS)/auto refresh */
59#define Trp     0x0     /* 2 clk */
60#define Trc     0x3     /* 7 clk */
61#define Tchr    0x2     /* 3 clk */
62
63
64/* How many serial ports? */
65#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 1
66
67/* How big should the interrupt stack be? */
68#define CONFIGURE_INTERRUPT_STACK_MEMORY  (16 * 1024)
69
70#ifdef __cplusplus
71}
72#endif
73
74#endif /* _BSP_H */
75/* end of include file */
76
Note: See TracBrowser for help on using the repository browser.