Back to home page

LXR

 
 

    


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

0001 /**
0002  * @file
0003  *
0004  * @ingroup RTEMSBSPsM68kMCF52235
0005  *
0006  * @brief Global BSP definitions.
0007  */
0008 
0009 /*
0010  *  mcf52235 BSP header file
0011  */
0012 
0013 #ifndef LIBBSP_M68K_MCF52235_BSP_H
0014 #define LIBBSP_M68K_MCF52235_BSP_H
0015 
0016 /**
0017  * @defgroup RTEMSBSPsM68kMCF52235 MCF52235
0018  *
0019  * @ingroup RTEMSBSPsM68k
0020  *
0021  * @brief MCF52235 Board Support Package.
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 /**  Hardware data structure headers                                      **/
0033 #include <mcf5223x/mcf5223x.h>
0034 
0035 #ifdef __cplusplus
0036 extern "C" {
0037 #endif
0038 
0039 /* Declare base address of peripherals area */
0040 #define __IPSBAR ((vuint8 *) 0x40000000)
0041 
0042 /***************************************************************************/
0043 /**  Network driver configuration                                         **/
0044 
0045 /***************************************************************************/
0046 /**  User Definable configuration                                         **/
0047 
0048 /* define which port the console should use - all other ports are then defined as general purpose */
0049 #define CONSOLE_PORT        0
0050 
0051 /* externals */
0052 
0053 /* constants */
0054 
0055 /* functions */
0056 
0057 uint32_t bsp_get_CPU_clock_speed(void);
0058 
0059 rtems_isr_entry set_vector(
0060   rtems_isr_entry     handler,
0061   rtems_vector_number vector,
0062   int                 type
0063 );
0064 
0065 /*
0066  * Interrupt assignments
0067  *  Highest-priority listed first
0068  */
0069 
0070 #define PIT3_IRQ_LEVEL      4
0071 #define PIT3_IRQ_PRIORITY   0
0072 
0073 #define UART0_IRQ_LEVEL     3
0074 #define UART0_IRQ_PRIORITY  7
0075 #define UART1_IRQ_LEVEL     3
0076 #define UART1_IRQ_PRIORITY  6
0077 #define UART2_IRQ_LEVEL     3
0078 #define UART2_IRQ_PRIORITY  5
0079 
0080 /*
0081  * Prototypes for BSP methods which cross file boundaries
0082  */
0083 void Init52235(void);
0084 
0085 #ifdef __cplusplus
0086 }
0087 #endif
0088 
0089 /** @} */
0090 
0091 #endif
0092