source: rtems/c/src/lib/libbsp/bfin/TLL6527M/include/bsp.h @ 0a47233

5
Last change on this file since 0a47233 was 0a47233, checked in by Joel Sherrill <joel@…>, on Mar 29, 2016 at 6:10:50 PM

bfin/TLL6527M: Remove include of <rtems/console.h> from <bsp.h> and fix warnings

  • Property mode set to 100644
File size: 2.7 KB
Line 
1/**
2 * @file bsp.h
3 * @ingroup bfin_tll6527m
4 * @brief Global BSP definitions.
5 *
6 * This include file contains all board IO definitions for TLL6527M.
7 */
8
9/*
10 * COPYRIGHT (c) 2010 by ECE Northeastern University.
11 *
12 * The license and distribution terms for this file may be
13 * found in the file LICENSE in this distribution or at
14 * http://www.rtems.org/license
15 */
16
17#ifndef LIBBSP_BFIN_TLL6527M_BSP_H
18#define LIBBSP_BFIN_TLL6527M_BSP_H
19
20#ifndef ASM
21
22#include <bspopts.h>
23#include <bsp/default-initial-extension.h>
24
25#include <rtems.h>
26#include <rtems/score/bfin.h>
27#include <rtems/bfin/bf52x.h>
28#include <bf52x.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34/**
35 * @defgroup bfin_tll6527m TLL6527M Support
36 * @ingroup bsp_bfin
37 * @brief TLL6527M Support Package
38 * @{
39 */
40
41/*
42 * PLL and clock setup values:
43 */
44
45/*
46 *  PLL configuration for TLL6527M
47 *
48 *  XTL   =  27 MHz
49 *  CLKIN =  13 MHz
50 *  VCO   = 391 MHz
51 *  CCLK  = 391 MHz
52 *  SCLK  = 130 MHz
53 */
54
55/**
56 * @name PLL Configuration
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/** @} */
66
67/**
68 * @name Clock setup values
69 * @{
70 */
71
72#define CLKIN               (25000000)  ///< @brief Input clock to the PLL */
73#define CCLK        (600000000)   ///< @brief CORE CLOCK     */
74#define SCLK        (100000000)   ///< @brief SYSTEM CLOCK   */
75
76/** @} */
77
78/**
79 * @name UART setup values
80 * @{
81 */
82
83#define BAUDRATE    57600       ///< @brief Console Baudrate   */
84#define WORD_5BITS  0x00        ///< @brief 5 bits word        */
85#define WORD_6BITS  0x01        ///< @brief 6 bits word        */
86#define WORD_7BITS  0x02        ///< @brief 7 bits word        */
87#define WORD_8BITS  0x03        ///< @brief 8 bits word        */
88#define EVEN_PARITY 0x18        ///< @brief Enable EVEN parity */
89#define ODD_PARITY  0x08        ///< @brief Enable ODD parity  */
90#define TWO_STP_BIT 0x04        ///< @brief 2 stop bits        */
91
92/** @} */
93
94/**
95 * @brief Install an interrupt handler
96 *
97 * This method installs an interrupt handle.
98 *
99 * @param[in] handler is the isr routine
100 * @param[in] vector is the vector number
101 * @param[in] type indicates whether RTEMS or RAW intr
102 *
103 * @return returns old vector
104 */
105rtems_isr_entry set_vector(
106  rtems_isr_entry     handler,
107  rtems_vector_number vector,
108  int                 type
109);
110
111/*
112 *  Internal BSP methods that are used across file boundaries
113 */
114void Init_RTC(void);
115
116/*
117 * Prototype for methods in .S files that are referenced from C.
118 */
119void bfin_null_isr(void);
120
121/** @} */
122
123#ifdef __cplusplus
124}
125#endif
126
127#endif /* !ASM */
128
129#endif
Note: See TracBrowser for help on using the repository browser.