RTEMS 5.2
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
bsp.h
Go to the documentation of this file.
1
11/* bsp.h
12 *
13 * This include file contains all board IO definitions for eZKit533.
14 *
15 * Copyright (c) 2006 by Atos Automacao Industrial Ltda.
16 * written by Alain Schaefer <alain.schaefer@easc.ch>
17 * and Antonio Giovanini <antonio@atos.com.br>
18 *
19 * The license and distribution terms for this file may be
20 * found in the file LICENSE in this distribution or at
21 * http://www.rtems.org/license/LICENSE.
22 */
23
24
25#ifndef LIBBSP_BFIN_EZKIT533_BSP_H
26#define LIBBSP_BFIN_EZKIT533_BSP_H
27
28#ifndef ASM
29
30#include <libcpu/bf533.h>
31
32#include <bspopts.h>
34
35#include <rtems.h>
36#include <rtems/score/bfin.h>
37#include <rtems/bfin/bf533.h>
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
67#define PLL_CSEL 0x0000
68#define PLL_SSEL 0x0003
69#define PLL_MSEL 0x3A00
70#define PLL_DF 0x0001
71
72#define CCLK 391000000
73#define SCLK 130000000
74
82#define BAUDRATE 57600
83#define WORD_5BITS 0x00
84#define WORD_6BITS 0x01
85#define WORD_7BITS 0x02
86#define WORD_8BITS 0x03
87#define EVEN_PARITY 0x18
88#define ODD_PARITY 0x08
89#define TWO_STP_BIT 0x04
90
98#define FlashA_PortB_Dir 0x20270007L
99#define FlashA_PortB_Data 0x20270005L
100
106#define L1_DATA_SRAM_A 0xff800000L
107
108#define FIFOLENGTH 0x100
109
115#define RAM_START 0
116#define RAM_END 0x100000
117
129void setLED (uint8_t value);
130
134uint8_t getLED (void);
135
147rtems_isr_entry set_vector(
148 rtems_isr_entry handler,
149 rtems_vector_number vector,
150 int type
151);
152
153/*
154 * Internal BSP methods that are used across file boundaries
155 */
156void Init_RTC(void);
157
158/*
159 * Prototype for methods in .S files that are referenced from C.
160 */
161void bfin_null_isr(void);
162
167#ifdef __cplusplus
168}
169#endif
170
171#endif /* !ASM */
172
175#endif
Basic MMR for the Blackfin 531/532/533 CPU.
DEFAULT_INITIAL_EXTENSION Support.
ISR_Vector_number rtems_vector_number
Control block type used to manage the vectors.
Definition: intr.h:47
void setLED(uint8_t value)
Helper Function to use the EzKits LEDS. Can be used by the Application.
Definition: bspstart.c:145
rtems_isr_entry set_vector(rtems_isr_entry handler, rtems_vector_number vector, int type)
Install an interrupt handler.
Definition: setvec.c:28
uint8_t getLED(void)
Helper Function to use the EzKits LEDS.
Definition: bspstart.c:153
Blackfin Set up Basic CPU Dependency Settings Based on Compiler Settings.