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