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

📄 cpu.h

📁 motorola自己开发的针对coldfire 5272的Dbug bootloader程序
💻 H
字号:
/*
 * File:		src/include/cpu/cpu.h
 * Purpose:		Top-level include file for CPU definitions
 *
 * Notes:		This file automatically included.
 *
 */

#ifndef _CPU_H
#define _CPU_H

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

/* Motorola ColdFire processors */
#if		(defined(CPU_MCF5202)	|| \
		 defined(CPU_MCF5204)	|| \
		 defined(CPU_MCF5206))
#define CPU_ARCH_CF
#define CPU_FAM_MCF5XXX

/* Motorola ColdFire processors with MAC and DIV instructions */
#elif	(defined(CPU_MCF5206e)	|| \
		 defined(CPU_MCF5249)	|| \
		 defined(CPU_MCF5272)	|| \
		 defined(CPU_MCF5282)	|| \
		 defined(CPU_MCF5307)	|| \
		 defined(CPU_MCF5307j20)|| \
		 defined(CPU_MCF5407))
#define CPU_ARCH_CF
#define CPU_FAM_MCF5XXX
#define CPU_FAM_MCF5XXXM
#define CPU_FAM_MCF5XXXDIV

/* Motorola PowerPC 60x processors */
#elif	(defined(CPU_MPC6XX)	|| \
		 defined(CPU_MPC602)	|| \
		 defined(CPU_MPC603)	|| \
		 defined(CPU_MPC603E)	|| \
		 defined(CPU_MPC603EV)	|| \
		 defined(CPU_MPC604)	|| \
		 defined(CPU_MPC604E)	|| \
		 defined(CPU_MPC750))
#define CPU_ARCH_PPC
#define CPU_FAM_MPC6XX

/* Motorola PowerPC 8xx processors */
#elif	(defined(CPU_MPC821)	|| \
		 defined(CPU_MPC823)	|| \
		 defined(CPU_MPC850)	|| \
		 defined(CPU_MPC860)	|| \
		 defined(CPU_MPC860T)	|| \
		 defined(CPU_MPC860SAR))
#define CPU_ARCH_PPC
#define CPU_FAM_MPC8XX

/* Motorola PowerPC 5xx processors */
#elif	(defined(CPU_MPC555)	|| \
		 defined(CPU_MPC561)	|| \
		 defined(CPU_MPC562)	|| \
		 defined(CPU_MPC563)	|| \
		 defined(CPU_MPC564)	|| \
		 defined(CPU_MPC565)	|| \
		 defined(CPU_MPC566))
#define CPU_ARCH_PPC
#define CPU_FAM_MPC5XX

#else
#error "Error:  Unsupported CPU in cpu.h"
#endif

/* Now obtain the processor details */
#if		(defined(CPU_ARCH_CF))
#include "src/include/cpu/coldfire/mcf5xxx.h"

#elif	(defined(CPU_ARCH_PPC))
#include "src/include/cpu/ppc/ppc.h"

#else
#error "Error:  Unsupported CPU in cpu.h"
#endif


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

#endif /* _CPU_H */

⌨️ 快捷键说明

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