⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mpc5xx.h

📁 motorola 针对coldfire 5275 评估板的Dbug bootloader源程序
💻 H
字号:
/*
 * File:        mpc5xx.h
 * Purpose:     Definitions common across all MPC5XX processors
 *
 * Notes:
 *
 */

#ifndef _CPU_MPC5XX_H
#define _CPU_MPC5XX_H

/********************************************************************/
/*
 * Memory map definitions from linker command files
 */

extern uint8 __ISB[];

/*
 * Set the Internal Memory Base to the defined ISB address
 */
#define INTERNAL_MEMORY_BASE __ISB

/********************************************************************/

void   mpc5xx_wr_immr (uint32);
uint32 mpc5xx_rd_immr (void);
void   mpc5xx_wr_msr (uint32);
uint32 mpc5xx_rd_msr (void);
void   mpc5xx_wr_cmpa (uint32);
uint32 mpc5xx_rd_cmpa (void);
void   mpc5xx_wr_cmpb (uint32);
uint32 mpc5xx_rd_cmpb (void);
void   mpc5xx_wr_cmpc (uint32);
uint32 mpc5xx_rd_cmpc (void);
void   mpc5xx_wr_cmpd (uint32);
uint32 mpc5xx_rd_cmpd (void);


void   mpc5xx_wr_der (uint32);
uint32 mpc5xx_rd_der (void);
uint32 mpc5xx_rd_icr (void);
uint32 mpc5xx_rd_ictrl (void);
void   mpc5xx_wr_ictrl (uint32);
uint32 mpc5xx_rd_tbl (void);
void   mpc5xx_wr_tbl (uint32);
uint32 mpc5xx_rd_tbu (void);
void   mpc5xx_wr_tbu (uint32);
void   mpc5xx_wr_dec (uint32);
uint32 mpc5xx_rd_dec (void);

/********************************************************************/

#if     (defined(CPU_MPC555))
#include "src/include/cpu/ppc/mpc5xx/mpc555.h"

#elif   (defined(CPU_MPC561) || defined(CPU_MPC562))
#include "src/include/cpu/ppc/mpc5xx/mpc561.h"

#elif   (defined(CPU_MPC563) || defined(CPU_MPC564))
#include "src/include/cpu/ppc/mpc5xx/mpc563.h"

#elif   (defined(CPU_MPC565) || defined(CPU_MPC566))
#include "src/include/cpu/ppc/mpc5xx/mpc565.h"

#else
#error "Error: Unsuported MPC5XX processor"
#endif

/********************************************************************/

#endif /* _CPU_MPC5XX_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -