📄 tvp9000.h
字号:
/*********************************************************************
* Property of Texas Instruments Incorporated, Copyright 2004
* All rights reserved
**********************************************************************/
/*********************************************************************
*
* Description:
* public include file for all modules
*
**********************************************************************/
#ifndef TVP9000_DOT_H_IS_DEFINED
#define TVP9000_DOT_H_IS_DEFINED
// TVP9000 FW base memory map
#if !defined (TVP_ITCM_LOAD_ADDR)
#define TVP_ITCM_LOAD_ADDR 0x0 // Physical base of TCM Instruction
#endif
#if !defined (TVP_DTCM_LOAD_ADDR)
#define TVP_DTCM_LOAD_ADDR 0x00008000 // Physical base of TCM Data
#endif
#if !defined (TVP_DDR_LOAD_ADDR)
#define TVP_DDR_LOAD_ADDR 0x10000000 // Physical base of SDRAM
#endif
// TVP9000 HW base address memory map
#if !defined (TVP_BOOT_BASE)
#define TVP_BOOT_BASE (volatile unsigned long*)(0xFFFF0000) // 4kb boot page in memory
#endif
#if !defined (TVP_ITCM_BASE)
#define TVP_ITCM_BASE (volatile unsigned long*)(0x0)
#endif
#if !defined (TVP_DTCM_BASE)
#define TVP_DTCM_BASE (volatile unsigned long*)(0x00008000)
#endif
#if !defined (TVP_IO_BASE)
#define TVP_IO_BASE ((unsigned int)0)
#endif
#define TVP_EBI_CONFIG_BASE (volatile unsigned long*)(TVP_IO_BASE+0x00010000)
#define TVP_SYS_CONFIG_BASE (volatile unsigned long*)(TVP_IO_BASE+0x00020000)
#define TVP_WD_TIMER_BASE (TVP_SYS_CONFIG_BASE+0x100) // 0x00020400
#define TVP_CCP_BASE (volatile unsigned long*)(TVP_IO_BASE+0x00030000)
#define TVP_IRRF_0_BASE (TVP_CCP_BASE+0x0) // 0x00030000
#define TVP_IRRF_1_BASE (TVP_CCP_BASE+0x0800) // 0x00032000
#define TVP_SMRT_BASE (TVP_CCP_BASE+0x0a00) // 0x00032800
#define TVP_I2C_0_BASE (TVP_CCP_BASE+0x1000) // 0x00034000
#define TVP_I2C_1_BASE (TVP_CCP_BASE+0x1020) // 0x00034080
#define TVP_TIMER0_BASE (TVP_CCP_BASE+0x1060) // 0x00034180
#define TVP_TIMER1_BASE (TVP_CCP_BASE+0x1080) // 0x00034200
#define TVP_TIMER2_BASE (TVP_CCP_BASE+0x10a0) // 0x00034280
#define TVP_UART_BASE (TVP_CCP_BASE+0x10c0) // 0x00034300
#define TVP_UART0_BASE (TVP_CCP_BASE+0x10c0) // 0x00034300
#define TVP_UART1_BASE (TVP_CCP_BASE+0x10d0) // 0x00034340
#define TVP_GPIO_BASE (TVP_CCP_BASE+0x10f0) // 0x000343c0
#define TVP_TPP_BASE (volatile unsigned long*)(TVP_IO_BASE+0x00040000)
#define TVP_ENCODER_BASE (volatile unsigned long*)(TVP_IO_BASE+0x00050000) // 2kb video encoder
#define TVP_OSD_BASE (volatile unsigned long*)(TVP_IO_BASE+0x00060000) // 64kb OSD
#define TVP_SUNDIAL_BASE (volatile unsigned long*)(TVP_IO_BASE+0x00100000)
#define TVP_MI_BASE (volatile unsigned long*)(TVP_IO_BASE+0x00100000) // MI
#define TVP_PS_BASE (volatile unsigned long*)(TVP_IO_BASE+0x00110000) // Pes Parser
#define TVP_VD_BASE (volatile unsigned long*)(TVP_IO_BASE+0x00120000) // Video Control
#define TVP_BG_BASE (volatile unsigned long*)(TVP_IO_BASE+0x00130000) // Background
#define TVP_AD_BASE (volatile unsigned long*)(TVP_IO_BASE+0x00140000) // Audio
#define TVP_NV_BASE (volatile unsigned long*)(TVP_IO_BASE+0x00150000) // NTSC Video
#define TVP_DMA_BASE (volatile unsigned long*)(TVP_IO_BASE+0x00160000) // DMA
#define TVP_BB_BASE (volatile unsigned long*)(TVP_IO_BASE+0x00170000) // Bitblt
#define TVP_DP_BASE (volatile unsigned long*)(TVP_IO_BASE+0x00180000) // Disp Proc Debug
#if !defined (TVP_SDRAM_BASE)
#define TVP_SDRAM_BASE (volatile unsigned long*)(0x10000000) //
#endif
#define TVP_EXT_CS0_BASE (volatile unsigned long*)(0x20000000) // 256mb external device 0
#define TVP_EXT_CS1_BASE (volatile unsigned long*)(0x30000000) // 256mb external device 1
#define TVP_EXT_CS2_BASE (volatile unsigned long*)(0x40000000) // 256mb external device 2
#define TVP_EXT_CS3_BASE (volatile unsigned long*)(0x50000000) // 256mb external device 3
#define TVP_EXT_CS4_BASE (volatile unsigned long*)(0x60000000) // 256mb external device 4
#define TVP_EXT_CS5_BASE (volatile unsigned long*)(0x70000000) // 256mb external device 5
#if !defined (KERN_SDRAM)
#define KERN_SDRAM(x) (x)
#endif
#if !defined (KERN_IO)
#define KERN_IO(x) (x)
#endif
#if !defined (USER_SDRAM)
#define USER_SDRAM(x) (x)
#endif
#if !defined (USER_IO)
#define USER_IO(x) (x)
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -