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