1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup m68k_mcf52235 |
---|
5 | * |
---|
6 | * @brief Global BSP definitions |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * mcf52235 BSP header file |
---|
11 | */ |
---|
12 | |
---|
13 | #ifndef LIBBSP_M68K_MCF52235_BSP_H |
---|
14 | #define LIBBSP_M68K_MCF52235_BSP_H |
---|
15 | |
---|
16 | #include <bspopts.h> |
---|
17 | #include <bsp/default-initial-extension.h> |
---|
18 | #include <rtems.h> |
---|
19 | #include <rtems/bspIo.h> |
---|
20 | |
---|
21 | /***************************************************************************/ |
---|
22 | /** Hardware data structure headers **/ |
---|
23 | #include <mcf5223x/mcf5223x.h> |
---|
24 | |
---|
25 | #ifdef __cplusplus |
---|
26 | extern "C" { |
---|
27 | #endif |
---|
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 which port the console should use - all other ports are then defined as general purpose */ |
---|
39 | #define CONSOLE_PORT 0 |
---|
40 | |
---|
41 | /* externals */ |
---|
42 | |
---|
43 | /* constants */ |
---|
44 | |
---|
45 | /* functions */ |
---|
46 | |
---|
47 | uint32_t bsp_get_CPU_clock_speed(void); |
---|
48 | |
---|
49 | rtems_isr_entry set_vector( |
---|
50 | rtems_isr_entry handler, |
---|
51 | rtems_vector_number vector, |
---|
52 | int type |
---|
53 | ); |
---|
54 | |
---|
55 | /* |
---|
56 | * Interrupt assignments |
---|
57 | * Highest-priority listed first |
---|
58 | */ |
---|
59 | |
---|
60 | #define PIT3_IRQ_LEVEL 4 |
---|
61 | #define PIT3_IRQ_PRIORITY 0 |
---|
62 | |
---|
63 | #define UART0_IRQ_LEVEL 3 |
---|
64 | #define UART0_IRQ_PRIORITY 7 |
---|
65 | #define UART1_IRQ_LEVEL 3 |
---|
66 | #define UART1_IRQ_PRIORITY 6 |
---|
67 | #define UART2_IRQ_LEVEL 3 |
---|
68 | #define UART2_IRQ_PRIORITY 5 |
---|
69 | |
---|
70 | /* |
---|
71 | * Prototypes for BSP methods which cross file boundaries |
---|
72 | */ |
---|
73 | void Init52235(void); |
---|
74 | |
---|
75 | #ifdef __cplusplus |
---|
76 | } |
---|
77 | #endif |
---|
78 | |
---|
79 | #endif |
---|
80 | |
---|
81 | /** |
---|
82 | * @defgroup m68k_mcf52235 MCF52235 Support |
---|
83 | * |
---|
84 | * @ingroup RTEMSBSPsM68k |
---|
85 | * |
---|
86 | * @brief MCF52235 Support Package |
---|
87 | */ |
---|