[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:
Carlos Garcia Saura 2021-10-15 22:06:49 +02:00 committed by GitHub
parent 384f8d97d8
commit 7cca673902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -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_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")

View File

@ -8,6 +8,7 @@ CONFIG_COMPILER_OPTIMIZATION_SIZE=y
CONFIG_PARTITION_TABLE_CUSTOM=y
#CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
CONFIG_PARTITION_TABLE_SINGLE_APP=n
CONFIG_FREERTOS_HZ=1000
# esp32_ble
CONFIG_BT_ENABLED=y