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

📄 modulereg.h

📁 M*core开发库文件,能够大大减轻开发者的难度
💻 H
字号:
/********************************************************************
	created:	2007/04/12
	created:	12:4:2007   11:27
	filename: 	G:\DataBak\VCWorks\04.09\McoreReg\ModuleReg.h
	file path:	G:\DataBak\VCWorks\04.09\McoreReg
	file base:	ModuleReg
	file ext:	h
	author:		Cryinrain & Yxy	
	purpose:	Module Header files
********************************************************************/

#ifndef _PLIBDEFS_H
#define _PLIBDEFS_H

/* I/O base addresses specific to the MMC2107 MCU */
#define __MMC2107_CMFR_FLASH  0x00000000   /* 8Meg CMFR Flash Array  */
#define __MMC2107_SRAM        0x00800000   /* 8K Static RAM Array    */
#define __MMC2107_PORTS       0x00C00000   /* Port Registers         */
#define __MMC2107_CCM         0x00C10000   /* Chip Configuration     */ 
#define __MMC2107_CS          0x00C20000   /* Chip Selects           */
#define __MMC2107_PLL         0x00C30000   /* Clocks                 */
#define __MMC2107_RESET       0x00C40000   /* Reset                  */
#define __MMC2107_ITCN        0x00C50000   /* Interrupt Controller   */
#define __MMC2107_EDGEPORT    0x00C60000   /* Edge Port              */
#define __MMC2107_WATCHDOG    0x00C70000   /* Watchdog Timer         */
#define __MMC2107_PIT1        0x00C80000   /* Programmable Interval Timer 1   */
#define __MMC2107_PIT2        0x00C90000   /* Programmable Interval Timer 2   */
#define __MMC2107_QADC64      0x00CA0000   /* ADC     */
#define __MMC2107_SPI         0x00CB0000   /* SPI     */
#define __MMC2107_SCI1        0x00CC0000   /* SCI 1   */
#define __MMC2107_SCI2        0x00CD0000   /* SCI 2   */
#define __MMC2107_CMFR_CTL    0x00D00000   /* Flash Registers  */
#define __MMC2107_AMD_FLASH   0x80000000   /* AMD Flash Array        */
#define __MMC2107_MMIO        0x817FFFFD   /* MMIO                   */

/* I/0 base addresses specific to PFB1200 Platform Board */
#define __PFB1200_DUART_EXT_CLK          1843200
#define __PFB1200_DUART_CHANNEL_A_OFFSET 0x00000020
#define __PFB1200_DUART_CHANNEL_B_OFFSET 0x00000000
#define __PFB1200_LCD_OFFSET             0x00000080
#define __PFB1200_EXT_LCD_OFFSET         0x000000C0
#define __MMC2107_CS3                    0x81800000 /* default PFB1200 CS */


#endif /* !defined(_PLIBDEFS_H) */


/*
    *_PARAM_CHECKING macros enable(1) or disable(0) parameter-checking 
    code included within the module-specific header files.
*/
#ifndef _PARAM_CHECK_H
#define _PARAM_CHECK_H

/* Parameter checking macros for MMC2107 MCU device drivers */
#define MOTO_FLASH_A_PARAM_CHECKING    1
#define PORT_A_PARAM_CHECKING          1
#define CCM_A_PARAM_CHECKING           1
#define CS_A_PARAM_CHECKING            1
#define PLL_B_PARAM_CHECKING           1
#define RESET_A_PARAM_CHECKING         1
#define ITCN_B_PARAM_CHECKING          1
#define EdgePort_B_PARAM_CHECKING      1
#define WATCHDOG_A_PARAM_CHECKING      1
#define PIT_B_PARAM_CHECKING           1
#define QADC64_A_PARAM_CHECKING        1
#define SPI_B_PARAM_CHECKING           1
#define SCI_D_PARAM_CHECKING           1
#define CORE_B_PARAM_CHECKING          1
#define AMD_FLASH_B_PARAM_CHECKING     1

/* Parameter checking macros for PFB1200 Platform Board device drivers */
#define LCD_A_PARAM_CHECKING	       1
#define DUART_A_PARAM_CHECKING         1

#endif /* ifndef _PARAM_CHECK_H */

⌨️ 快捷键说明

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