mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-11 13:00:19 +00:00
feat(driver_twai): c5 eco2 support clock source pll80m to output 8m twai
This commit is contained in:
@@ -92,7 +92,7 @@ static inline void twaifd_ll_reset_register(uint8_t twai_id)
|
||||
*/
|
||||
static inline void twaifd_ll_set_clock_source(uint8_t twai_id, twai_clock_source_t clk_src)
|
||||
{
|
||||
PCR.twai[twai_id].twai_func_clk_conf.twai_func_clk_sel = (clk_src == TWAI_CLK_SRC_RC_FAST) ? 1 : 0;
|
||||
PCR.twai[twai_id].twai_func_clk_conf.twai_func_clk_sel = (clk_src == TWAI_CLK_SRC_XTAL) ? 0 : 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user