1 | /* |
---|
2 | * The license and distribution terms for this file may be |
---|
3 | * found in the file LICENSE in this distribution or at |
---|
4 | * http://www.rtems.com/license/LICENSE. |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _BSP_H |
---|
8 | #define _BSP_H |
---|
9 | |
---|
10 | #ifdef __cplusplus |
---|
11 | extern "C" { |
---|
12 | #endif |
---|
13 | |
---|
14 | #include <bspopts.h> |
---|
15 | #include <rtems.h> |
---|
16 | #include <rtems/iosupp.h> |
---|
17 | #include <rtems/console.h> |
---|
18 | #include <rtems/clockdrv.h> |
---|
19 | #include <rtems/iosupp.h> |
---|
20 | #include <rtems/bspIo.h> |
---|
21 | |
---|
22 | #define BSP_SMALL_MEMORY 1 |
---|
23 | |
---|
24 | /***************************************************************************/ |
---|
25 | /** Hardware data structure headers **/ |
---|
26 | #include <mcf5225x/mcf5225x.h> |
---|
27 | |
---|
28 | /* Declare base address of peripherals area */ |
---|
29 | #define __IPSBAR ((vuint8 *) 0x40000000) |
---|
30 | |
---|
31 | /***************************************************************************/ |
---|
32 | /** Network driver configuration **/ |
---|
33 | |
---|
34 | /***************************************************************************/ |
---|
35 | /** User Definable configuration **/ |
---|
36 | |
---|
37 | /* define ports for console and DPU specific for BLUETOOTH and STATIONS */ |
---|
38 | #define STATIONS_PORT 0 |
---|
39 | #define CONSOLE_PORT 1 |
---|
40 | #define BLUETOOTH_PORT 2 |
---|
41 | |
---|
42 | /* externals */ |
---|
43 | |
---|
44 | /* constants */ |
---|
45 | |
---|
46 | /* miscellaneous stuff assumed to exist */ |
---|
47 | |
---|
48 | /* |
---|
49 | * Device Driver Table Entries |
---|
50 | */ |
---|
51 | |
---|
52 | /* |
---|
53 | * NOTE: Use the standard Console driver entry |
---|
54 | */ |
---|
55 | |
---|
56 | /* |
---|
57 | * NOTE: Use the standard Clock driver entry |
---|
58 | */ |
---|
59 | |
---|
60 | |
---|
61 | /* functions */ |
---|
62 | |
---|
63 | uint32_t bsp_get_CPU_clock_speed(void); |
---|
64 | |
---|
65 | rtems_isr_entry set_vector( |
---|
66 | rtems_isr_entry handler, |
---|
67 | rtems_vector_number vector, |
---|
68 | int type |
---|
69 | ); |
---|
70 | |
---|
71 | /* |
---|
72 | * Interrupt assignments |
---|
73 | * Highest-priority listed first |
---|
74 | */ |
---|
75 | |
---|
76 | #define PIT3_IRQ_LEVEL 4 |
---|
77 | #define PIT3_IRQ_PRIORITY 0 |
---|
78 | |
---|
79 | #define UART0_IRQ_LEVEL 3 |
---|
80 | #define UART0_IRQ_PRIORITY 7 |
---|
81 | #define UART1_IRQ_LEVEL 3 |
---|
82 | #define UART1_IRQ_PRIORITY 6 |
---|
83 | #define UART2_IRQ_LEVEL 3 |
---|
84 | #define UART2_IRQ_PRIORITY 5 |
---|
85 | |
---|
86 | #ifdef __cplusplus |
---|
87 | } |
---|
88 | #endif |
---|
89 | |
---|
90 | #endif |
---|