RTEMS  5.1
bsp.h
Go to the documentation of this file.
1 
9 /*
10  * The license and distribution terms for this file may be
11  * found in the file LICENSE in this distribution or at
12  * http://www.rtems.org/license/LICENSE.
13  */
14 
15 #ifndef LIBBSP_M68K_MCF5225X_BSP_H
16 #define LIBBSP_M68K_MCF5225X_BSP_H
17 
28 #include <bspopts.h>
30 #include <rtems.h>
31 #include <rtems/bspIo.h>
32 
33 /***************************************************************************/
35 #include <mcf5225x/mcf5225x.h>
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
41 /* Declare base address of peripherals area */
42 #define __IPSBAR ((vuint8 *) 0x40000000)
43 
44 /***************************************************************************/
47 /***************************************************************************/
50 /* define ports for console and DPU specific for BLUETOOTH and STATIONS */
51 #define STATIONS_PORT 0
52 #define CONSOLE_PORT 1
53 #define BLUETOOTH_PORT 2
54 
55 /* externals */
56 
57 /* constants */
58 
59 /* miscellaneous stuff assumed to exist */
60 
61 /*
62  * Device Driver Table Entries
63  */
64 
65 /*
66  * NOTE: Use the standard Console driver entry
67  */
68 
69 /*
70  * NOTE: Use the standard Clock driver entry
71  */
72 
73 
74 /* functions */
75 
76 uint32_t bsp_get_CPU_clock_speed(void);
77 
78 rtems_isr_entry set_vector(
79  rtems_isr_entry handler,
80  rtems_vector_number vector,
81  int type
82 );
83 
84 /*
85  * Interrupt assignments
86  * Highest-priority listed first
87  */
88 
89 #define PIT3_IRQ_LEVEL 4
90 #define PIT3_IRQ_PRIORITY 0
91 
92 #define UART0_IRQ_LEVEL 3
93 #define UART0_IRQ_PRIORITY 7
94 #define UART1_IRQ_LEVEL 3
95 #define UART1_IRQ_PRIORITY 6
96 #define UART2_IRQ_LEVEL 3
97 #define UART2_IRQ_PRIORITY 5
98 
99 /*
100  * Prototypes for BSP methods which cross file boundaries
101  */
102 void Init5225x(void);
103 
104 #ifdef __cplusplus
105 }
106 #endif
107 
110 #endif
rtems_isr_entry set_vector(rtems_isr_entry handler, rtems_vector_number vector, int type)
Install an interrupt handler.
Definition: setvec.c:28
DEFAULT_INITIAL_EXTENSION Support.
ISR_Vector_number rtems_vector_number
Control block type used to manage the vectors.
Definition: intr.h:47
Interface to Kernel Print Methods.