source: rtems/c/src/lib/libbsp/bfin/eZKit533/include/bsp.h @ 8f45d1d

4.104.114.95
Last change on this file since 8f45d1d was 8f45d1d, checked in by Joel Sherrill <joel.sherrill@…>, on 08/15/08 at 20:19:58

2008-08-15 Joel Sherrill <joel.sherrill@…>

  • include/bsp.h: Fix CVS Id.
  • Property mode set to 100644
File size: 2.9 KB
RevLine 
[8d41236]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
[8f45d1d]20#include <libcpu/bf533.h>
21
[8d41236]22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#include <bspopts.h>
27
28#include <rtems.h>
29#include <rtems/console.h>
30#include <rtems/clockdrv.h>
[1e28c89c]31#include <rtems/score/bfin.h>
32#include <rtems/bfin/bf533.h>
[8d41236]33
34
35#define CLOCK_DRIVER_USE_FAST_IDLE
36
37/*
38 * PLL and clock setup values:
39 */
40
41/*
42 *  PLL configuration for ezkit533
43 *
44 *  XTL   =  27 MHz
45 *  CLKIN =  13 MHz
46 *  VCO   = 391 MHz
47 *  CCLK  = 391 MHz
48 *  SCLK  = 130 MHz
49 */
50
51#define PLL_CSEL    0x0000      /* CCLK = VCO      */
52#define PLL_SSEL    0x0003      /* SCLK = CCLK/3   */
53#define PLL_MSEL    0x3A00      /* VCO = 29xCLKIN  */
54#define PLL_DF      0x0001      /* CLKIN = XTL/2   */
55
56#define CCLK        391000000   /* CORE CLOCK     */
57#define SCLK        130000000   /* SYSTEM CLOCK   */
58
59/*
60 * UART setup values
61 */
62#define BAUDRATE    57600       /* Console Baudrate   */
63#define WORD_5BITS  0x00        /* 5 bits word        */
64#define WORD_6BITS  0x01        /* 6 bits word        */
65#define WORD_7BITS  0x02        /* 7 bits word        */
66#define WORD_8BITS  0x03        /* 8 bits word        */
67#define EVEN_PARITY 0x18        /* Enable EVEN parity */
68#define ODD_PARITY  0x08        /* Enable ODD parity  */
69#define TWO_STP_BIT 0x04        /* 2 stop bits        */
70
71/*
72 * Ezkit flash ports
73 */
[1964b69a]74#define FlashA_PortB_Dir  0x20270007L
75#define FlashA_PortB_Data 0x20270005L
[8d41236]76
[263d3fc]77/*
78 * Blackfin environment memory map
79 */
[1964b69a]80#define L1_DATA_SRAM_A 0xff800000L
[8d41236]81
82#define FIFOLENGTH 0x100
83
84/*
85 *  Simple spin delay in microsecond units for device drivers.
86 *  This is very dependent on the clock speed of the target.
87 */
88
89#define rtems_bsp_delay( microseconds ) \
90  { \
91  }
92
93/* Constants */
94
95#define RAM_START 0
96#define RAM_END   0x100000
97
98/* miscellaneous stuff assumed to exist */
99
100/*
101 *  Device Driver Table Entries
102 */
103
104/*
105 * NOTE: Use the standard Console driver entry
106 */
107
108/*
109 * NOTE: Use the standard Clock driver entry
110 */
111
112/* functions */
113
114/*
115 * Helper Function to use the EzKits LEDS.
116 * Can be used by the Application.
117 */
[1964b69a]118void setLED (uint8_t value);
[8d41236]119
120/*
121 * Helper Function to use the EzKits LEDS
122 */
[1964b69a]123uint8_t getLED (void);
[8d41236]124
[1964b69a]125rtems_isr_entry set_vector(                     /* returns old vector */
[8d41236]126  rtems_isr_entry     handler,                  /* isr routine        */
127  rtems_vector_number vector,                   /* vector number      */
128  int                 type                      /* RTEMS or RAW intr  */
129);
130
131#ifdef __cplusplus
132}
133#endif
134
135#endif
Note: See TracBrowser for help on using the repository browser.