source: rtems/c/src/lib/libbsp/m68k/mcf5225x/include/bsp.h @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/*
2 *  The license and distribution terms for this file may be
3 *  found in the file LICENSE in this distribution or at
4 *  http://www.rtems.org/license/LICENSE.
5 */
6 
7#ifndef _BSP_H
8#define _BSP_H
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#include <bspopts.h>
15#include <bsp/default-initial-extension.h>
16#include <rtems.h>
17#include <rtems/iosupp.h>
18#include <rtems/console.h>
19#include <rtems/clockdrv.h>
20#include <rtems/iosupp.h>
21#include <rtems/bspIo.h>
22
23#define BSP_SMALL_MEMORY 1
24
25/***************************************************************************/
26/**  Hardware data structure headers                                      **/
27#include <mcf5225x/mcf5225x.h>
28   
29/* Declare base address of peripherals area */
30#define __IPSBAR ((vuint8 *) 0x40000000)   
31
32/***************************************************************************/
33/**  Network driver configuration                                         **/
34
35/***************************************************************************/
36/**  User Definable configuration                                         **/
37
38/* define ports for console and DPU specific for BLUETOOTH and STATIONS */
39#define STATIONS_PORT                   0
40#define CONSOLE_PORT      1
41#define BLUETOOTH_PORT          2
42
43/* externals */
44
45/* constants */
46
47/* miscellaneous stuff assumed to exist */
48
49/*
50 *  Device Driver Table Entries
51 */
52 
53/*
54 * NOTE: Use the standard Console driver entry
55 */
56 
57/*
58 * NOTE: Use the standard Clock driver entry
59 */
60
61
62/* functions */
63
64uint32_t bsp_get_CPU_clock_speed(void);
65
66rtems_isr_entry set_vector(
67  rtems_isr_entry     handler,
68  rtems_vector_number vector,
69  int                 type
70);
71
72/*
73 * Interrupt assignments
74 *  Highest-priority listed first
75 */
76
77#define PIT3_IRQ_LEVEL      4
78#define PIT3_IRQ_PRIORITY   0
79
80#define UART0_IRQ_LEVEL     3
81#define UART0_IRQ_PRIORITY  7
82#define UART1_IRQ_LEVEL     3
83#define UART1_IRQ_PRIORITY  6
84#define UART2_IRQ_LEVEL     3
85#define UART2_IRQ_PRIORITY  5
86
87#ifdef __cplusplus
88}
89#endif
90
91#endif
Note: See TracBrowser for help on using the repository browser.