mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 16:04:55 +00:00
[rp2040] Add USE_FAST_MILLIS_ACCUMULATOR define for benchmark guard
This commit is contained in:
@@ -226,6 +226,7 @@ async def to_code(config):
|
||||
# Wrap Arduino's millis() so all callers use our fast accumulator instead of
|
||||
# the expensive time_us_64() + micros_to_millis() 64-bit conversion path.
|
||||
cg.add_build_flag("-Wl,--wrap=millis")
|
||||
cg.add_define("USE_FAST_MILLIS_ACCUMULATOR")
|
||||
|
||||
cg.add_platformio_option("board_build.core", "earlephilhower")
|
||||
# In testing mode, use all flash for sketch to allow linking grouped component tests.
|
||||
|
||||
Reference in New Issue
Block a user