mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-03 06:58:11 +00:00
refactor(lpperi): improve compatibility solution
This commit is contained in:
@@ -63,7 +63,7 @@ static inline void lp_clkrst_ll_select_modem_32k_clock_source(lp_clkrst_dev_t *h
|
||||
__attribute__((always_inline))
|
||||
static inline void _lp_clkrst_ll_enable_rng_clock(bool en)
|
||||
{
|
||||
LPPERI.clk_en->rng_ck_en = en;
|
||||
LPPERI_REG_SET(clk_en.rng_ck_en, en);
|
||||
}
|
||||
|
||||
/// LPPERI.clk_en is a shared register, so this function must be used in an atomic way
|
||||
|
@@ -38,8 +38,8 @@ typedef enum {
|
||||
*/
|
||||
static inline void _rtcio_ll_enable_io_clock(bool enable)
|
||||
{
|
||||
LPPERI.clk_en->lp_io_ck_en = enable;
|
||||
while (LPPERI.clk_en->lp_io_ck_en != enable) {
|
||||
LPPERI_REG_SET(clk_en.lp_io_ck_en, enable);
|
||||
while (LPPERI_REG_GET(clk_en.lp_io_ck_en) != enable) {
|
||||
;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user