Skip to content

Commit

Permalink
Merge pull request #24 from Godzil/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
mrehkopf committed Jul 10, 2012
2 parents d478580 + 86d6f04 commit a72476e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions src/bootldr/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/bootldr/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a72476e

Please sign in to comment.