mirror of
https://github.com/esphome/esphome.git
synced 2024-11-14 02:58:11 +01:00
[esp-idf fix] increase FreeRTOS ticker loop from 100Hz to 1kHz (#2527)
Co-authored-by: Otto Winter <otto@otto-winter.com>
This commit is contained in:
parent
384f8d97d8
commit
7cca673902
2 changed files with 3 additions and 0 deletions
|
@ -302,6 +302,8 @@ async def to_code(config):
|
||||||
)
|
)
|
||||||
add_idf_sdkconfig_option("CONFIG_COMPILER_OPTIMIZATION_DEFAULT", False)
|
add_idf_sdkconfig_option("CONFIG_COMPILER_OPTIMIZATION_DEFAULT", False)
|
||||||
add_idf_sdkconfig_option("CONFIG_COMPILER_OPTIMIZATION_SIZE", True)
|
add_idf_sdkconfig_option("CONFIG_COMPILER_OPTIMIZATION_SIZE", True)
|
||||||
|
# Increase freertos tick speed from 100Hz to 1kHz so that delay() resolution is 1ms
|
||||||
|
add_idf_sdkconfig_option("CONFIG_FREERTOS_HZ", 1000)
|
||||||
|
|
||||||
cg.add_platformio_option("board_build.partitions", "partitions.csv")
|
cg.add_platformio_option("board_build.partitions", "partitions.csv")
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ CONFIG_COMPILER_OPTIMIZATION_SIZE=y
|
||||||
CONFIG_PARTITION_TABLE_CUSTOM=y
|
CONFIG_PARTITION_TABLE_CUSTOM=y
|
||||||
#CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
#CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
||||||
CONFIG_PARTITION_TABLE_SINGLE_APP=n
|
CONFIG_PARTITION_TABLE_SINGLE_APP=n
|
||||||
|
CONFIG_FREERTOS_HZ=1000
|
||||||
|
|
||||||
# esp32_ble
|
# esp32_ble
|
||||||
CONFIG_BT_ENABLED=y
|
CONFIG_BT_ENABLED=y
|
||||||
|
|
Loading…
Reference in a new issue