reduce the minimum delay uncertainty of esp_timer for Bluetooth modem sleep from 1.8ms to 0.5ms for lower power consumption
This commit is contained in:
parent
ff2c583a0d
commit
f678a6289d
1 changed files with 1 additions and 1 deletions
|
@ -818,7 +818,7 @@ static void btdm_sleep_enter_phase1_wrapper(uint32_t lpcycles)
|
||||||
// start a timer to wake up and acquire the pm_lock before modem_sleep awakes
|
// start a timer to wake up and acquire the pm_lock before modem_sleep awakes
|
||||||
uint32_t us_to_sleep = btdm_lpcycles_2_us(lpcycles);
|
uint32_t us_to_sleep = btdm_lpcycles_2_us(lpcycles);
|
||||||
|
|
||||||
#define BTDM_MIN_TIMER_UNCERTAINTY_US (1800)
|
#define BTDM_MIN_TIMER_UNCERTAINTY_US (500)
|
||||||
assert(us_to_sleep > BTDM_MIN_TIMER_UNCERTAINTY_US);
|
assert(us_to_sleep > BTDM_MIN_TIMER_UNCERTAINTY_US);
|
||||||
// allow a maximum time uncertainty to be about 488ppm(1/2048) at least as clock drift
|
// allow a maximum time uncertainty to be about 488ppm(1/2048) at least as clock drift
|
||||||
// and set the timer in advance
|
// and set the timer in advance
|
||||||
|
|
Loading…
Reference in a new issue