Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:44

0001 /**
0002  * @file
0003  *
0004  * @ingroup RTEMSBSPsM68kAV5282
0005  *
0006  * @brief Global BSP definitions.
0007  */
0008 
0009 /*
0010  *  av5282 BSP header file
0011  */
0012 
0013 #ifndef LIBBSP_M68K_AV5282_BSP_H
0014 #define LIBBSP_M68K_AV5282_BSP_H
0015 
0016 /**
0017  * @defgroup RTEMSBSPsM68kAV5282 AV5282
0018  *
0019  * @ingroup RTEMSBSPsM68k
0020  *
0021  * @brief AV5282 Board Support Package.
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 /**  Hardware data structure headers                                      **/
0036 #include <mcf5282/mcf5282.h>   /* internal MCF5282 modules */
0037 
0038 #ifdef __cplusplus
0039 extern "C" {
0040 #endif
0041 
0042 /***************************************************************************/
0043 /**  Network driver configuration                                         **/
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 /**  User Definable configuration                                         **/
0051 
0052 /* define which port the console should use - all other ports are then defined as general purpose */
0053 #define CONSOLE_PORT        0
0054 
0055 /* externals */
0056 
0057 /* constants */
0058 
0059 /* miscellaneous stuff assumed to exist */
0060 
0061 /* functions */
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  * Interrupt assignments
0073  *  Highest-priority listed first
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  * Prototypes for methods called from .S to alow dependency tracking
0091  */
0092 void Init5282(void);
0093 
0094 #ifdef __cplusplus
0095 }
0096 #endif
0097 
0098 #endif /* !ASM */
0099 
0100 /** @} */
0101 
0102 #endif