mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-07 17:08:49 +00:00
esp32: add implementation of esp_timer based on TG0 LAC timer
Closes: IDF-979
This commit is contained in:
committed by
Angus Gratton
parent
67b0a79167
commit
739eb05bb9
@@ -69,6 +69,8 @@ static uint32_t get_clk_en_mask(periph_module_t periph)
|
||||
#elif CONFIG_IDF_TARGET_ESP32S2
|
||||
case PERIPH_USB_MODULE:
|
||||
return DPORT_USB_CLK_EN;
|
||||
case PERIPH_SYSTIMER_MODULE:
|
||||
return DPORT_SYSTIMER_CLK_EN;
|
||||
#endif
|
||||
case PERIPH_I2C0_MODULE:
|
||||
return DPORT_I2C_EXT0_CLK_EN;
|
||||
@@ -171,6 +173,8 @@ static uint32_t get_rst_en_mask(periph_module_t periph, bool enable)
|
||||
#elif CONFIG_IDF_TARGET_ESP32S2
|
||||
case PERIPH_USB_MODULE:
|
||||
return DPORT_USB_RST;
|
||||
case PERIPH_SYSTIMER_MODULE:
|
||||
return DPORT_SYSTIMER_RST;
|
||||
#endif
|
||||
case PERIPH_I2C0_MODULE:
|
||||
return DPORT_I2C_EXT0_RST;
|
||||
|
||||
Reference in New Issue
Block a user