1 | /* |
---|
2 | * mcf5235 BSP header file |
---|
3 | */ |
---|
4 | |
---|
5 | #ifndef LIBBSP_M68K_MCF5235_BSP_H |
---|
6 | #define LIBBSP_M68K_MCF5235_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 <mcf5235/mcf5235.h> /* internal MCF5235 modules */ |
---|
20 | |
---|
21 | #ifdef __cplusplus |
---|
22 | extern "C" { |
---|
23 | #endif |
---|
24 | |
---|
25 | /***************************************************************************/ |
---|
26 | /** Network driver configuration **/ |
---|
27 | struct rtems_bsdnet_ifconfig; |
---|
28 | extern int rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching ); |
---|
29 | #define RTEMS_BSP_NETWORK_DRIVER_NAME "fec0" |
---|
30 | #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_fec_driver_attach |
---|
31 | |
---|
32 | /***************************************************************************/ |
---|
33 | /** User Definable configuration **/ |
---|
34 | |
---|
35 | /* define which port the console should use - all other ports are then defined as general purpose */ |
---|
36 | #define CONSOLE_PORT 0 |
---|
37 | |
---|
38 | /* functions */ |
---|
39 | |
---|
40 | uint32_t get_CPU_clock_speed(void); |
---|
41 | rtems_isr_entry set_vector( |
---|
42 | rtems_isr_entry handler, |
---|
43 | rtems_vector_number vector, |
---|
44 | int type |
---|
45 | ); |
---|
46 | |
---|
47 | /* |
---|
48 | * Interrupt assignments |
---|
49 | * Highest-priority listed first |
---|
50 | */ |
---|
51 | #define FEC_IRQ_LEVEL 4 |
---|
52 | #define FEC_IRQ_RX_PRIORITY 7 |
---|
53 | #define FEC_IRQ_TX_PRIORITY 6 |
---|
54 | |
---|
55 | #define PIT3_IRQ_LEVEL 4 |
---|
56 | #define PIT3_IRQ_PRIORITY 0 |
---|
57 | |
---|
58 | #define UART0_IRQ_LEVEL 3 |
---|
59 | #define UART0_IRQ_PRIORITY 7 |
---|
60 | #define UART1_IRQ_LEVEL 3 |
---|
61 | #define UART1_IRQ_PRIORITY 6 |
---|
62 | #define UART2_IRQ_LEVEL 3 |
---|
63 | #define UART2_IRQ_PRIORITY 5 |
---|
64 | |
---|
65 | /* |
---|
66 | * Prototypes for BSP methods which cross file boundaries |
---|
67 | */ |
---|
68 | void Init5235(void); |
---|
69 | |
---|
70 | #ifdef __cplusplus |
---|
71 | } |
---|
72 | #endif |
---|
73 | |
---|
74 | #endif |
---|