source: rtems/c/src/lib/libbsp/bfin/bf537Stamp/include/bsp.h @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 2.5 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
14
15#ifndef _BSP_H
16#define _BSP_H
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#include <bspopts.h>
23
24#include <rtems.h>
25#include <rtems/console.h>
26#include <rtems/clockdrv.h>
27
28#include <libcpu/bf537.h>
29#include <libcpu/memoryRegs.h>
30
31/* configure data cache to use 16K of each SRAM bank when enabled */
32#define BSP_DATA_CACHE_CONFIG  (3 << DMEM_CONTROL_DMC_SHIFT)
33
34
35/*
36 * PLL and clock setup values:
37 */
38
39/*
40 *  PLL configuration for bf533Stamp
41 *
42 *  XTL   =  27 MHz
43 *  CLKIN =  13 MHz
44 *  VCO   = 391 MHz
45 *  CCLK  = 391 MHz
46 *  SCLK  = 130 MHz
47 */
48
49#define PLL_CSEL    0x0000      /* CCLK = VCO      */
50#define PLL_SSEL    0x0003      /* SCLK = CCLK/3   */
51#define PLL_MSEL    0x3A00      /* VCO = 29xCLKIN  */
52#define PLL_DF      0x0001      /* CLKIN = XTL/2   */
53
54#define CCLK        500000000   /* CORE CLOCK     */
55#define SCLK        100000000   /* SYSTEM CLOCK   */
56
57#define CONSOLE_FORCE_BAUD   57600
58
59/*
60 * Blackfin environment memory map
61 */
62#define L1_DATA_SRAM_A 0xff800000L
63
64#define FIFOLENGTH 0x100
65
66/*
67 *  Simple spin delay in microsecond units for device drivers.
68 *  This is very dependent on the clock speed of the target.
69 */
70
71#define rtems_bsp_delay( microseconds ) \
72  { \
73  }
74
75/* Constants */
76
77#define RAM_START 0
78#define RAM_END   0x4000000
79
80/* functions */
81
82/*
83 * Helper Function to use the EzKits LEDS.
84 * Can be used by the Application.
85 */
86void setLED(uint8_t value);
87
88/*
89 * Helper Function to use the EzKits LEDS
90 */
91uint8_t getLED(void);
92
93rtems_isr_entry set_vector(                     /* returns old vector */
94  rtems_isr_entry     handler,                  /* isr routine        */
95  rtems_vector_number vector,                   /* vector number      */
96  int                 type                      /* RTEMS or RAW intr  */
97);
98
99/*
100 * Network driver configuration
101 */
102struct rtems_bsdnet_ifconfig;
103extern int bf537Stamp_network_driver_attach(struct rtems_bsdnet_ifconfig *, int);
104
105#define RTEMS_BSP_NETWORK_DRIVER_NAME   "eth1"
106#define RTEMS_BSP_NETWORK_DRIVER_ATTACH bf537Stamp_network_driver_attach
107
108#ifdef __cplusplus
109}
110#endif
111
112#endif
Note: See TracBrowser for help on using the repository browser.