📄 tkconfig.h
字号:
#ifdef CONFIG_MMU_I8 #define CONFIG_ITLBNUM 8#endif#ifdef CONFIG_MMU_I16 #define CONFIG_ITLBNUM 16#endif#ifdef CONFIG_MMU_I32#define CONFIG_ITLBNUM 32#endif#define CONFIG_DTLBNUM 2#ifdef CONFIG_MMU_D2 #undef CONFIG_DTLBNUM #define CONFIG_DTLBNUM 2#endif#ifdef CONFIG_MMU_D4 #undef CONFIG_DTLBNUM #define CONFIG_DTLBNUM 4#endif#ifdef CONFIG_MMU_D8 #undef CONFIG_DTLBNUM #define CONFIG_DTLBNUM 8#endif#ifdef CONFIG_MMU_D16 #undef CONFIG_DTLBNUM #define CONFIG_DTLBNUM 16#endif#ifdef CONFIG_MMU_D32#undef CONFIG_DTLBNUM #define CONFIG_DTLBNUM 32#endif#ifndef CONFIG_MMU_MMUSNOOP#define CONFIG_DCACHE_MMUSNOOP 0#else #define CONFIG_DCACHE_MMUSNOOP 4#endif#else#define CONFIG_MMUEN 0#define CONFIG_ITLBNUM 2#define CONFIG_DTLBNUM 2#define CONFIG_TLB_TYPE 1#define CONFIG_TLB_REP 1#define CONFIG_DCACHE_MMUSNOOP 0#endif#ifndef CONFIG_DSU_ENABLE#define CONFIG_DSU_ENABLE 0#endif#if defined CONFIG_DSU_ITRACESZ1#define CFG_DSU_ITB 1#elif CONFIG_DSU_ITRACESZ2#define CFG_DSU_ITB 2#elif CONFIG_DSU_ITRACESZ4#define CFG_DSU_ITB 4#elif CONFIG_DSU_ITRACESZ8#define CFG_DSU_ITB 8#elif CONFIG_DSU_ITRACESZ16#define CFG_DSU_ITB 16#else#define CFG_DSU_ITB 0#endif#if defined CONFIG_DSU_ATRACESZ1#define CFG_DSU_ATB 1#elif CONFIG_DSU_ATRACESZ2#define CFG_DSU_ATB 2#elif CONFIG_DSU_ATRACESZ4#define CFG_DSU_ATB 4#elif CONFIG_DSU_ATRACESZ8#define CFG_DSU_ATB 8#elif CONFIG_DSU_ATRACESZ16#define CFG_DSU_ATB 16#else#define CFG_DSU_ATB 0#endif#ifdef CONFIG_DEBUG_PC32#define CFG_DEBUG_PC32 0 #else#define CFG_DEBUG_PC32 2#endif#ifndef CONFIG_IU_DISAS#define CONFIG_IU_DISAS 0#endif#ifndef CONFIG_IU_DISAS_NET#define CONFIG_IU_DISAS_NET 0#endif#ifndef CONFIG_AHB_SPLIT#define CONFIG_AHB_SPLIT 0#endif#ifndef CONFIG_AHB_RROBIN#define CONFIG_AHB_RROBIN 0#endif#ifndef CONFIG_AHB_IOADDR#define CONFIG_AHB_IOADDR FFF#endif#ifndef CONFIG_APB_HADDR#define CONFIG_APB_HADDR 800#endif#ifndef CONFIG_DSU_UART#define CONFIG_DSU_UART 0#endif#ifndef CONFIG_DSU_JTAG#define CONFIG_DSU_JTAG 0#endif#ifndef CONFIG_DSU_ETH#define CONFIG_DSU_ETH 0#endif#ifndef CONFIG_DSU_IPMSB#define CONFIG_DSU_IPMSB C0A8#endif#ifndef CONFIG_DSU_IPLSB#define CONFIG_DSU_IPLSB 0033#endif#ifndef CONFIG_DSU_ETHMSB#define CONFIG_DSU_ETHMSB 00007A#endif#ifndef CONFIG_DSU_ETHLSB#define CONFIG_DSU_ETHLSB CC0001#endif#if defined CONFIG_DSU_ETHSZ1#define CFG_DSU_ETHB 1#elif CONFIG_DSU_ETHSZ2#define CFG_DSU_ETHB 2#elif CONFIG_DSU_ETHSZ4#define CFG_DSU_ETHB 4#elif CONFIG_DSU_ETHSZ8#define CFG_DSU_ETHB 8#elif CONFIG_DSU_ETHSZ16#define CFG_DSU_ETHB 16#elif CONFIG_DSU_ETHSZ32#define CFG_DSU_ETHB 32#else#define CFG_DSU_ETHB 1#endif#ifndef CONFIG_MCTRL_LEON2#define CONFIG_MCTRL_LEON2 0#endif#ifndef CONFIG_MCTRL_SDRAM#define CONFIG_MCTRL_SDRAM 0#endif#ifndef CONFIG_MCTRL_SDRAM_SEPBUS#define CONFIG_MCTRL_SDRAM_SEPBUS 0#endif#ifndef CONFIG_MCTRL_SDRAM_INVCLK#define CONFIG_MCTRL_SDRAM_INVCLK 0#endif#ifndef CONFIG_MCTRL_SDRAM_BUS64#define CONFIG_MCTRL_SDRAM_BUS64 0#endif#ifndef CONFIG_MCTRL_8BIT#define CONFIG_MCTRL_8BIT 0#endif#ifndef CONFIG_MCTRL_16BIT#define CONFIG_MCTRL_16BIT 0#endif#ifndef CONFIG_MCTRL_5CS#define CONFIG_MCTRL_5CS 0#endif#ifndef CONFIG_MCTRL_EDAC#define CONFIG_MCTRL_EDAC 0#endif#ifndef CONFIG_MCTRL_PAGE#define CONFIG_MCTRL_PAGE 0#endif#ifndef CONFIG_MCTRL_PROGPAGE#define CONFIG_MCTRL_PROGPAGE 0#endif#ifndef CONFIG_DDRSP#define CONFIG_DDRSP 0#endif#ifndef CONFIG_DDRSP_INIT#define CONFIG_DDRSP_INIT 0#endif#ifndef CONFIG_DDRSP_FREQ#define CONFIG_DDRSP_FREQ 100#endif#ifndef CONFIG_DDRSP_COL#define CONFIG_DDRSP_COL 9#endif#ifndef CONFIG_DDRSP_MBYTE#define CONFIG_DDRSP_MBYTE 8#endif#ifndef CONFIG_DDRSP_RSKEW#define CONFIG_DDRSP_RSKEW 0#endif#ifndef CONFIG_AHBROM_ENABLE#define CONFIG_AHBROM_ENABLE 0#endif#ifndef CONFIG_AHBROM_START#define CONFIG_AHBROM_START 000#endif#ifndef CONFIG_AHBROM_PIPE#define CONFIG_AHBROM_PIPE 0#endif#if (CONFIG_AHBROM_START == 0) && (CONFIG_AHBROM_ENABLE == 1)#define CONFIG_ROM_START 100#else#define CONFIG_ROM_START 000#endif#ifndef CONFIG_AHBRAM_ENABLE#define CONFIG_AHBRAM_ENABLE 0#endif#ifndef CONFIG_AHBRAM_START#define CONFIG_AHBRAM_START A00#endif#if defined CONFIG_AHBRAM_SZ1#define CFG_AHBRAMSZ 1#elif CONFIG_AHBRAM_SZ2#define CFG_AHBRAMSZ 2#elif CONFIG_AHBRAM_SZ4#define CFG_AHBRAMSZ 4#elif CONFIG_AHBRAM_SZ8#define CFG_AHBRAMSZ 8#elif CONFIG_AHBRAM_SZ16#define CFG_AHBRAMSZ 16#elif CONFIG_AHBRAM_SZ32#define CFG_AHBRAMSZ 32#elif CONFIG_AHBRAM_SZ64#define CFG_AHBRAMSZ 64#else#define CFG_AHBRAMSZ 1#endif#ifndef CONFIG_GRETH_ENABLE#define CONFIG_GRETH_ENABLE 0#endif#ifndef CONFIG_GRETH_GIGA#define CONFIG_GRETH_GIGA 0#endif#if defined CONFIG_GRETH_FIFO4#define CFG_GRETH_FIFO 4#elif defined CONFIG_GRETH_FIFO8#define CFG_GRETH_FIFO 8#elif defined CONFIG_GRETH_FIFO16#define CFG_GRETH_FIFO 16#elif defined CONFIG_GRETH_FIFO32#define CFG_GRETH_FIFO 32#elif defined CONFIG_GRETH_FIFO64#define CFG_GRETH_FIFO 64#else#define CFG_GRETH_FIFO 8#endif#ifndef CONFIG_UART1_ENABLE#define CONFIG_UART1_ENABLE 0#endif#if defined CONFIG_UA1_FIFO1#define CFG_UA1_FIFO 1#elif defined CONFIG_UA1_FIFO2#define CFG_UA1_FIFO 2#elif defined CONFIG_UA1_FIFO4#define CFG_UA1_FIFO 4#elif defined CONFIG_UA1_FIFO8#define CFG_UA1_FIFO 8#elif defined CONFIG_UA1_FIFO16#define CFG_UA1_FIFO 16#elif defined CONFIG_UA1_FIFO32#define CFG_UA1_FIFO 32#else#define CFG_UA1_FIFO 1#endif#ifndef CONFIG_IRQ3_ENABLE#define CONFIG_IRQ3_ENABLE 0#endif#ifndef CONFIG_GPT_ENABLE#define CONFIG_GPT_ENABLE 0#endif#ifndef CONFIG_GPT_NTIM#define CONFIG_GPT_NTIM 1#endif#ifndef CONFIG_GPT_SW#define CONFIG_GPT_SW 8#endif#ifndef CONFIG_GPT_TW#define CONFIG_GPT_TW 8#endif#ifndef CONFIG_GPT_IRQ#define CONFIG_GPT_IRQ 8#endif#ifndef CONFIG_GPT_SEPIRQ#define CONFIG_GPT_SEPIRQ 0#endif#ifndef CONFIG_GPT_ENABLE#define CONFIG_GPT_ENABLE 0#endif#ifndef CONFIG_GPT_NTIM#define CONFIG_GPT_NTIM 1#endif#ifndef CONFIG_GPT_SW#define CONFIG_GPT_SW 8#endif#ifndef CONFIG_GPT_TW#define CONFIG_GPT_TW 8#endif#ifndef CONFIG_GPT_IRQ#define CONFIG_GPT_IRQ 8#endif#ifndef CONFIG_GPT_SEPIRQ#define CONFIG_GPT_SEPIRQ 0#endif#ifndef CONFIG_GPT_WDOGEN#define CONFIG_GPT_WDOGEN 0#endif#ifndef CONFIG_GPT_WDOG#define CONFIG_GPT_WDOG 0#endif#ifndef CONFIG_GRGPIO_ENABLE#define CONFIG_GRGPIO_ENABLE 0#endif#ifndef CONFIG_GRGPIO_IMASK#define CONFIG_GRGPIO_IMASK 0000#endif#ifndef CONFIG_GRGPIO_WIDTH#define CONFIG_GRGPIO_WIDTH 1#endif#ifndef CONFIG_VGA_ENABLE#define CONFIG_VGA_ENABLE 0#endif#ifndef CONFIG_SVGA_ENABLE#define CONFIG_SVGA_ENABLE 0#endif#ifndef CONFIG_KBD_ENABLE#define CONFIG_KBD_ENABLE 0#endif#ifndef CONFIG_DEBUG_UART#define CONFIG_DEBUG_UART 0#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -