source: rtems/c/src/lib/libbsp/bfin/eZKit533/include/bsp.h @ 9cff822a

4.115
Last change on this file since 9cff822a was 9cff822a, checked in by Joel Sherrill <joel.sherrill@…>, on 07/16/15 at 15:40:05

Most bsp.h: Switch to LIBBSP_@CPU@_@BSP_FAMILY@_H for guard

This was done by the following script run from libbsp:

find * -name bsp.h | xargs -e grep -l "#ifndef.*_BSP_H" | while read b
do

echo $b
cpu=echo $b | cut -d'/' -f1 | tr '[:lower:]' '[:upper:]'
bsp=echo $b | cut -d'/' -f2 | tr '[:lower:]' '[:upper:]'
g="LIBBSP_${cpu}_${bsp}_BSP_H"
# echo $g
sed -e "s/ifndef _BSP_H/ifndef ${g}/" \

-e "s/define _BSP_H/define ${g}/" \

-i $b

done

  • Property mode set to 100644
File size: 3.3 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.org/license/LICENSE.
18 */
19
20
21#ifndef LIBBSP_BFIN_EZKIT533_BSP_H
22#define LIBBSP_BFIN_EZKIT533_BSP_H
23
24#ifndef ASM
25
26#include <libcpu/bf533.h>
27
28#include <bspopts.h>
29#include <bsp/default-initial-extension.h>
30
31#include <rtems.h>
32#include <rtems/console.h>
33#include <rtems/clockdrv.h>
34#include <rtems/score/bfin.h>
35#include <rtems/bfin/bf533.h>
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41/**
42 * @defgroup bfin_ezkit533 eZKit533 Support
43 * @ingroup bsp_bfin
44 * @brief eZKit533 Board Support Package
45 * @{
46 */
47
48/**
49 * @name PLL and clock setup values:
50 * @brief  PLL configuration for ezkit533
51 *
52 *  XTL   =  27 MHz
53 *  CLKIN =  13 MHz
54 *  VCO   = 391 MHz
55 *  CCLK  = 391 MHz
56 *  SCLK  = 130 MHz
57 *
58 * @{
59 *
60 */
61
62#define PLL_CSEL    0x0000      ///< @brief CCLK = VCO      */
63#define PLL_SSEL    0x0003      ///< @brief SCLK = CCLK/3   */
64#define PLL_MSEL    0x3A00      ///< @brief VCO = 29xCLKIN  */
65#define PLL_DF      0x0001      ///< @brief CLKIN = XTL/2   */
66
67#define CCLK        391000000   ///< @brief CORE CLOCK     */
68#define SCLK        130000000   ///< @brief SYSTEM CLOCK   */
69
70/** @} */
71
72/**
73 * @name UART setup values
74 * @{
75 */
76
77#define BAUDRATE    57600       ///< @brief Console Baudrate   */
78#define WORD_5BITS  0x00        ///< @brief 5 bits word        */
79#define WORD_6BITS  0x01        ///< @brief 6 bits word        */
80#define WORD_7BITS  0x02        ///< @brief 7 bits word        */
81#define WORD_8BITS  0x03        ///< @brief 8 bits word        */
82#define EVEN_PARITY 0x18        ///< @brief Enable EVEN parity */
83#define ODD_PARITY  0x08        ///< @brief Enable ODD parity  */
84#define TWO_STP_BIT 0x04        ///< @brief 2 stop bits        */
85
86/** @} */
87
88/**
89 * @name Ezkit flash ports
90 * @{
91 */
92
93#define FlashA_PortB_Dir  0x20270007L
94#define FlashA_PortB_Data 0x20270005L
95
96/** @} */
97
98/**
99 * @brief Blackfin environment memory map
100 */
101#define L1_DATA_SRAM_A 0xff800000L
102
103#define FIFOLENGTH 0x100
104
105/**
106 * @name Constants
107 * @{
108 */
109
110#define RAM_START 0
111#define RAM_END   0x100000
112
113/** @} */
114
115/**
116 * @name functions
117 * @{
118 */
119
120/**
121 * @brief Helper Function to use the EzKits LEDS.
122 * Can be used by the Application.
123 */
124void setLED (uint8_t value);
125
126/**
127 * @brief Helper Function to use the EzKits LEDS
128 */
129uint8_t getLED (void);
130
131/**
132 * @brief Install an interrupt handler
133 *
134 * This method installs an interrupt handle.
135 *
136 * @param[in] handler is the isr routine
137 * @param[in] vector is the vector number
138 * @param[in] type indicates whether RTEMS or RAW intr
139 *
140 * @return returns old vector
141 */
142rtems_isr_entry set_vector(
143  rtems_isr_entry     handler,
144  rtems_vector_number vector,
145  int                 type
146);
147
148/*
149 *  Internal BSP methods that are used across file boundaries
150 */
151void Init_RTC(void);
152
153/*
154 * Prototype for methods in .S files that are referenced from C.
155 */
156void bfin_null_isr(void);
157
158/** @} */
159
160/** @} */
161
162#ifdef __cplusplus
163}
164#endif
165
166#endif /* !ASM */
167
168#endif
Note: See TracBrowser for help on using the repository browser.