📄 lh7a400_map.h
字号:
/**********************************************************************
* $Workfile: LH7A400_map.h $
* $Revision: 1.21 $
* $Author: MaysR $
* $Date: Jun 20 2002 11:11:32 $
*
* Project: LH7A400
*
* Description:
* This file contains the Map of the LH7A400 System on Chip.
* This file depends on the include files which describe the
* specific modules on the LH7A400.
* This file is intended to be included by a target or board
* specific include file. Use the generic names in this file to
* define target specific constants in the target specific
* include file(s), or in the source files.
*
* References:
* (1) Sharp LH7A400 Universal SoC User's Guide
*
* Revision History:
* $Log: //smaicnt2/pvcs/VM/CHIPS/archives/SOC/LH7A400/Processor/LH7A400_map.h-arc $
*
* Rev 1.21 Jun 20 2002 11:11:32 MaysR
* Added SCI & ACI includes and definitions.
*
* Rev 1.20 Jun 19 2002 14:38:14 MaysR
* Added MMC to map file.
*
* Rev 1.19 Jun 17 2002 16:02:50 MaysR
* Added definitions for USB interface.
*
* Rev 1.18 Jun 07 2002 13:53:16 SuryanG
* Changed WDTIMER to WDT.
*
* Rev 1.17 Jun 05 2002 17:39:36 MaysR
* Moved interrupt bit defines to LH7A400_intc.h
*
* Rev 1.16 Jun 03 2002 11:31:58 MaysR
* Fixed incorrrect define for INTC_GPIO2INTR.
*
* Rev 1.15 May 21 2002 22:43:56 MealeyP
* Changed include file name from ARM922T_mmu.h to LH7A400_mmu.h.
* Removed extra spaces from DCDC_BASE definition. Added definition
* for constant WDTIMER_BASE.
*
* Rev 1.14 May 08 2002 14:57:20 BarnettH
* Changed SIR/IRDA definitions to use SIR_BASE
*
* Rev 1.13 Apr 02 2002 09:52:38 SuryanG
* Removed ARM core defines and included ARM_arch.h. Added
* legal disclaimer.
*
* Rev 1.12 Jan 11 2002 17:18:00 SuryanG
* Included AAC header file, changed AC97_BASE to AAC_BASE
* and added AAC structure pointer definition.
*
* Rev 1.11 Jan 04 2002 17:01:28 KovitzP
* added symbols INTC_ALL_FIQS, INTC_ALL_IRQS, and
* INTC_ALL_INTS
*
* Rev 1.10 Jan 02 2002 17:45:58 MaysR
* Added #include LH7A400_bmi.h
* Added Battery Monitor Interface definitions
*
* Rev 1.9 Nov 12 2001 17:29:42 KovitzP
* Added interrupt source bit # constants in addition to the
* existing interrupt mask register bit mask.
*
* Rev 1.8 Nov 08 2001 17:11:28 SuryanG
* Removed sharp_pwm.h and added LH7A400_dcdc.h.
* Removed the PWM defines and added DCDC define.
*
* Rev 1.7 Oct 04 2001 15:33:08 BarnettH
* Changed include file names.
*
* Rev 1.6 Oct 03 2001 16:22:36 BarnettH
* Changed dmac file to LH7A400 specific
* Changed ssp file to LH7A400 specific
* Changed lcdicp to LH7A400 specific
*
* Rev 1.5 Oct 02 2001 16:56:22 BarnettH
* Added lh7a400_uart.h
* Revised map to comply with LH7A400 UART/SIR
*
* Rev 1.4 Oct 02 2001 14:35:38 BarnettH
* Changed the SMC to lh7a400_smc.h
*
* Rev 1.3 Oct 02 2001 13:39:26 BarnettH
* Added lh7a400_clcdc.h
* Added LCDICP_BASE
* Moved _BIT,_SBF to SMA_types.h
*
* Rev 1.2 Sep 28 2001 15:14:44 BarnettH
* Added ARM Exception Vector Address Locations
*
* Rev 1.1 Sep 20 2001 19:39:14 BarnettH
* Added GPIO and KBD to map
*
* Rev 1.0 Sep 19 2001 10:14:38 BarnettH
* Initial revision.
*
* SHARP MICROELECTRONICS OF THE AMERICAS MAKES NO REPRESENTATION
* OR WARRANTIES WITH RESPECT TO THE PERFORMANCE OF THIS SOFTWARE,
* AND SPECIFICALLY DISCLAIMS ANY RESPONSIBILITY FOR ANY DAMAGES,
* SPECIAL OR CONSEQUENTIAL, CONNECTED WITH THE USE OF THIS SOFTWARE.
*
* SHARP MICROELECTRONICS OF THE AMERICAS PROVIDES THIS SOFTWARE SOLELY
* FOR THE PURPOSE OF SOFTWARE DEVELOPMENT INCORPORATING THE USE OF A
* SHARP MICROCONTROLLER OR SYSTEM-ON-CHIP PRODUCT. USE OF THIS SOURCE
* FILE IMPLIES ACCEPTANCE OF THESE CONDITIONS.
*
* COPYRIGHT (C) 2001 SHARP MICROELECTRONICS OF THE AMERICAS, INC.
* CAMAS, WA
*********************************************************************/
#ifndef LH7A400_MAP_H
#define LH7A400_MAP_H
#include "SMA_types.h"
#include "ARM_arch.h"
#include "LH7A400_aac.h"
#include "lh7A400_dmac.h"
#include "lh7A400_ssp.h"
#include "lh7A400_uart.h"
#include "lh7A400_smc.h"
#include "lh7A400_clcdc.h"
#include "lh7A400_gpio.h"
#include "lh7A400_rtc.h"
#include "lh7A400_sdramc.h"
#include "lh7A400_timer.h"
#include "lh7A400_intc.h"
#include "lh7A400_clksc.h"
#include "lh7A400_iocon.h"
#include "lh7A400_wdt.h"
#include "lh7A400_lcdicp.h"
#include "LH7A400_dcdc.h"
#include "LH7A400_mmu.h"
#include "LH7A400_bmi.h"
#include "LH7A400_usb.h"
#include "LH7A400_mmc.h"
#include "LH7A400_aci.h"
#include "LH7A400_sci.h"
/**********************************************************************
* AHB BASES
*********************************************************************/
#define AHB_BASE (0x80002000)
#define SMC_REGS_BASE (AHB_BASE)
#define SDRAM_REGS_BASE (AHB_BASE + 0x400)
#define DMA_REGS_BASE (AHB_BASE + 0x800)
#define LCD_BASE (AHB_BASE + 0x1000)
/**********************************************************************
* APB BASES
*********************************************************************/
#define APB_BASE (0x80000000)
#define AAC_BASE (APB_BASE)
#define MMC_BASE (APB_BASE + 0x0100)
#define USB_BASE (APB_BASE + 0x0200)
#define SCI_BASE (APB_BASE + 0x0300)
#define CLKSC_BASE (APB_BASE + 0x0400)
#define INTC_BASE (APB_BASE + 0x0500)
#define UART1_BASE (APB_BASE + 0x0600)
#define SIR_BASE (APB_BASE + 0x0600)
#define UART2_BASE (APB_BASE + 0x0700)
#define UART3_BASE (APB_BASE + 0x0800)
#define DCDC_BASE (APB_BASE + 0x0900)
#define ACI_BASE (APB_BASE + 0x0A00)
#define SSP_BASE (APB_BASE + 0x0B00)
#define TIMER1_BASE (APB_BASE + 0x0C00)
#define TIMER2_BASE (APB_BASE + 0x0C20)
#define TIMER3_BASE (APB_BASE + 0x0C80)
#define BZCONT_BASE (APB_BASE + 0x0C40)
#define RTC_BASE (APB_BASE + 0x0D00)
#define GPIO_BASE (APB_BASE + 0x0E00)
#define KBD_BASE (APB_BASE + 0x0E00)
#define BMISWI_BASE (APB_BASE + 0x0F00)
#define BMISBI_BASE (APB_BASE + 0x0F40)
#define LCDICP_BASE (APB_BASE + 0x1000)
#define WDTIMER_BASE (APB_BASE + 0x1400)
/**********************************************************************
* SMC Memory Bank Address Space Bases
*********************************************************************/
#if BOOTMODE == 1
#define SMC_CS0_BASE (0x00000000)
#else
#define SMC_CS0_BASE (0xF0000000)
#endif
#define SMC_CS1_BASE (0x10000000)
#define SMC_CS2_BASE (0x20000000)
#define SMC_CS3_BASE (0x30000000)
#define SMC_CS6_BASE (0x60000000)
#define SMC_CS7_BASE (0x70000000)
/**********************************************************************
* SDRAMC Memory Bank Address Space Bases
*********************************************************************/
#define SDRAM_SDCE0_BASE (0xC0000000)
#define SDRAM_SDCE1_BASE (0xD0000000)
#define SDRAM_SDCE2_BASE (0xE0000000)
//#if BOOTMODE == 1
#define SDRAM_SDCE3_BASE (0xF0000000)
//#else
//#define SDRAM_SDCE3_BASE (0x00000000)
//#endif
/**********************************************************************
* Clock and State Controller
*********************************************************************/
#define CLKSC ((CLKSCREGS *)(CLKSC_BASE))
/**********************************************************************
* Interrupt Controller
*********************************************************************/
#define INTC ((INTCREGS *)(INTC_BASE))
/**********************************************************************
* Static Memory Controller (SMC)
*********************************************************************/
#define SMC ((SMCREGS *)(SMC_REGS_BASE))
/**********************************************************************
* SDRAM Controller (SDRAM)
*********************************************************************/
#define SDRAM ((SDRAMREGS *)(SDRAM_REGS_BASE))
/**********************************************************************
* DMA Controller (DMAC)
*********************************************************************/
#define DMAC ((DMACREGS *)(DMA_REGS_BASE))
/**********************************************************************
* Advanced Audio Codec Controller (AAC)
*********************************************************************/
#define AAC ((AACREGS *)(AAC_BASE))
/**********************************************************************
* Color LCD Controller (CLCDC)
*********************************************************************/
#define CLCDC ((CLCDCREGS *)(LCD_BASE))
/**********************************************************************
* LCD Interface Control Processor (LCDICP)
*********************************************************************/
#define LCDICP ((LCDICPREGS *)(LCDICP_BASE))
/**********************************************************************
* UART'S
*********************************************************************/
#define UART1 ((UARTREGS *)(UART1_BASE))
#define UART2 ((UARTREGS *)(UART2_BASE))
#define UART3 ((UARTREGS *)(UART3_BASE))
/**********************************************************************
* SIR/IRDA
*********************************************************************/
#define IRDA ((UARTREGS *)(SIR_BASE))
#define SIR ((UARTREGS *)(SIR_BASE))
/**********************************************************************
* DC-DC Converter (DCDC)
*********************************************************************/
#define DCDC ((DCDCREGS *)(DCDC_BASE))
/**********************************************************************
* TIMER
*********************************************************************/
#define TIMER1 ((TIMERREGS *)(TIMER1_BASE))
#define TIMER2 ((TIMERREGS *)(TIMER2_BASE))
#define TIMER3 ((TIMERREGS *)(TIMER3_BASE))
#define BZCONT ((BZCONTREGS *)(BZCONT_BASE))
/**********************************************************************
* Synchronous Serial Port (SSP)
*********************************************************************/
#define SSP ((SSPREGS *)(SSP_BASE))
/**********************************************************************
* General Purpose Input/Output (GPIO)
*********************************************************************/
#define GPIO ((GPIOREGS *)(GPIO_BASE))
/**********************************************************************
* Keyboard (KBD)
*********************************************************************/
#define KBD ((GPIOREGS *)(KBD_BASE))
/**********************************************************************
* Real Time Clock (RTC)
*********************************************************************/
#define RTC ((RTCREGS *)(RTC_BASE))
/**********************************************************************
* Watchdog Timer (WDTIMER)
*********************************************************************/
#define WDT ((WDTIMERREGS *)(WDTIMER_BASE))
/**********************************************************************
* IOCON
*********************************************************************/
#define IOCON ((IOCONREGS *)(IOCON_BASE))
/**********************************************************************
* Battery Monitor Interface (BMI) :
* Single Wire Interface (SWI) & Smart Battery Interface (SBI)
*********************************************************************/
#define BMISWI ((SWIREGS *)(BMISWI_BASE))
#define BMISBI ((SBIREGS *)(BMISBI_BASE))
/***********************************************************************
* Universal Serial Bus (USB)
***********************************************************************/
#define USB ((USBREGS *)(USB_BASE))
/***********************************************************************
* Multi-Media Card (MMC)
***********************************************************************/
#define MMC ((MMCREGS *)(MMC_BASE))
/***********************************************************************
* Smart Card Interface (SCI)
***********************************************************************/
#define SCI ((SCIREGS *)(SCI_BASE))
/***********************************************************************
* Audio Codec Interface (ACI)
***********************************************************************/
#define ACI ((ACIREGS *)(ACI_BASE))
#endif /* LH7A400_MAP_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -