📄 mcu.h
字号:
#ifndef __MCU_H__
#define __MCU_H__
#include "cpu.h"
#if (CPU == MC68VZ328)
#define AMAZON_PHYS_BASE 0x02000000 // CSB region
#elif (CPU == MC9328MXL)
#define AMAZON_PHYS_BASE 0x16000000 // CS5 region
#define MX_PHYS_BASE 0x00200000 // start of internal registers
#define MX_REG_LEN 0x00027000 // end of internal registers
#elif (CPU== LPC22xx)
#define AMAZON_PHYS_BASE 0x81000000
#else
#error "Wrong CPU Type"
#endif
#define AMAZON_LEN 0x00100000 // required to map upto 1 MB
#if (CPU == MC68VZ328)
#define AMAZON_BASE AMAZON_PHYS_BASE
#elif (CPU == MC9328MXL)
#ifdef __KERNEL__
//#define AMAZON_BASE 0xF6000000//#define SDHC_BASE 0xF6001100#else
#ifndef __DEMO1923__
#ifndef __MAIN_C__
//extern unsigned long AMAZON_BASE; // assigned once mapping is completed//extern unsigned long SDHC_BASE; // assigned once mapping is completed#endif
#else
//#define AMAZON_BASE 0xF6000000//#define SDHC_BASE 0xF6001100#endif //__DEMO1923__
#endif // __KERNEL__
#elif (CPU==LPC22xx)
//I don't know what to do.
#else
#error "Wrong CPU Type"
#endif
int McuInit (void);
#if (CPU == MC68VZ328)
#define McuExit() {}
#else
int McuExit (void);
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -