RTEMS: bsps/bfin/TLL6527M/include/bsp.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
bsp.h
Go to the documentation of this file.
1
11/*
12 * COPYRIGHT (c) 2010 by ECE Northeastern University.
13 *
14 * The license and distribution terms for this file may be
15 * found in the file LICENSE in this distribution or at
16 * http://www.rtems.org/license
17 */
18
19#ifndef LIBBSP_BFIN_TLL6527M_BSP_H
20#define LIBBSP_BFIN_TLL6527M_BSP_H
21
32#ifndef ASM
33
34#include <bspopts.h>
35#include <bsp/default-initial-extension.h>
36
37#include <rtems.h>
38#include <rtems/score/bfin.h>
39#include <rtems/bfin/bf52x.h>
40#include <bf52x.h>
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
46/*
47 * PLL and clock setup values:
48 */
49
50/*
51 * PLL configuration for TLL6527M
52 *
53 * XTL = 27 MHz
54 * CLKIN = 13 MHz
55 * VCO = 391 MHz
56 * CCLK = 391 MHz
57 * SCLK = 130 MHz
58 */
59
65#define PLL_CSEL 0x0000
66#define PLL_SSEL 0x0003
67#define PLL_MSEL 0x3A00
68#define PLL_DF 0x0001
69
77#define CLKIN (25000000)
78#define CCLK (600000000)
79#define SCLK (100000000)
80
88#define BAUDRATE 57600
89#define WORD_5BITS 0x00
90#define WORD_6BITS 0x01
91#define WORD_7BITS 0x02
92#define WORD_8BITS 0x03
93#define EVEN_PARITY 0x18
94#define ODD_PARITY 0x08
95#define TWO_STP_BIT 0x04
96
110rtems_isr_entry set_vector(
111 rtems_isr_entry handler,
112 rtems_vector_number vector,
113 int type
114);
115
116/*
117 * Internal BSP methods that are used across file boundaries
118 */
119void Init_RTC(void);
120
121/*
122 * Prototype for methods in .S files that are referenced from C.
123 */
124void bfin_null_isr(void);
125
126#ifdef __cplusplus
127}
128#endif
129
130#endif /* !ASM */
131
134#endif
bf52x.h
Basic MMR for the Blackfin 52x CPU.
default-initial-extension.h
DEFAULT_INITIAL_EXTENSION Support.
rtems_vector_number
ISR_Vector_number rtems_vector_number
Control block type used to manage the vectors.
Definition: intr.h:47
rtems.h
bfin.h
Blackfin Set up Basic CPU Dependency Settings Based on Compiler Settings.