Kconfig: Update dependencies to avoid invalid configurations

1. Since the baud rate in the ROM cannot be changed,
   set the default baud rate of the 26Mhz version
   of esp32c2 to 74800
2. Since the systimer configuration of the 26Mhz
   version requires a non-integer systimer frequency
   configuration, and this feature is not supported
   in the current ROM, this option is disabled for
   the 26Mhz version esp32c2
This commit is contained in:
wuzhenghui
2022-07-04 17:49:02 +08:00
committed by songruojing
parent b3d8db3ae2
commit a9c8065030
2 changed files with 2 additions and 1 deletions

View File

@@ -331,6 +331,7 @@ menu "ESP System Settings"
int int
prompt "UART console baud rate" if ESP_CONSOLE_UART_CUSTOM prompt "UART console baud rate" if ESP_CONSOLE_UART_CUSTOM
depends on ESP_CONSOLE_UART depends on ESP_CONSOLE_UART
default 74880 if ESP32C2_XTAL_FREQ_26
default 115200 default 115200
range 1200 4000000 if !PM_ENABLE range 1200 4000000 if !PM_ENABLE
range 1200 1000000 if PM_ENABLE range 1200 1000000 if PM_ENABLE

View File

@@ -67,7 +67,7 @@ menu "Hardware Abstraction Layer (HAL) and Low Level (LL)"
config HAL_SYSTIMER_USE_ROM_IMPL config HAL_SYSTIMER_USE_ROM_IMPL
bool "Use ROM implementation of SysTimer HAL driver" bool "Use ROM implementation of SysTimer HAL driver"
depends on ESP_ROM_HAS_HAL_SYSTIMER depends on ESP_ROM_HAS_HAL_SYSTIMER && !ESP32C2_XTAL_FREQ_26
default y default y
help help
Enable this flag to use HAL functions from ROM instead of ESP-IDF. Enable this flag to use HAL functions from ROM instead of ESP-IDF.