Back to home page

LXR

 
 

    


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

0001 /**
0002  * @file
0003  *
0004  * @ingroup RTEMSBSPsM68kMCF5225X
0005  *
0006  * @brief Global BSP definitions.
0007  */
0008 
0009 /*
0010  *  The license and distribution terms for this file may be
0011  *  found in the file LICENSE in this distribution or at
0012  *  http://www.rtems.org/license/LICENSE.
0013  */
0014  
0015 #ifndef LIBBSP_M68K_MCF5225X_BSP_H
0016 #define LIBBSP_M68K_MCF5225X_BSP_H
0017 
0018 /**
0019  * @defgroup RTEMSBSPsM68kMCF5225X MCF5225X
0020  *
0021  * @ingroup RTEMSBSPsM68k
0022  *
0023  * @brief MCF5225X Board Support Package.
0024  *
0025  * @{
0026  */
0027 
0028 #include <bspopts.h>
0029 #include <bsp/default-initial-extension.h>
0030 #include <rtems.h>
0031 #include <rtems/bspIo.h>
0032 
0033 /***************************************************************************/
0034 /**  Hardware data structure headers                                      **/
0035 #include <mcf5225x/mcf5225x.h>
0036 
0037 #ifdef __cplusplus
0038 extern "C" {
0039 #endif
0040 
0041 /* Declare base address of peripherals area */
0042 #define __IPSBAR ((vuint8 *) 0x40000000)    
0043 
0044 /***************************************************************************/
0045 /**  Network driver configuration                                         **/
0046 
0047 /***************************************************************************/
0048 /**  User Definable configuration                                         **/
0049 
0050 /* define ports for console and DPU specific for BLUETOOTH and STATIONS */
0051 #define STATIONS_PORT           0
0052 #define CONSOLE_PORT      1
0053 #define BLUETOOTH_PORT      2
0054 
0055 /* externals */
0056 
0057 /* constants */
0058 
0059 /* miscellaneous stuff assumed to exist */
0060 
0061 /*
0062  *  Device Driver Table Entries
0063  */
0064  
0065 /*
0066  * NOTE: Use the standard Console driver entry
0067  */
0068  
0069 /*
0070  * NOTE: Use the standard Clock driver entry
0071  */
0072 
0073 
0074 /* functions */
0075 
0076 uint32_t bsp_get_CPU_clock_speed(void);
0077 
0078 rtems_isr_entry set_vector(
0079   rtems_isr_entry     handler,
0080   rtems_vector_number vector,
0081   int                 type
0082 );
0083 
0084 /*
0085  * Interrupt assignments
0086  *  Highest-priority listed first
0087  */
0088 
0089 #define PIT3_IRQ_LEVEL      4
0090 #define PIT3_IRQ_PRIORITY   0
0091 
0092 #define UART0_IRQ_LEVEL     3
0093 #define UART0_IRQ_PRIORITY  7
0094 #define UART1_IRQ_LEVEL     3
0095 #define UART1_IRQ_PRIORITY  6
0096 #define UART2_IRQ_LEVEL     3
0097 #define UART2_IRQ_PRIORITY  5
0098 
0099 /*
0100  * Prototypes for BSP methods which cross file boundaries
0101  */
0102 void Init5225x(void);
0103 
0104 #ifdef __cplusplus
0105 }
0106 #endif
0107 
0108 /** @} */
0109 
0110 #endif