From 583309491ccb3819434c0a58cfcf2535d50588c4 Mon Sep 17 00:00:00 2001 From: Godzil Date: Mon, 16 Apr 2012 23:27:55 +0200 Subject: [PATCH 1/3] Change baudrate to more standard 115200 --- src/bootldr/config.h | 1 + src/bootldr/uart.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; From e2af175f058d8c248bc09ad07b5dea0b5a43b70f Mon Sep 17 00:00:00 2001 From: Godzil Date: Mon, 16 Apr 2012 23:29:55 +0200 Subject: [PATCH 2/3] Correct baudrate on normal application. --- src/config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 From 86d6f0487083737b0a2e306a820964be9550ab87 Mon Sep 17 00:00:00 2001 From: Godzil Date: Mon, 16 Apr 2012 23:32:18 +0200 Subject: [PATCH 3/3] Add gitignore file. --- .gitignore | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitignore 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