mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-12-13 08:51:03 +08:00
feat(esp8266): Add configuration for UART baudrate
This commit is contained in:
@@ -35,8 +35,6 @@ config SOC_FULL_ICACHE
|
||||
Enable this option, full 32 KB iram instead of 16 KB iram will be used as icache, so the heap use can use
|
||||
may reduce a lot.
|
||||
|
||||
endmenu
|
||||
|
||||
choice CONSOLE_UART_NUM
|
||||
prompt "UART peripheral to use for console output (0-1)"
|
||||
default CONSOLE_UART_CUSTOM_NUM_0
|
||||
@@ -54,6 +52,13 @@ config CONSOLE_UART_NUM
|
||||
default 0 if CONSOLE_UART_CUSTOM_NUM_0
|
||||
default 1 if CONSOLE_UART_CUSTOM_NUM_1
|
||||
|
||||
config CONSOLE_UART_BAUDRATE
|
||||
int "UART console baud rate"
|
||||
default 74880
|
||||
range 1200 4000000
|
||||
|
||||
endmenu
|
||||
|
||||
menu WIFI
|
||||
|
||||
config SCAN_AP_MAX
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
gwen:
|
||||
crypto: 8943c89
|
||||
core: 782e796
|
||||
core: 4be8e4a
|
||||
net80211: 5319ba0
|
||||
pp: 830c0c8
|
||||
smartconfig:68bd9c5
|
||||
|
||||
Binary file not shown.
@@ -30,7 +30,7 @@ void write_data_to_rtc(uint8_t *);
|
||||
|
||||
void get_data_from_rtc(uint8_t *);
|
||||
|
||||
uint8_t chip_init(uint8_t* init_data, uint8_t *mac);
|
||||
uint8_t chip_init(uint8_t* init_data, uint8_t *mac, uint32_t uart_baudrate);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ esp_err_t esp_phy_rf_init(const esp_phy_init_data_t *init_data, esp_phy_calibrat
|
||||
}
|
||||
|
||||
esp_efuse_mac_get_default(sta_mac);
|
||||
chip_init(local_init_data, sta_mac);
|
||||
chip_init(local_init_data, sta_mac, CONFIG_CONSOLE_UART_BAUDRATE);
|
||||
get_data_from_rtc((uint8_t *)calibration_data);
|
||||
|
||||
memcpy(rx_gain_dc_table, calibration_data->rx_gain_dc_table, 4 * 125);
|
||||
|
||||
Reference in New Issue
Block a user