source: rtems/c/src/lib/libbsp/bfin/bf537Stamp/include/bsp.h @ 61f8fb0e

4.104.114.9
Last change on this file since 61f8fb0e was 61f8fb0e, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 15, 2008 at 8:21:00 PM

2008-08-15 Allan Hessenflow <allanh@…>

  • ChangeLog?, Makefile.am, README, bsp_specs, configure.ac, preinstall.am, console/console.c, include/bsp.h, network/networkconfig.c, start/start.S, startup/bspstart.c, startup/linkcmds: New files.
  • Property mode set to 100644
File size: 2.8 KB
Line 
1/*  bsp.h
2 * 
3 *  This include file contains all board IO definitions for bf537Stamp.
4 *
5 *  Copyright (c) 2006 by Atos Automacao Industrial Ltda.
6 *             written by Alain Schaefer <alain.schaefer@easc.ch>
7 *                    and Antonio Giovanini <antonio@atos.com.br>
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15 
16
17#ifndef _BSP_H
18#define _BSP_H
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#include <bspopts.h>
25
26#include <rtems.h>
27#include <rtems/console.h>
28#include <rtems/clockdrv.h>
29
30#include <libcpu/bf537.h>
31#include <libcpu/memoryRegs.h>
32
33
34/* #define CLOCK_DRIVER_USE_FAST_IDLE */
35
36
37/* configure data cache to use 16K of each SRAM bank when enabled */
38#define BSP_DATA_CACHE_CONFIG  (3 << DMEM_CONTROL_DMC_SHIFT)
39
40
41/*
42 * PLL and clock setup values:
43 */
44
45/*
46 *  PLL configuration for bf533Stamp
47 *
48 *  XTL   =  27 MHz
49 *  CLKIN =  13 MHz
50 *  VCO   = 391 MHz
51 *  CCLK  = 391 MHz
52 *  SCLK  = 130 MHz
53 */
54
55#define PLL_CSEL    0x0000      /* CCLK = VCO      */
56#define PLL_SSEL    0x0003      /* SCLK = CCLK/3   */
57#define PLL_MSEL    0x3A00      /* VCO = 29xCLKIN  */
58#define PLL_DF      0x0001      /* CLKIN = XTL/2   */
59
60#define CCLK        500000000   /* CORE CLOCK     */
61#define SCLK        100000000   /* SYSTEM CLOCK   */
62
63#define CONSOLE_FORCE_BAUD   57600
64
65/*
66 * Blackfin environment memory map
67 */
68#define L1_DATA_SRAM_A 0xff800000L
69
70#define FIFOLENGTH 0x100
71
72/*
73 *  confdefs.h overrides for this BSP:
74 *   - number of termios serial ports (defaults to 1)
75 */
76
77#define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
78
79/*
80 *  Simple spin delay in microsecond units for device drivers.
81 *  This is very dependent on the clock speed of the target.
82 */
83
84#define rtems_bsp_delay( microseconds ) \
85  { \
86  }
87
88/* Constants */
89
90#define RAM_START 0
91#define RAM_END   0x4000000
92
93/* miscellaneous stuff assumed to exist */
94
95/*
96 *  Device Driver Table Entries
97 */
98
99/*
100 * NOTE: Use the standard Console driver entry
101 */
102
103/*
104 * NOTE: Use the standard Clock driver entry
105 */
106
107/* functions */
108
109/*
110 * Helper Function to use the EzKits LEDS.
111 * Can be used by the Application.
112 */
113void setLED(uint8_t value);
114
115/*
116 * Helper Function to use the EzKits LEDS
117 */
118uint8_t getLED(void);
119
120rtems_isr_entry set_vector(                     /* returns old vector */
121  rtems_isr_entry     handler,                  /* isr routine        */
122  rtems_vector_number vector,                   /* vector number      */
123  int                 type                      /* RTEMS or RAW intr  */
124);
125
126/*
127 * Network driver configuration
128 */
129struct rtems_bsdnet_ifconfig;
130extern int bf537Stamp_network_driver_attach(struct rtems_bsdnet_ifconfig *, int);
131
132#define RTEMS_BSP_NETWORK_DRIVER_NAME   "eth1"
133#define RTEMS_BSP_NETWORK_DRIVER_ATTACH bf537Stamp_network_driver_attach
134
135#ifdef __cplusplus
136}
137#endif
138
139#endif
Note: See TracBrowser for help on using the repository browser.