File indexing completed on 2025-05-11 08:23:47
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef LIBBSP_M68K_MCF5235_BSP_H
0014 #define LIBBSP_M68K_MCF5235_BSP_H
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026 #include <bspopts.h>
0027 #include <bsp/default-initial-extension.h>
0028 #include <rtems.h>
0029 #include <rtems/bspIo.h>
0030
0031
0032
0033 #include <mcf5235/mcf5235.h> /* internal MCF5235 modules */
0034
0035 #ifdef __cplusplus
0036 extern "C" {
0037 #endif
0038
0039
0040
0041 struct rtems_bsdnet_ifconfig;
0042 extern int rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching );
0043 #define RTEMS_BSP_NETWORK_DRIVER_NAME "fec0"
0044 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_fec_driver_attach
0045
0046
0047
0048
0049
0050 #define CONSOLE_PORT 0
0051
0052
0053
0054 uint32_t get_CPU_clock_speed(void);
0055 rtems_isr_entry set_vector(
0056 rtems_isr_entry handler,
0057 rtems_vector_number vector,
0058 int type
0059 );
0060
0061
0062
0063
0064
0065 #define FEC_IRQ_LEVEL 4
0066 #define FEC_IRQ_RX_PRIORITY 7
0067 #define FEC_IRQ_TX_PRIORITY 6
0068
0069 #define PIT3_IRQ_LEVEL 4
0070 #define PIT3_IRQ_PRIORITY 0
0071
0072 #define UART0_IRQ_LEVEL 3
0073 #define UART0_IRQ_PRIORITY 7
0074 #define UART1_IRQ_LEVEL 3
0075 #define UART1_IRQ_PRIORITY 6
0076 #define UART2_IRQ_LEVEL 3
0077 #define UART2_IRQ_PRIORITY 5
0078
0079
0080
0081
0082 void Init5235(void);
0083
0084 #ifdef __cplusplus
0085 }
0086 #endif
0087
0088
0089
0090 #endif