uart.h: Add uart_get_baud/uart_set_baud functions, change default baud rate from 74906 to 115200
This commit is contained in:
parent
707d0ed981
commit
3ceadfc0a6
14 changed files with 18 additions and 42 deletions
|
@ -3,7 +3,6 @@
|
|||
* This sample code is in the public domain.
|
||||
*/
|
||||
#include "espressif/esp_common.h"
|
||||
#include "espressif/sdk_private.h"
|
||||
#include "FreeRTOS.h"
|
||||
#include "task.h"
|
||||
#include "esp8266.h"
|
||||
|
@ -53,7 +52,6 @@ void blinkenRegisterTask(void *pvParameters)
|
|||
|
||||
void user_init(void)
|
||||
{
|
||||
sdk_uart_div_modify(0, UART_CLK_FREQ / 115200);
|
||||
xTaskCreate(blinkenTask, (signed char *)"blinkenTask", 256, NULL, 2, NULL);
|
||||
//xTaskCreate(blinkenRegisterTask, (signed char *)"blinkenRegisterTask", 256, NULL, 2, NULL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue