diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5eb7470 --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +*.cod +*.hex +*.lst +*.o +*.diff +.DS_Store +*.o65 +*.ips +*.bin +*.map +*.o.d +*.log +*.smc +*.sfc +*~ +*.old +*.elf +*.img +autoconf.h +utils/rle +utils/derle +*.bit \ No newline at end of file diff --git a/src/bootldr/config.h b/src/bootldr/config.h index ba6b9df..cbb1469 100644 --- a/src/bootldr/config.h +++ b/src/bootldr/config.h @@ -56,6 +56,7 @@ #define CONFIG_UART_PCLKDIV 1 #define CONFIG_UART_TX_BUF_SHIFT 8 #define CONFIG_UART_BAUDRATE 921600 +//#define CONFIG_UART_BAUDRATE 115200 #define CONFIG_UART_DEADLOCKABLE #define SSP_CLK_DIVISOR_FAST 2 diff --git a/src/bootldr/uart.c b/src/bootldr/uart.c index d5f224f..611e35c 100644 --- a/src/bootldr/uart.c +++ b/src/bootldr/uart.c @@ -119,7 +119,7 @@ void uart_init(void) { /* set baud rate - no fractional stuff for now */ UART_REGS->LCR = BV(7) | 3; // always 8n1 - div = 0x850004; // baud2divisor(CONFIG_UART_BAUDRATE); + div = 0xF80022; //0x850004; // baud2divisor(CONFIG_UART_BAUDRATE); UART_REGS->DLL = div & 0xff; UART_REGS->DLM = (div >> 8) & 0xff; diff --git a/src/config.h b/src/config.h index 6e64271..37d4eba 100644 --- a/src/config.h +++ b/src/config.h @@ -39,7 +39,8 @@ //#define CONFIG_CPU_FREQUENCY 46000000 #define CONFIG_UART_PCLKDIV 1 #define CONFIG_UART_TX_BUF_SHIFT 8 -#define CONFIG_UART_BAUDRATE 921600 +//#define CONFIG_UART_BAUDRATE 921600 +#define CONFIG_UART_BAUDRATE 115200 #define CONFIG_UART_DEADLOCKABLE #define SSP_CLK_DIVISOR 2