mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-21 08:49:25 +00:00
refactor(lp_ana_periph): sync the reg names to TRM (part2)
This commit is contained in:

committed by
Kevin (Lao Kaiyao)

parent
2ee7f0e133
commit
2c7958735d
@@ -755,10 +755,10 @@ static inline void touch_ll_filter_enable(bool enable)
|
||||
*/
|
||||
static inline void touch_ll_force_update_benchmark(uint32_t benchmark)
|
||||
{
|
||||
HAL_FORCE_MODIFY_U32_REG_FIELD(LP_ANA_PERI.touch_filter3, touch_baseline_sw, benchmark);
|
||||
LP_ANA_PERI.touch_filter3.touch_update_baseline_sw = 1;
|
||||
HAL_FORCE_MODIFY_U32_REG_FIELD(LP_ANA_PERI.touch_filter3, touch_benchmark_sw, benchmark);
|
||||
LP_ANA_PERI.touch_filter3.touch_update_benchmark_sw = 1;
|
||||
// waiting for update
|
||||
while (LP_ANA_PERI.touch_filter3.touch_update_baseline_sw);
|
||||
while (LP_ANA_PERI.touch_filter3.touch_update_benchmark_sw);
|
||||
}
|
||||
|
||||
/************************ Waterproof register setting ************************/
|
||||
|
Reference in New Issue
Block a user