📄 cpu.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_MCF
/* Motorola ColdFire processors with hardware MAC and DIV */
#elif (defined(CPU_MCF5206e) || \
defined(CPU_MCF5272) || \
defined(CPU_MCF5307) || \
defined(CPU_MCF5307j20)|| \
defined(CPU_MCF5407) || \
defined(CPU_MCF5211) || \
defined(CPU_MCF5212) || \
defined(CPU_MCF5213))
#define CPU_ARCH_MCF
#define CPU_MCF_MAC
#define CPU_MCF_DIV
/* Motorola ColdFire processors with hardware EMAC and DIV */
#elif (defined(CPU_MCF5249) || \
defined(CPU_MCF5282) || \
defined(CPU_MCF523X) || \
defined(CPU_MCF5271) || \
defined(CPU_MCF5275) || \
defined(CPU_MCF5208) || \
defined(CPU_MCF532X) )
#define CPU_ARCH_MCF
#define CPU_MCF_EMAC
#define CPU_MCF_DIV
/* Motorola ColdFire processors with hardware EMAC, DIV, FPU and MMU */
#elif (defined(CPU_MCF5470) || \
defined(CPU_MCF5471) || \
defined(CPU_MCF5472) || \
defined(CPU_MCF5473) || \
defined(CPU_MCF5474) || \
defined(CPU_MCF5475) || \
defined(CPU_MCF547X) || \
defined(CPU_MCF5480) || \
defined(CPU_MCF5481) || \
defined(CPU_MCF5482) || \
defined(CPU_MCF5483) || \
defined(CPU_MCF5484) || \
defined(CPU_MCF5485) || \
defined(CPU_MCF548X))
#define CPU_ARCH_MCF
#define CPU_MCF_EMAC
#define CPU_MCF_DIV
#define CPU_MCF_FPU
#define CPU_MCF_MMU
/* 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
/* Motorola PowerPC 55xx processors */
#elif (defined(CPU_MPC5554))
#define CPU_ARCH_PPC
#define CPU_FAM_MPC55XX
#else
#error "Error: Unsupported CPU in cpu.h"
#endif
/* Now obtain the processor details */
#if (defined(CPU_ARCH_MCF))
#include "coldfire/mcf5xxx.h"
#elif (defined(CPU_ARCH_PPC))
#include "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 + -