From 7dc36cea05dcebd2f38eaed805282420f7bfa98e Mon Sep 17 00:00:00 2001 From: LaurynasL Date: Fri, 13 Mar 2015 16:37:28 +0200 Subject: [PATCH] UART 9600->115200 Set faster UART by default, add small script for making & building binary --- app/platform/platform.c | 2 +- app/user/user_main.c | 3 +-- fullmake.sh | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 fullmake.sh diff --git a/app/platform/platform.c b/app/platform/platform.c index 40aa50ad..d4804715 100644 --- a/app/platform/platform.c +++ b/app/platform/platform.c @@ -205,7 +205,7 @@ uint32_t platform_uart_setup( unsigned id, uint32_t baud, int databits, int pari UartDev.baut_rate = baud; break; default: - UartDev.baut_rate = BIT_RATE_9600; + UartDev.baut_rate = BIT_RATE_115200; break; } diff --git a/app/user/user_main.c b/app/user/user_main.c index 7d470e2c..29158f44 100644 --- a/app/user/user_main.c +++ b/app/user/user_main.c @@ -114,9 +114,8 @@ void user_init(void) #ifdef DEVELOP_VERSION uart_init(BIT_RATE_74880, BIT_RATE_74880); #else - uart_init(BIT_RATE_9600, BIT_RATE_9600); + uart_init(BIT_RATE_115200, BIT_RATE_115200); #endif - // uart_init(BIT_RATE_115200, BIT_RATE_115200); #ifndef NODE_DEBUG system_set_os_print(0); diff --git a/fullmake.sh b/fullmake.sh new file mode 100644 index 00000000..df89ae43 --- /dev/null +++ b/fullmake.sh @@ -0,0 +1 @@ +make && esptool.py elf2image app/.output/eagle/debug/image/eagle.app.v6.out \ No newline at end of file