change(lp_core): changed wakeup time calc to use a precomputed tick value

Previously we would calculate the wakeup ticks upon every wakeup using the lp-timer clock frequency,
but this caused the binary to pull in software division functions, increasing the binary size.

This value is now precalculated by the hp-core when we configure the ULP. This saves about 1k bytes.
This commit is contained in:
Marius Vikhammer
2024-07-19 15:24:22 +08:00
parent 692eb01fe1
commit b825aa9f95
6 changed files with 42 additions and 6 deletions

View File

@@ -75,7 +75,7 @@ menu "Ultra Low Power (ULP) Co-processor"
config ULP_SHARED_MEM
depends on ULP_COPROC_TYPE_LP_CORE
hex
default 0x8
default 0x10
help
Size of the shared memory defined in ulp_lp_core_memory_shared.c.
Size should be kept in-sync with the size of the struct defined there.