X-Git-Url: http://cloudbase.mooo.com/gitweb/avrcpm.git/blobdiff_plain/d8fa6a36ffba80be398c90641b3e7e7a79d56d43..79986122b1d8a4aaf015b8d30f20e99d78779342:/avr/config.inc diff --git a/avr/config.inc b/avr/config.inc index 3d63410..5917a06 100644 --- a/avr/config.inc +++ b/avr/config.inc @@ -26,8 +26,8 @@ #define VMINOR 1 #ifndef DRAM_8BIT - #define DRAM_8BIT 1 /* 1 = 8bit wide DRAM */ -#endif + #define DRAM_8BIT 1 /* 1 = 8bit wide data bus to DRAM (ie two 4-bit Chips)*/ +#endif /* 0 = only one 4 bit wide DRAM chip */ #ifndef F_CPU #define F_CPU 20000000 /* system clock in Hz; defaults to 20MHz */ #endif @@ -35,7 +35,7 @@ #define BAUD 38400 /* console baud rate */ #endif #ifndef I2C - #define I2C DRAM_8BIT /* I2C requires 8 bit DRAM */ + #define I2C 0 /* I2C requires 8 bit DRAM */ #endif #if I2C && !DRAM_8BIT #error "I2C requires 8 bit DRAM (DRAM_8BIT=1)!" @@ -77,6 +77,7 @@ .equ INS_DEBUG = 0 .equ STACK_DBG = 0 .equ PRINT_PC = 0 +.equ TIMER_DEBUG = 0 #define MMC_SPI2X 1 /* 0 = SPI CLK/4, 1 = SPI CLK/2 */ @@ -84,12 +85,6 @@ #define DBG_TRACE_BOTTOM 0x01 /* Page boundaries for INS_DEBUG and PRINT_PC */ #define DBG_TRACE_TOP 0xdc /* Trace is off, below bottom page and above top page. */ -#if EM_Z80 - #define CPUSTR "Z80" -#else - #define CPUSTR "8080" -#endif - ;----------------------------------------------------------------------- ; Port declarations @@ -128,6 +123,7 @@ .equ P_MMC_CS = PORTB .equ P_A8 = PORTB .equ P_RXD = PORTB +.equ P_TXD = PORTB ;Port C .equ RAM_RAS = 0 @@ -299,6 +295,12 @@ #define PORT7 0x87 +#if EM_Z80 + #define CPUSTR "Z80" +#else + #define CPUSTR "8080" +#endif + #if defined __ATmega8__ .equ RXTXDR0 = UDR .equ UCSR0A = UCSRA