22 #ifndef LIBBSP_M68K_UC5282_BSP_H 23 #define LIBBSP_M68K_UC5282_BSP_H 51 #define RTEMS_MCF5282_BSP_ENABLE_DATA_CACHE 55 #include <mcf5282/mcf5282.h> 59 struct rtems_bsdnet_ifconfig;
60 extern int rtems_fec_driver_attach (
struct rtems_bsdnet_ifconfig *
config,
int attaching );
61 #define RTEMS_BSP_NETWORK_DRIVER_NAME "fs1" 62 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_fec_driver_attach 68 #define CONSOLE_PORT 0 77 #define RTEMS_BSP_PGM_ERASE_FIRST 0x1 78 #define RTEMS_BSP_PGM_RESET_AFTER 0x2 79 #define RTEMS_BSP_PGM_EXEC_AFTER 0x4 80 #define RTEMS_BSP_PGM_HALT_AFTER 0x8 82 uint32_t bsp_get_CPU_clock_speed(
void);
84 int bsp_sysReset(
int flags);
86 unsigned const char *bsp_gethwaddr(
int a);
87 const char *bsp_getbenv(
const char *a);
88 int bsp_flash_erase_range(
volatile unsigned short *flashptr,
int start,
int end);
89 int bsp_flash_write_range(
volatile unsigned short *flashptr,
bsp_mnode_t *chain,
int offset);
92 rtems_isr_entry handler,
101 #define FEC_IRQ_LEVEL 4 102 #define FEC_IRQ_RX_PRIORITY 7 103 #define FEC_IRQ_TX_PRIORITY 6 105 #define PIT3_IRQ_LEVEL 4 106 #define PIT3_IRQ_PRIORITY 0 108 #define UART0_IRQ_LEVEL 3 109 #define UART0_IRQ_PRIORITY 7 110 #define UART1_IRQ_LEVEL 3 111 #define UART1_IRQ_PRIORITY 6 112 #define UART2_IRQ_LEVEL 3 113 #define UART2_IRQ_PRIORITY 5 119 #define VME_AM_STD_SUP_ASCENDING 0x3f 120 #define VME_AM_STD_SUP_PGM 0x3e 121 #define VME_AM_STD_USR_ASCENDING 0x3b 122 #define VME_AM_STD_USR_PGM 0x3a 123 #define VME_AM_STD_SUP_DATA 0x3d 124 #define VME_AM_STD_USR_DATA 0x39 125 #define VME_AM_EXT_SUP_ASCENDING 0x0f 126 #define VME_AM_EXT_SUP_PGM 0x0e 127 #define VME_AM_EXT_USR_ASCENDING 0x0b 128 #define VME_AM_EXT_USR_PGM 0x0a 129 #define VME_AM_EXT_SUP_DATA 0x0d 130 #define VME_AM_EXT_USR_DATA 0x09 131 #define VME_AM_SUP_SHORT_IO 0x2d 132 #define VME_AM_USR_SHORT_IO 0x29 138 typedef void (*BSP_VME_ISR_t)(
void *usrArg,
unsigned long vector);
139 BSP_VME_ISR_t BSP_getVME_isr(
unsigned long vector,
void **parg);
140 int BSP_installVME_isr(
unsigned long vector, BSP_VME_ISR_t handler,
void *usrArg);
141 int BSP_removeVME_isr(
unsigned long vector, BSP_VME_ISR_t handler,
void *usrArg);
142 int BSP_enableVME_int_lvl(
unsigned int level);
143 int BSP_disableVME_int_lvl(
unsigned int level);
144 int BSP_vme2local_adrs(
unsigned am,
unsigned long vmeaddr,
unsigned long *plocaladdr);
152 #define BSP_IDLE_TASK_BODY bsp_idle_thread 157 int bsp_cpu_load_percentage(
void);
162 void bsp_reset_cause(
char *buf,
size_t capacity);
171 volatile uint16_t status;
173 volatile void *buffer;
177 uint32_t idle_counter;
178 uint32_t filtered_idle;
179 uint32_t max_idle_count;
180 uint32_t pitc_per_tick;
181 uint32_t nsec_per_pitc;
Definition: deflate.c:115
rtems_isr_entry set_vector(rtems_isr_entry handler, rtems_vector_number vector, int type)
Install an interrupt handler.
Definition: setvec.c:28
DEFAULT_INITIAL_EXTENSION Support.
ISR_Vector_number rtems_vector_number
Control block type used to manage the vectors.
Definition: intr.h:47
rtems_status_code
Classic API Status.
Definition: status.h:43
Interface to Kernel Print Methods.
void * bsp_idle_thread(uintptr_t ignored)
Optimized idle task.
Definition: bspidle.c:26
unsigned l
Definition: tte.h:86
unsigned v
Definition: tte.h:73