source: rtems/c/src/lib/libbsp/m68k/mcf52235/include/bsp.h @ d4b4664b

4.104.115
Last change on this file since d4b4664b was d4b4664b, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/29/09 at 14:59:41

Whitespace removal.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/*
2 *  mcf52235 BSP header file
3 */
4
5#ifndef _BSP_H
6#define _BSP_H
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#include <bspopts.h>
13#include <rtems.h>
14#include <rtems/iosupp.h>
15#include <rtems/console.h>
16#include <rtems/clockdrv.h>
17#include <rtems/iosupp.h>
18#include <rtems/bspIo.h>
19
20#define BSP_SMALL_MEMORY 1
21
22/***************************************************************************/
23/**  Hardware data structure headers                                      **/
24#include <mcf5223x/mcf5223x.h>
25
26/* Declare base address of peripherals area */
27#define __IPSBAR ((vuint8 *) 0x40000000)
28
29/***************************************************************************/
30/**  Network driver configuration                                         **/
31
32/***************************************************************************/
33/**  User Definable configuration                                         **/
34
35/* define which port the console should use - all other ports are then defined as general purpose */
36#define CONSOLE_PORT        0
37
38/* externals */
39
40/* constants */
41
42/* functions */
43
44uint32_t bsp_get_CPU_clock_speed(void);
45
46m68k_isr_entry set_vector(
47  rtems_isr_entry     handler,
48  rtems_vector_number vector,
49  int                 type
50);
51
52/*
53 * Interrupt assignments
54 *  Highest-priority listed first
55 */
56
57#define PIT3_IRQ_LEVEL      4
58#define PIT3_IRQ_PRIORITY   0
59
60#define UART0_IRQ_LEVEL     3
61#define UART0_IRQ_PRIORITY  7
62#define UART1_IRQ_LEVEL     3
63#define UART1_IRQ_PRIORITY  6
64#define UART2_IRQ_LEVEL     3
65#define UART2_IRQ_PRIORITY  5
66
67#ifdef __cplusplus
68}
69#endif
70
71#endif
Note: See TracBrowser for help on using the repository browser.