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