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

4.104.115
Last change on this file since 4909a30 was 4909a30, checked in by Joel Sherrill <joel.sherrill@…>, on 09/10/08 at 21:35:37

2008-09-10 Joel Sherrill <joel.sherrill@…>

  • include/bsp.h: Review of all bsp_cleanup() implementations. In this phase, all prototypes were removed from bsp.h and empty implementations were removed and made to use the shared stub.
  • Property mode set to 100644
File size: 1.7 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/***************************************************************************/
21/**  Hardware data structure headers                                      **/
22#include <mcf5223x/mcf5223x.h>
23   
24/* Declare base address of peripherals area */
25#define __IPSBAR ((vuint8 *) 0x40000000)   
26
27/***************************************************************************/
28/**  Network driver configuration                                         **/
29
30/***************************************************************************/
31/**  User Definable configuration                                         **/
32
33/* define which port the console should use - all other ports are then defined as general purpose */
34#define CONSOLE_PORT        0
35
36/* externals */
37
38/* constants */
39
40/* miscellaneous stuff assumed to exist */
41
42/*
43 *  Device Driver Table Entries
44 */
45 
46/*
47 * NOTE: Use the standard Console driver entry
48 */
49 
50/*
51 * NOTE: Use the standard Clock driver entry
52 */
53
54
55/* functions */
56
57uint32_t bsp_get_CPU_clock_speed(void);
58
59m68k_isr_entry set_vector(
60  rtems_isr_entry     handler,
61  rtems_vector_number vector,
62  int                 type
63);
64
65/*
66 * Interrupt assignments
67 *  Highest-priority listed first
68 */
69
70#define PIT3_IRQ_LEVEL      4
71#define PIT3_IRQ_PRIORITY   0
72
73#define UART0_IRQ_LEVEL     3
74#define UART0_IRQ_PRIORITY  7
75#define UART1_IRQ_LEVEL     3
76#define UART1_IRQ_PRIORITY  6
77#define UART2_IRQ_LEVEL     3
78#define UART2_IRQ_PRIORITY  5
79
80#ifdef __cplusplus
81}
82#endif
83
84#endif
Note: See TracBrowser for help on using the repository browser.