Back to home page

LXR

 
 

    


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

0001 /**
0002  * @file
0003  *
0004  * @ingroup RTEMSBSPsM68kMCF5329
0005  *
0006  * @brief Global BSP definitions.
0007  */
0008 
0009 
0010 /*
0011  *  mcf52235 BSP header file
0012  */
0013 
0014 #ifndef LIBBSP_M68K_MCF5329_BSP_H
0015 #define LIBBSP_M68K_MCF5329_BSP_H
0016 
0017 /**
0018  * @defgroup RTEMSBSPsM68kMCF5329 MCF5329
0019  *
0020  * @ingroup RTEMSBSPsM68k
0021  *
0022  * @brief MCF5329 Board Support Package.
0023  *
0024  * @{
0025  */
0026 
0027 #include <bspopts.h>
0028 #include <bsp/default-initial-extension.h>
0029 #include <rtems.h>
0030 #include <rtems/bspIo.h>
0031 
0032 /***************************************************************************/
0033 /**  Hardware data structure headers                                      **/
0034 #include <mcf532x/mcf532x.h>
0035 
0036 #ifdef __cplusplus
0037 extern "C" {
0038 #endif
0039 
0040 typedef volatile unsigned char vuint8;
0041 typedef volatile unsigned short vuint16;
0042 typedef volatile unsigned long vuint32;
0043 
0044 /***************************************************************************/
0045 /**  Network driver configuration                                         **/
0046 struct rtems_bsdnet_ifconfig;
0047 extern int rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching );
0048 #define RTEMS_BSP_NETWORK_DRIVER_NAME     "fec0"
0049 #define RTEMS_BSP_NETWORK_DRIVER_ATTACH   rtems_fec_driver_attach
0050 
0051 /***************************************************************************/
0052 /**  User Definable configuration                                         **/
0053 
0054 /* define which port the console should use - all other ports are then defined as general purpose */
0055 #define CONSOLE_PORT        0
0056 
0057 /* functions */
0058 
0059 uint32_t bsp_get_CPU_clock_speed(void);
0060 uint32_t bsp_get_BUS_clock_speed(void);
0061 
0062 rtems_isr_entry set_vector(
0063   rtems_isr_entry     handler,
0064   rtems_vector_number vector,
0065   int                 type
0066 );
0067 
0068 /*
0069  * Interrupt assignments
0070  *  Highest-priority listed first
0071  */
0072 #define FEC_IRQ_LEVEL       4
0073 
0074 #define PIT3_IRQ_LEVEL      4
0075 
0076 #define UART0_IRQ_LEVEL     3
0077 #define UART1_IRQ_LEVEL     3
0078 #define UART2_IRQ_LEVEL     3
0079 
0080 /*
0081  * Prototypes for BSP methods which cross file boundaries
0082  */
0083 void Init5329(void);
0084 
0085 #ifdef __cplusplus
0086 }
0087 #endif
0088 
0089 /** @} */
0090 
0091 #endif