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

📄 c33l11.h

📁 The combined demo is dedicated for S1C33L05, so DMT33L05 should be used to load and run the demo. F
💻 H
📖 第 1 页 / 共 2 页
字号:
#define	IO_P62_DAT			(g_Misc->Port.P6xDat.bit.P62)
#define	IO_P63_DAT			(g_Misc->Port.P6xDat.bit.P63)

#define	IO_P00_CTL			(g_Io0->Port.P0xCtl.bit.P00)
#define	IO_P01_CTL			(g_Io0->Port.P0xCtl.bit.P01)
#define	IO_P02_CTL			(g_Io0->Port.P0xCtl.bit.P02)
#define	IO_P03_CTL			(g_Io0->Port.P0xCtl.bit.P03)
#define	IO_P04_CTL			(g_Io0->Port.P0xCtl.bit.P04)
#define	IO_P05_CTL			(g_Io0->Port.P0xCtl.bit.P05)
#define	IO_P06_CTL			(g_Io0->Port.P0xCtl.bit.P06)
#define	IO_P07_CTL			(g_Io0->Port.P0xCtl.bit.P07)
#define	IO_P10_CTL			(g_Io0->Port.P1xCtl.bit.P10)
#define	IO_P11_CTL			(g_Io0->Port.P1xCtl.bit.P11)
#define	IO_P12_CTL			(g_Io0->Port.P1xCtl.bit.P12)
#define	IO_P13_CTL			(g_Io0->Port.P1xCtl.bit.P13)
#define	IO_P14_CTL			(g_Io0->Port.P1xCtl.bit.P14)
#define	IO_P15_CTL			(g_Io0->Port.P1xCtl.bit.P15)
#define	IO_P16_CTL			(g_Io0->Port.P1xCtl.bit.P16)
#define	IO_P17_CTL			(g_Io0->Port.P1xCtl.bit.P17)
#define	IO_P20_CTL			(g_Io0->Port.P2xCtl.bit.P20)
#define	IO_P21_CTL			(g_Io0->Port.P2xCtl.bit.P21)
#define	IO_P22_CTL			(g_Io0->Port.P2xCtl.bit.P22)
#define	IO_P23_CTL			(g_Io0->Port.P2xCtl.bit.P23)
#define	IO_P24_CTL			(g_Io0->Port.P2xCtl.bit.P24)
#define	IO_P25_CTL			(g_Io0->Port.P2xCtl.bit.P25)
#define	IO_P26_CTL			(g_Io0->Port.P2xCtl.bit.P26)
#define	IO_P27_CTL			(g_Io0->Port.P2xCtl.bit.P27)
#define	IO_P30_CTL			(g_Io0->Port.P3xCtl.bit.P30)
#define	IO_P31_CTL			(g_Io0->Port.P3xCtl.bit.P31)
#define	IO_P32_CTL			(g_Io0->Port.P3xCtl.bit.P32)
#define	IO_P33_CTL			(g_Io0->Port.P3xCtl.bit.P33)
#define	IO_P34_CTL			(g_Io0->Port.P3xCtl.bit.P34)
#define	IO_P35_CTL			(g_Io0->Port.P3xCtl.bit.P35)
#define	IO_P36_CTL			(g_Io0->Port.P3xCtl.bit.P36)
#define	IO_P37_CTL			(g_Io0->Port.P3xCtl.bit.P37)
#define	IO_P40_CTL			(g_Misc->Port.P4xCtl.bit.P40)
#define	IO_P41_CTL			(g_Misc->Port.P4xCtl.bit.P41)
#define	IO_P42_CTL			(g_Misc->Port.P4xCtl.bit.P42)
#define	IO_P43_CTL			(g_Misc->Port.P4xCtl.bit.P43)
#define	IO_P44_CTL			(g_Misc->Port.P4xCtl.bit.P44)
#define	IO_P45_CTL			(g_Misc->Port.P4xCtl.bit.P45)
#define	IO_P46_CTL			(g_Misc->Port.P4xCtl.bit.P46)
#define	IO_P47_CTL			(g_Misc->Port.P4xCtl.bit.P47)
#define	IO_P50_CTL			(g_Misc->Port.P5xCtl.bit.P50)
#define	IO_P51_CTL			(g_Misc->Port.P5xCtl.bit.P51)
#define	IO_P52_CTL			(g_Misc->Port.P5xCtl.bit.P52)
#define	IO_P53_CTL			(g_Misc->Port.P5xCtl.bit.P53)
#define	IO_P54_CTL			(g_Misc->Port.P5xCtl.bit.P54)
#define	IO_P55_CTL			(g_Misc->Port.P5xCtl.bit.P55)
#define	IO_P60_CTL			(g_Misc->Port.P6xCtl.bit.P60)
#define	IO_P61_CTL			(g_Misc->Port.P6xCtl.bit.P61)
#define	IO_P62_CTL			(g_Misc->Port.P6xCtl.bit.P62)
#define	IO_P63_CTL			(g_Misc->Port.P6xCtl.bit.P63)

/* SmartMedia Contoroler (Sm) */
#define	IO_SMT_CE_SEL		(g_Misc->Sm.Ctl.bit.CeSel)


/****************************************************************************
 * Peripheral macro definition												*
 ****************************************************************************/

/* SPI module (Spi) */

/*-[]-------------------------------------------------------------------*/
/*	SPI16bit		*/
/*	GNU33 	*/
/*	( short )			*/
/*--------------------------------------------------------------------------*/
#define	SPI_RXD				(g_Spi->RxD.hw)
#define	SPI_TXD				(g_Spi->TxD.hw)
#define	SPI_CTL				(g_Spi->Ctl1.hw)
#define	SPI_WAIT			(g_Spi->Wait.hw)
#define	SPI_STAT			(g_Spi->Stat.hw)
#define	SPI_INT				(g_Spi->Int.hw)


// 
// 
// ()

/* Prescaler (PSC) */
#define	IO_PSC_T8SEL4_5	((volatile unsigned char *)0x0040140)
#define	IO_PSC_T8CTL4_5	((volatile unsigned char *)0x0040145)
#define	IO_PSC_T8SEL0_3	((volatile unsigned char *)0x0040146)
#define	IO_PSC_T16CTL0	((volatile unsigned char *)0x0040147)
#define	IO_PSC_T16CTL1	((volatile unsigned char *)0x0040148)
#define	IO_PSC_T16CTL2	((volatile unsigned char *)0x0040149)
#define	IO_PSC_T16CTL3	((volatile unsigned char *)0x004014A)
#define	IO_PSC_T16CTL4	((volatile unsigned char *)0x004014B)
#define	IO_PSC_T16CTL5	((volatile unsigned char *)0x004014C)
#define	IO_PSC_T8CTL0_1	((volatile unsigned char *)0x004014D)
#define	IO_PSC_T8CTL2_3	((volatile unsigned char *)0x004014E)

/* Clock Timer Controler (CLK) */

#define	IO_CLK_RUNSTOP	((volatile unsigned char *)0x0040151)
#define	IO_CLK_CTL		((volatile unsigned char *)0x0040151)
#define	IO_CLK_DIV		((volatile unsigned char *)0x0040153)
#define	IO_CLK_SEC		((volatile unsigned char *)0x0040154)
#define	IO_CLK_MIN		((volatile unsigned char *)0x0040155)
#define	IO_CLK_HOUR		((volatile unsigned char *)0x0040156)
#define	IO_CLK_DAY_L	((volatile unsigned char *)0x0040157)
#define	IO_CLK_DAY_H	((volatile unsigned char *)0x0040158)
#define	IO_CLK_ALM_MIN	((volatile unsigned char *)0x0040159)
#define	IO_CLK_ALM_HOUR	((volatile unsigned char *)0x004015a)
#define	IO_CLK_ALM_DAY	((volatile unsigned char *)0x004015b)

/* 8bit Timer Controler (TM8) */

#define	IO_TM8_CTL0		((volatile unsigned char *)0x0040160)
#define	IO_TM8_RLD0		((volatile unsigned char *)0x0040161)
#define	IO_TM8_CNT0		((volatile unsigned char *)0x0040162)
#define	IO_TM8_CTL1		((volatile unsigned char *)0x0040164)
#define	IO_TM8_RLD1		((volatile unsigned char *)0x0040165)
#define	IO_TM8_CNT1		((volatile unsigned char *)0x0040166)
#define	IO_TM8_CTL2		((volatile unsigned char *)0x0040168)
#define	IO_TM8_RLD2		((volatile unsigned char *)0x0040169)
#define	IO_TM8_CNT2		((volatile unsigned char *)0x004016a)
#define	IO_TM8_CTL3		((volatile unsigned char *)0x004016c)
#define	IO_TM8_RLD3		((volatile unsigned char *)0x004016d)
#define	IO_TM8_CNT3		((volatile unsigned char *)0x004016e)
#define	IO_TM8_CTL4		((volatile unsigned char *)0x0040174)
#define	IO_TM8_RLD4		((volatile unsigned char *)0x0040175)
#define	IO_TM8_CNT4		((volatile unsigned char *)0x0040176)
#define	IO_TM8_CTL5		((volatile unsigned char *)0x0040178)
#define	IO_TM8_RLD5		((volatile unsigned char *)0x0040179)
#define	IO_TM8_CNT5		((volatile unsigned char *)0x004017a)

/* Watch Dog Timer Controler (WDT) */

#define	IO_WDT_PROTECT	((volatile unsigned char *)0x0040170)
#define	IO_WDT_EN		((volatile unsigned char *)0x0040171)

/* Clock Generator (CLG) */
#define	IO_CLG_POWCTL	((volatile unsigned char *)0x0040180)
#define	IO_CLG_PSCSEL	((volatile unsigned char *)0x0040181)
#define	IO_CLG_CLKOPT	((volatile unsigned char *)0x0040190)
#define	IO_CLG_POWCTLPT	((volatile unsigned char *)0x004019E)

/* Serial I/F Controler (SIO) */

/* A/D Converter Controler (ADC) */

/* Interrupt Controler (ITC) */
#define	IO_ITC_P0_1_LV		((volatile unsigned char *)0x0040260)
#define	IO_ITC_P2_3_LV		((volatile unsigned char *)0x0040261)
#define	IO_ITC_K0_1_LV		((volatile unsigned char *)0x0040262)
#define	IO_ITC_HSDMA0_1_LV	((volatile unsigned char *)0x0040263)
#define	IO_ITC_HSDMA2_3_LV	((volatile unsigned char *)0x0040264)
#define	IO_ITC_IDMA_LV		((volatile unsigned char *)0x0040265)
#define	IO_ITC_TM16_0_1_LV	((volatile unsigned char *)0x0040266)
#define	IO_ITC_TM16_2_3_LV	((volatile unsigned char *)0x0040267)
#define	IO_ITC_TM16_4_5_LV	((volatile unsigned char *)0x0040268)
#define	IO_ITC_TM8_SIO0_LV	((volatile unsigned char *)0x0040269)
#define	IO_ITC_SIO1_AD_LV	((volatile unsigned char *)0x004026a)
#define	IO_ITC_CLK_LV		((volatile unsigned char *)0x004026b)
#define	IO_ITC_P4_5_LV		((volatile unsigned char *)0x004026c)
#define	IO_ITC_P6_7_LV		((volatile unsigned char *)0x004026d)

#define	IO_ITC_P_K_EN		((volatile unsigned char *)0x0040270)
#define	IO_ITC_DMA_EN		((volatile unsigned char *)0x0040271)
#define	IO_ITC_TM16_0_1_EN	((volatile unsigned char *)0x0040272)
#define	IO_ITC_TM16_2_3_EN	((volatile unsigned char *)0x0040273)
#define	IO_ITC_TM16_4_5_EN	((volatile unsigned char *)0x0040274)
#define	IO_ITC_TM8_EN		((volatile unsigned char *)0x0040275)
#define	IO_ITC_SIO_EN		((volatile unsigned char *)0x0040276)
#define	IO_ITC_AD_CLK_P_EN	((volatile unsigned char *)0x0040277)

#define	IO_ITC_P_K_F		((volatile unsigned char *)0x0040280)
#define	IO_ITC_DMA_F		((volatile unsigned char *)0x0040281)
#define	IO_ITC_TM16_0_1_F	((volatile unsigned char *)0x0040282)
#define	IO_ITC_TM16_2_3_F	((volatile unsigned char *)0x0040283)
#define	IO_ITC_TM16_4_5_F	((volatile unsigned char *)0x0040284)
#define	IO_ITC_TM8_F		((volatile unsigned char *)0x0040285)
#define	IO_ITC_SIO_F		((volatile unsigned char *)0x0040286)
#define	IO_ITC_AD_CLK_P_F	((volatile unsigned char *)0x0040287)

#define	IO_ITC_SPI_LV	((volatile unsigned char *)0x00402a3)
#define	IO_ITC_SPI_EN	((volatile unsigned char *)0x00402a6)
#define	IO_ITC_SPI_STAT	((volatile unsigned char *)0x00402a9)

/* IDMA Controler (IDMA) */

/* Key Controler (KYC) */
#define	IO_K5x_CFK		((volatile unsigned char *)0x00402C0)
#define	IO_K5x_D		((volatile unsigned char *)0x00402C1)
#define	IO_K6x_CFK		((volatile unsigned char *)0x00402C3)
#define	IO_K6x_D		((volatile unsigned char *)0x00402C4)

/* Port Controler (PTC) */
#define	IO_P0x_CFP		((volatile unsigned char *)0x00402d0)
#define	IO_P0x_D		((volatile unsigned char *)0x00402d1)
#define	IO_P0x_IOC		((volatile unsigned char *)0x00402d2)

#define	IO_P1x_CFP		((volatile unsigned char *)0x00402d4)
#define	IO_P1x_D		((volatile unsigned char *)0x00402d5)
#define	IO_P1x_IOC		((volatile unsigned char *)0x00402d6)
#define	IO_SIO3_SEL		((volatile unsigned char *)0x00402d7)
#define	IO_P2x_CFP		((volatile unsigned char *)0x00402d8)
#define	IO_P2x_D		((volatile unsigned char *)0x00402d9)
#define	IO_P2x_IOC		((volatile unsigned char *)0x00402da)
#define	IO_SIO2_SEL		((volatile unsigned char *)0x00402db)
#define	IO_P3x_CFP		((volatile unsigned char *)0x00402dc)
#define	IO_P3x_D		((volatile unsigned char *)0x00402dd)
#define	IO_P3x_IOC		((volatile unsigned char *)0x00402de)
#define	IO_Pxx_CFEX		((volatile unsigned char *)0x00402df)

/* Bus Controler (BCU) */
#define	IO_BCU_A18_15	((volatile unsigned short *)0x0048120)
#define IO_BCU_A14_13	((volatile unsigned short *)0x0048122)
#define IO_BCU_A12_11	((volatile unsigned short *)0x0048124)
#define IO_BCU_A10_9	((volatile unsigned short *)0x0048126)
#define IO_BCU_A8_7		((volatile unsigned short *)0x0048128)
#define IO_BCU_A6_4		((volatile unsigned short *)0x004812a)
#define IO_BCU_BUSCTL	((volatile unsigned short *)0x004812e)

#define	IO_DRAM_CTL		((volatile unsigned short *)0x0048130)
#define	IO_AREA_CTL		((volatile unsigned short *)0x0048132)
#define	IO_TTBR			((volatile unsigned long *)0x0048134)
#define	IO_GA_SGN_CTL	((volatile unsigned short *)0x0048136)
#define	IO_BCLK_SEL		((volatile unsigned short *)0x004813a)
#define	IO_AREA_RH		((volatile unsigned char *)0x004813c)
#define	IO_AREA_SPD		((volatile unsigned char *)0x004813e)


/* 16bit Timer Controler (TM16) */

/* IDMA Controler (IDMA) */

/* HSDMA Controler (HSDMA) */


/* Infomation Register (INFO) */
#define	IO_INFO_CORE	((volatile unsigned char *)0x0300000)
#define	IO_INFO_MFCT	((volatile unsigned char *)0x0300001)
#define	IO_INFO_NAME	((volatile unsigned char *)0x0300002)
#define	IO_AREA_VER		((volatile unsigned char *)0x0300003)

/* Extend Port Controler (EXPTC) */
#define	IO_P4x_D		((volatile unsigned char *)0x0300020)
#define	IO_P4x_IOC		((volatile unsigned char *)0x0300021)
#define	IO_P5x_D		((volatile unsigned char *)0x0300022)
#define	IO_P5x_IOC		((volatile unsigned char *)0x0300023)
#define	IO_P6x_D		((volatile unsigned char *)0x0300024)
#define	IO_P6x_IOC		((volatile unsigned char *)0x0300025)

#define	IO_P0xL_EFP		((volatile unsigned char *)0x0300040)
#define	IO_P0xH_EFP		((volatile unsigned char *)0x0300041)
#define	IO_P1xL_EFP		((volatile unsigned char *)0x0300042)
#define	IO_P1xH_EFP		((volatile unsigned char *)0x0300043)
#define	IO_P2xL_EFP		((volatile unsigned char *)0x0300044)
#define	IO_P2xH_EFP		((volatile unsigned char *)0x0300045)
#define	IO_P3xL_EFP		((volatile unsigned char *)0x0300046)
#define	IO_P3xH_EFP		((volatile unsigned char *)0x0300047)
#define	IO_P4xL_EFP		((volatile unsigned char *)0x0300048)
#define	IO_P4xH_EFP		((volatile unsigned char *)0x0300049)
#define	IO_P5xL_EFP		((volatile unsigned char *)0x030004A)
#define	IO_P5xH_EFP		((volatile unsigned char *)0x030004b)
#define	IO_P6xL_EFP		((volatile unsigned char *)0x030004c)
#define	IO_P6xH_EFP		((volatile unsigned char *)0x030004d)

#define	IO_SMT_CE		((volatile unsigned char *)0x0300100)


/* SPI Controler (SPI) */
#define	IO_SPI_RDX		((volatile unsigned short *)0x03a0000)
#define	IO_SPI_TDX		((volatile unsigned short *)0x03a0002)
#define	IO_SPI_CTL1		((volatile unsigned short *)0x03a0004)
#define	IO_SPI_CTL2		((volatile unsigned short *)0x03a0006)
#define	IO_SPI_WAIT		((volatile unsigned short *)0x03a0008)
#define	IO_SPI_STAT		((volatile unsigned short *)0x03a000a)
#define	IO_SPI_INT		((volatile unsigned short *)0x03a000c)

#endif	C33L11_H
/**** End of file ***********************************************************/

⌨️ 快捷键说明

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