1 | /* |
---|
2 | * av5282 BSP header file |
---|
3 | */ |
---|
4 | |
---|
5 | #ifndef __SBav5282_BSP_H |
---|
6 | #define __SBav5282_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 | /* externals */ |
---|
37 | |
---|
38 | /* constants */ |
---|
39 | |
---|
40 | /* miscellaneous stuff assumed to exist */ |
---|
41 | |
---|
42 | extern rtems_configuration_table BSP_Configuration; |
---|
43 | |
---|
44 | /* |
---|
45 | * Device Driver Table Entries |
---|
46 | */ |
---|
47 | |
---|
48 | /* |
---|
49 | * NOTE: Use the standard Console driver entry |
---|
50 | */ |
---|
51 | |
---|
52 | /* |
---|
53 | * NOTE: Use the standard Clock driver entry |
---|
54 | */ |
---|
55 | |
---|
56 | |
---|
57 | /* functions */ |
---|
58 | |
---|
59 | uint32_t get_CPU_clock_speed(void); |
---|
60 | void bsp_cleanup(void); |
---|
61 | |
---|
62 | m68k_isr_entry set_vector( |
---|
63 | rtems_isr_entry handler, |
---|
64 | rtems_vector_number vector, |
---|
65 | int type |
---|
66 | ); |
---|
67 | |
---|
68 | /* |
---|
69 | * Interrupt assignments |
---|
70 | * Highest-priority listed first |
---|
71 | */ |
---|
72 | #define FEC_IRQ_LEVEL 4 |
---|
73 | #define FEC_IRQ_RX_PRIORITY 7 |
---|
74 | #define FEC_IRQ_TX_PRIORITY 6 |
---|
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 |
---|