Moved #define BIT_RATE_DEFAULT to user_config.h

This commit is contained in:
Jonathan karras 2015-10-31 16:33:48 -06:00
parent d008fa0ba2
commit 68d4013916
2 changed files with 9 additions and 11 deletions

View File

@ -16,10 +16,17 @@
#define USE_OPTIMIZE_PRINTF
#ifdef DEVELOP_VERSION
#define NODE_DEBUG
#define COAP_DEBUG
#endif /* DEVELOP_VERSION */
#define BIT_RATE_DEFAULT BIT_RATE_74880
#else
#undef BIT_RATE_DEFAULT
#define BIT_RATE_DEFAULT BIT_RATE_9600
#endif /* DEVELOP_VERSION */
#define NODE_ERROR

View File

@ -165,17 +165,8 @@ void user_init(void)
// os_printf("Heap size::%d.\n",system_get_free_heap_size());
// os_delay_us(50*1000); // delay 50ms before init uart
UartBautRate br =
UartBautRate br = BIT_RATE_DEFAULT;
#ifdef DEVELOP_VERSION
BIT_RATE_74880;
#else
# ifndef BIT_RATE_DEF
BIT_RATE_9600;
# else
BIT_RATE_DEF;
# endif
#endif
uart_init (br, br, USER_TASK_PRIO_0, SIG_UARTINPUT);
#ifndef NODE_DEBUG