source: rtems/c/src/lib/libbsp/bfin/eZKit533/include/bsp.h @ 997f223

4.115
Last change on this file since 997f223 was 997f223, checked in by Daniel Ramirez <javamonn@…>, on 12/24/13 at 18:06:55

bfin_eZKit533: added new doxygen

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