📄 sh7750.h
字号:
/* sh7750.h: Register definitions for Hitachi SH4(SH7750) * * Copyright (C) 2001 KOMORIYA Takeru * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the file "GPL" for more details. * * Contact to author: * KOMORIYA Takeru, AAF Sendai Lab., Japan * E-mail: komoriya@chmodx.dyndns.org * URL: http://chmodx.dyndns.org/aaf/ */#ifndef _SH7750_H#define _SH7750_H/* CCN */#define PTEH (*(volatile unsigned int *)0xff000000)#define PTEL (*(volatile unsigned int *)0xff000004)#define TTB (*(volatile unsigned int *)0xff000008)#define TEA (*(volatile unsigned int *)0xff00000c)#define MMUCR (*(volatile unsigned int *)0xff000010)#define BASRA (*(volatile unsigned char *)0xff000014)#define BASRB (*(volatile unsigned char *)0xff000018)#define CCR (*(volatile unsigned int *)0xff00001c)#define TRA (*(volatile unsigned int *)0xff000020)#define EXPEVT (*(volatile unsigned int *)0xff000024)#define INTEVT (*(volatile unsigned int *)0xff000028)#define PTEA (*(volatile unsigned int *)0xff000034)#define QACR0 (*(volatile unsigned int *)0xff000038)#define QACR1 (*(volatile unsigned int *)0xff00003c)/* UBC */#define BARA (*(volatile unsigned int *)0xff200000)#define BAMRA (*(volatile unsigned char *)0xff200004)#define BBRA (*(volatile unsigned short *)0xff200008)#define BARB (*(volatile unsigned int *)0xff20000c)#define BAMRB (*(volatile unsigned char *)0xff200010)#define BBRB (*(volatile unsigned short *)0xff200014)#define BDRB (*(volatile unsigned int *)0xff200018)#define BDMRB (*(volatile unsigned int *)0xff20001c)#define BRCR (*(volatile unsigned short *)0xff200020)/* BSC */#define BCR1 (*(volatile unsigned int *)0xff800000)#define BCR2 (*(volatile unsigned short *)0xff800004)#define WCR1 (*(volatile unsigned int *)0xff800008)#define WCR2 (*(volatile unsigned int *)0xff80000c)#define WCR3 (*(volatile unsigned int *)0xff800010)#define MCR (*(volatile unsigned int *)0xff800014)#define PCR (*(volatile unsigned short *)0xff800018)#define RTCSR (*(volatile unsigned short *)0xff80001c)#define RTCNT (*(volatile unsigned short *)0xff800020)#define RTCOR (*(volatile unsigned short *)0xff800024)#define RFCR (*(volatile unsigned short *)0xff800028)#define PCTRA (*(volatile unsigned int *)0xff80002c)#define PDTRA (*(volatile unsigned short *)0xff800030)#define PCTRB (*(volatile unsigned int *)0xff800040)#define PDTRB (*(volatile unsigned short *)0xff800044)#define GPIOIC (*(volatile unsigned short *)0xff800048)#define SDMR2 (*(volatile unsigned char *)0xff900000)#define SDMR3 (*(volatile unsigned char *)0xff940000)/* DMAC */#define SAR0 (*(volatile unsigned int *)0xffa00000)#define DAR0 (*(volatile unsigned int *)0xffa00004)#define DMATCR0 (*(volatile unsigned int *)0xffa00008)#define CHCR0 (*(volatile unsigned int *)0xffa0000c)#define SAR1 (*(volatile unsigned int *)0xffa00010)#define DAR1 (*(volatile unsigned int *)0xffa00014)#define DMATCR1 (*(volatile unsigned int *)0xffa00018)#define CHCR1 (*(volatile unsigned int *)0xffa0001c)#define SAR2 (*(volatile unsigned int *)0xffa00020)#define DAR2 (*(volatile unsigned int *)0xffa00024)#define DMATCR2 (*(volatile unsigned int *)0xffa00028)#define CHCR2 (*(volatile unsigned int *)0xffa0002c)#define SAR3 (*(volatile unsigned int *)0xffa00030)#define DAR3 (*(volatile unsigned int *)0xffa00034)#define DMATCR3 (*(volatile unsigned int *)0xffa00038)#define CHCR3 (*(volatile unsigned int *)0xffa0003c)#define DMAOR (*(volatile unsigned int *)0xffa00040)/* CPG */#define FRQCR (*(volatile unsigned short *)0xffc00000)#define STBCR (*(volatile unsigned char *)0xffc00004)#define WTCNT_W (*(volatile unsigned short *)0xffc00008)#define WTCNT_R (*(volatile unsigned char *)0xffc00008)#define WTCSR_W (*(volatile unsigned short *)0xffc0000c)#define WTCSR_R (*(volatile unsigned char *)0xffc0000c)#define STBCR2 (*(volatile unsigned char *)0xffc00010)/* RTC */#define R64CNT (*(volatile unsigned char *)0xffc80000)#define RSECCNT (*(volatile unsigned char *)0xffc80004)#define RMINCNT (*(volatile unsigned char *)0xffc80008)#define RHRCNT (*(volatile unsigned char *)0xffc8000c)#define RWKCNT (*(volatile unsigned char *)0xffc80010)#define RDAYCNT (*(volatile unsigned char *)0xffc80014)#define RMONCNT (*(volatile unsigned char *)0xffc80018)#define RYRCNT (*(volatile unsigned short *)0xffc8001c)#define RSECAR (*(volatile unsigned char *)0xffc80020)#define RMINAR (*(volatile unsigned char *)0xffc80024)#define RHRAR (*(volatile unsigned char *)0xffc80028)#define RWKAR (*(volatile unsigned char *)0xffc8002c)#define RDAYAR (*(volatile unsigned char *)0xffc80030)#define RMONAR (*(volatile unsigned char *)0xffc80034)#define RCR1 (*(volatile unsigned char *)0xffc80038)#define RCR2 (*(volatile unsigned char *)0xffc8003c)/* INTC */#define ICR (*(volatile unsigned short *)0xffd00000)#define IPRA (*(volatile unsigned short *)0xffd00004)#define IPRB (*(volatile unsigned short *)0xffd00008)#define IPRC (*(volatile unsigned short *)0xffd0000c)/* TMU */#define TOCR (*(volatile unsigned char *)0xffd80000)#define TSTR (*(volatile unsigned char *)0xffd80004)#define TCOR0 (*(volatile unsigned int *)0xffd80008)#define TCNT0 (*(volatile unsigned int *)0xffd8000c)#define TCR0 (*(volatile unsigned short *)0xffd80010)#define TCOR1 (*(volatile unsigned int *)0xffd80014)#define TCNT1 (*(volatile unsigned int *)0xffd80018)#define TCR1 (*(volatile unsigned short *)0xffd8001c)#define TCOR2 (*(volatile unsigned int *)0xffd80020)#define TCNT2 (*(volatile unsigned int *)0xffd80024)#define TCR2 (*(volatile unsigned short *)0xffd80028)#define TCPR2 (*(volatile unsigned int *)0xffd8002c)/* SCI */#define SCSMR1 (*(volatile unsigned char *)0xffe00000)#define SCBRR1 (*(volatile unsigned char *)0xffe00004)#define SCSCR1 (*(volatile unsigned char *)0xffe00008)#define SCTDR1 (*(volatile unsigned char *)0xffe0000c)#define SCSSR1 (*(volatile unsigned char *)0xffe00010)#define SCRDR1 (*(volatile unsigned char *)0xffe00014)#define SCSCMR1 (*(volatile unsigned char *)0xffe00018)#define SCSPTR1 (*(volatile unsigned char *)0xffe0001c)/* SCIF */#define SCSMR2 (*(volatile unsigned short *)0xffe80000)#define SCBRR2 (*(volatile unsigned char *)0xffe80004)#define SCSCR2 (*(volatile unsigned short *)0xffe80008)#define SCFTDR2 (*(volatile unsigned char *)0xffe8000c)#define SCFSR2 (*(volatile unsigned short *)0xffe80010)#define SCFRDR2 (*(volatile unsigned char *)0xffe80014)#define SCFCR2 (*(volatile unsigned short *)0xffe80018)#define SCFDR2 (*(volatile unsigned short *)0xffe8001c)#define SCSPTR2 (*(volatile unsigned short *)0xffe80020)#define SCLSR2 (*(volatile unsigned short *)0xffe80024)/* Hitachi-UDI */#define SDIR (*(volatile unsigned short *)0xfff00000)#define SDDR (*(volatile unsigned int *)0xfff00008)#endif /* _SH7750_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -