source: rtems/c/src/lib/libbsp/bfin/eZKit533/include/bsp.h @ 1e28c89c

4.104.114.84.95
Last change on this file since 1e28c89c was 1e28c89c, checked in by Joel Sherrill <joel.sherrill@…>, on 10/24/06 at 20:21:24

2006-10-24 Alain Schaefer <alani@…>

  • configure.ac, eZKit533/configure.ac, eZKit533/include/bsp.h, shared/start/start.S: Make use of separated bfin helper .h files.
  • Property mode set to 100644
File size: 3.3 KB
Line 
1/*  bsp.h
2 * 
3 *  This include file contains all board IO definitions for eZKit533.
4 *
5 *  Copyright (c) 2006 by Atos Automacao Industrial Ltda.
6 *             written by Alain Schaefer <alain.schaefer@easc.ch>
7 *                    and Antonio Giovanini <antonio@atos.com.br>
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15 
16
17#ifndef _BSP_H
18#define _BSP_H
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#include <bspopts.h>
25
26#include <rtems.h>
27#include <rtems/console.h>
28#include <rtems/clockdrv.h>
29#include <rtems/score/bfin.h>
30#include <rtems/bfin/bf533.h>
31
32
33#define CLOCK_DRIVER_USE_FAST_IDLE
34
35/*
36 * PLL and clock setup values:
37 */
38
39/*
40 *  PLL configuration for ezkit533
41 *
42 *  XTL   =  27 MHz
43 *  CLKIN =  13 MHz
44 *  VCO   = 391 MHz
45 *  CCLK  = 391 MHz
46 *  SCLK  = 130 MHz
47 */
48
49#define PLL_CSEL    0x0000      /* CCLK = VCO      */
50#define PLL_SSEL    0x0003      /* SCLK = CCLK/3   */
51#define PLL_MSEL    0x3A00      /* VCO = 29xCLKIN  */
52#define PLL_DF      0x0001      /* CLKIN = XTL/2   */
53
54#define CCLK        391000000   /* CORE CLOCK     */
55#define SCLK        130000000   /* SYSTEM CLOCK   */
56
57/*
58 * UART setup values
59 */
60#define BAUDRATE    57600       /* Console Baudrate   */
61#define WORD_5BITS  0x00        /* 5 bits word        */
62#define WORD_6BITS  0x01        /* 6 bits word        */
63#define WORD_7BITS  0x02        /* 7 bits word        */
64#define WORD_8BITS  0x03        /* 8 bits word        */
65#define EVEN_PARITY 0x18        /* Enable EVEN parity */
66#define ODD_PARITY  0x08        /* Enable ODD parity  */
67#define TWO_STP_BIT 0x04        /* 2 stop bits        */
68
69/*
70 * Ezkit flash ports
71 */
72#define FlashA_PortB_Dir  0x20270007
73#define FlashA_PortB_Data 0x20270005
74
75// Blackfin environment memory map
76//
77#define L1_DATA_SRAM_A 0xff800000
78
79#define FIFOLENGTH 0x100
80
81#ifndef LO
82#define LO(con32) ((con32) & 0xFFFF)
83#endif
84#ifndef HI
85#define HI(con32) (((con32) >> 16) & 0xFFFF)
86#endif
87
88
89/*
90 *  confdefs.h overrides for this BSP:
91 *   - number of termios serial ports (defaults to 1)
92 *   - Interrupt stack space is not minimum if defined.
93 */
94
95/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
96#define CONFIGURE_INTERRUPT_STACK_MEMORY  (4 * 1024)
97
98/*
99 *  Simple spin delay in microsecond units for device drivers.
100 *  This is very dependent on the clock speed of the target.
101 */
102
103#define rtems_bsp_delay( microseconds ) \
104  { \
105  }
106
107/* Constants */
108
109#define RAM_START 0
110#define RAM_END   0x100000
111
112/* miscellaneous stuff assumed to exist */
113
114extern rtems_configuration_table BSP_Configuration;
115
116/*
117 *  Device Driver Table Entries
118 */
119
120/*
121 * NOTE: Use the standard Console driver entry
122 */
123
124/*
125 * NOTE: Use the standard Clock driver entry
126 */
127
128/* functions */
129
130/*
131 * Helper Function to use the EzKits LEDS.
132 * Can be used by the Application.
133 */
134void setLED (char value);
135
136/*
137 * Helper Function to use the EzKits LEDS
138 */
139char getLED (void);
140
141void bsp_cleanup( void );
142
143rtems_isr_entry set_vector(                    /* returns old vector */
144  rtems_isr_entry     handler,                  /* isr routine        */
145  rtems_vector_number vector,                   /* vector number      */
146  int                 type                      /* RTEMS or RAW intr  */
147);
148
149#ifdef __cplusplus
150}
151#endif
152
153#endif
Note: See TracBrowser for help on using the repository browser.