[7388557] | 1 | /** |
---|
| 2 | * @file |
---|
| 3 | * |
---|
| 4 | * @ingroup m68k_av5282 |
---|
| 5 | * |
---|
| 6 | * @brief Global BSP definitions. |
---|
| 7 | */ |
---|
| 8 | |
---|
[1b269c56] | 9 | /* |
---|
| 10 | * av5282 BSP header file |
---|
| 11 | */ |
---|
[d4b4664b] | 12 | |
---|
[3d4898f] | 13 | /** |
---|
| 14 | * @defgroup m68k_av5282 AV5282 Support |
---|
| 15 | * |
---|
| 16 | * @ingroup bsp_m68k |
---|
| 17 | * |
---|
| 18 | * @brief AV5282 support. |
---|
| 19 | */ |
---|
| 20 | |
---|
[4784214a] | 21 | #ifndef LIBBSP_M68K_AV5282_BSP_H |
---|
| 22 | #define LIBBSP_M68K_AV5282_BSP_H |
---|
[1b269c56] | 23 | |
---|
[3d4898f] | 24 | #ifndef ASM |
---|
| 25 | |
---|
[12007d0] | 26 | #include <bspopts.h> |
---|
[a052181] | 27 | #include <bsp/default-initial-extension.h> |
---|
[12007d0] | 28 | |
---|
[1b269c56] | 29 | #include <rtems.h> |
---|
| 30 | #include <rtems/bspIo.h> |
---|
| 31 | |
---|
| 32 | /***************************************************************************/ |
---|
| 33 | /** Hardware data structure headers **/ |
---|
| 34 | #include <mcf5282/mcf5282.h> /* internal MCF5282 modules */ |
---|
| 35 | |
---|
[46dde0fc] | 36 | #ifdef __cplusplus |
---|
| 37 | extern "C" { |
---|
| 38 | #endif |
---|
| 39 | |
---|
[1b269c56] | 40 | /***************************************************************************/ |
---|
| 41 | /** Network driver configuration **/ |
---|
| 42 | struct rtems_bsdnet_ifconfig; |
---|
| 43 | extern int rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching ); |
---|
| 44 | #define RTEMS_BSP_NETWORK_DRIVER_NAME "fs1" |
---|
| 45 | #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_fec_driver_attach |
---|
| 46 | |
---|
| 47 | /***************************************************************************/ |
---|
| 48 | /** User Definable configuration **/ |
---|
| 49 | |
---|
| 50 | /* define which port the console should use - all other ports are then defined as general purpose */ |
---|
| 51 | #define CONSOLE_PORT 0 |
---|
| 52 | |
---|
| 53 | /* externals */ |
---|
| 54 | |
---|
| 55 | /* constants */ |
---|
| 56 | |
---|
| 57 | /* miscellaneous stuff assumed to exist */ |
---|
| 58 | |
---|
| 59 | /* functions */ |
---|
| 60 | |
---|
[71a7ed0] | 61 | uint32_t get_CPU_clock_speed(void); |
---|
[1b269c56] | 62 | |
---|
[1fec9e0] | 63 | rtems_isr_entry set_vector( |
---|
[1b269c56] | 64 | rtems_isr_entry handler, |
---|
| 65 | rtems_vector_number vector, |
---|
| 66 | int type |
---|
| 67 | ); |
---|
| 68 | |
---|
| 69 | /* |
---|
| 70 | * Interrupt assignments |
---|
| 71 | * Highest-priority listed first |
---|
| 72 | */ |
---|
| 73 | #define FEC_IRQ_LEVEL 4 |
---|
| 74 | #define FEC_IRQ_RX_PRIORITY 7 |
---|
| 75 | #define FEC_IRQ_TX_PRIORITY 6 |
---|
| 76 | |
---|
| 77 | #define PIT3_IRQ_LEVEL 4 |
---|
| 78 | #define PIT3_IRQ_PRIORITY 0 |
---|
| 79 | |
---|
| 80 | #define UART0_IRQ_LEVEL 3 |
---|
| 81 | #define UART0_IRQ_PRIORITY 7 |
---|
| 82 | #define UART1_IRQ_LEVEL 3 |
---|
| 83 | #define UART1_IRQ_PRIORITY 6 |
---|
| 84 | #define UART2_IRQ_LEVEL 3 |
---|
| 85 | #define UART2_IRQ_PRIORITY 5 |
---|
| 86 | |
---|
[3d4898f] | 87 | /* |
---|
| 88 | * Prototypes for methods called from .S to alow dependency tracking |
---|
| 89 | */ |
---|
| 90 | void Init5282(void); |
---|
| 91 | |
---|
[1b269c56] | 92 | #ifdef __cplusplus |
---|
| 93 | } |
---|
| 94 | #endif |
---|
| 95 | |
---|
[3d4898f] | 96 | #endif /* !ASM */ |
---|
[1b269c56] | 97 | #endif |
---|