1 | /* |
---|
2 | * uC5282 BSP header file |
---|
3 | */ |
---|
4 | |
---|
5 | #ifndef __SBC5282_BSP_H |
---|
6 | #define __SBC5282_BSP_H |
---|
7 | |
---|
8 | #ifdef __cplusplus |
---|
9 | extern "C" { |
---|
10 | #endif |
---|
11 | |
---|
12 | #include <rtems.h> |
---|
13 | #include <rtems/iosupp.h> |
---|
14 | #include <rtems/console.h> |
---|
15 | #include <rtems/clockdrv.h> |
---|
16 | #include <rtems/iosupp.h> |
---|
17 | #include <rtems/bspIo.h> |
---|
18 | |
---|
19 | /***************************************************************************/ |
---|
20 | /** Hardware data structure headers **/ |
---|
21 | #include <mcf5282/mcf5282.h> /* internal MCF5282 modules */ |
---|
22 | |
---|
23 | /***************************************************************************/ |
---|
24 | /** Network driver configuration **/ |
---|
25 | struct rtems_bsdnet_ifconfig; |
---|
26 | extern int rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching ); |
---|
27 | #define RTEMS_BSP_NETWORK_DRIVER_NAME "fs1" |
---|
28 | #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_fec_driver_attach |
---|
29 | |
---|
30 | /***************************************************************************/ |
---|
31 | /** User Definable configuration **/ |
---|
32 | |
---|
33 | /* define which port the console should use - all other ports are then defined as general purpose */ |
---|
34 | #define CONSOLE_PORT 0 |
---|
35 | |
---|
36 | |
---|
37 | /* |
---|
38 | * Define the time limits for RTEMS Test Suite test durations. |
---|
39 | * Long test and short test duration limits are provided. These |
---|
40 | * values are in seconds and need to be converted to ticks for the |
---|
41 | * application. |
---|
42 | * |
---|
43 | */ |
---|
44 | #define MAX_LONG_TEST_DURATION 300 /* 5 minutes = 300 seconds */ |
---|
45 | #define MAX_SHORT_TEST_DURATION 3 /* 3 seconds */ |
---|
46 | |
---|
47 | /* externals */ |
---|
48 | |
---|
49 | /* constants */ |
---|
50 | |
---|
51 | /* miscellaneous stuff assumed to exist */ |
---|
52 | |
---|
53 | extern rtems_configuration_table BSP_Configuration; |
---|
54 | |
---|
55 | /* |
---|
56 | * Device Driver Table Entries |
---|
57 | */ |
---|
58 | |
---|
59 | /* |
---|
60 | * NOTE: Use the standard Console driver entry |
---|
61 | */ |
---|
62 | |
---|
63 | /* |
---|
64 | * NOTE: Use the standard Clock driver entry |
---|
65 | */ |
---|
66 | |
---|
67 | |
---|
68 | /* functions */ |
---|
69 | |
---|
70 | unsigned32 get_CPU_clock_speed(void); |
---|
71 | void bsp_cleanup(void); |
---|
72 | |
---|
73 | m68k_isr_entry set_vector( |
---|
74 | rtems_isr_entry handler, |
---|
75 | rtems_vector_number vector, |
---|
76 | int type |
---|
77 | ); |
---|
78 | |
---|
79 | /* |
---|
80 | * Interrupt assignments |
---|
81 | * Highest-priority listed first |
---|
82 | */ |
---|
83 | #define FEC_IRQ_LEVEL 4 |
---|
84 | #define FEC_IRQ_RX_PRIORITY 7 |
---|
85 | #define FEC_IRQ_TX_PRIORITY 6 |
---|
86 | |
---|
87 | #define PIT3_IRQ_LEVEL 4 |
---|
88 | #define PIT3_IRQ_PRIORITY 0 |
---|
89 | |
---|
90 | #define UART0_IRQ_LEVEL 3 |
---|
91 | #define UART0_IRQ_PRIORITY 7 |
---|
92 | #define UART1_IRQ_LEVEL 3 |
---|
93 | #define UART1_IRQ_PRIORITY 6 |
---|
94 | #define UART2_IRQ_LEVEL 3 |
---|
95 | #define UART2_IRQ_PRIORITY 5 |
---|
96 | |
---|
97 | #ifdef __cplusplus |
---|
98 | } |
---|
99 | #endif |
---|
100 | |
---|
101 | #endif |
---|
102 | /* end of include file */ |
---|