RTEMS  5.0.0
bsp.h
Go to the documentation of this file.
1 
9 /*
10  * mcf52235 BSP header file
11  */
12 
13 #ifndef LIBBSP_M68K_MCF52235_BSP_H
14 #define LIBBSP_M68K_MCF52235_BSP_H
15 
26 #include <bspopts.h>
28 #include <rtems.h>
29 #include <rtems/bspIo.h>
30 
31 /***************************************************************************/
33 #include <mcf5223x/mcf5223x.h>
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 /* Declare base address of peripherals area */
40 #define __IPSBAR ((vuint8 *) 0x40000000)
41 
42 /***************************************************************************/
45 /***************************************************************************/
48 /* define which port the console should use - all other ports are then defined as general purpose */
49 #define CONSOLE_PORT 0
50 
51 /* externals */
52 
53 /* constants */
54 
55 /* functions */
56 
57 uint32_t bsp_get_CPU_clock_speed(void);
58 
59 rtems_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 /*
81  * Prototypes for BSP methods which cross file boundaries
82  */
83 void Init52235(void);
84 
85 #ifdef __cplusplus
86 }
87 #endif
88 
91 #endif
92 
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.