fix(twai): fixed build errors in cxx environment

Closes https://github.com/espressif/esp-idf/issues/16999
This commit is contained in:
morris
2025-07-25 15:05:38 +08:00
committed by wanckl
parent 5c15e41d9a
commit d75789beb9
14 changed files with 200 additions and 212 deletions

View File

@@ -440,7 +440,7 @@ typedef enum {
/**
* @brief Array initializer for all supported clock sources of TWAI
*/
#define SOC_TWAI_CLKS {SOC_MOD_CLK_XTAL, SOC_MOD_CLK_PLL_F80M}
#define SOC_TWAI_CLKS {(soc_periph_twai_clk_src_t)SOC_MOD_CLK_XTAL, (soc_periph_twai_clk_src_t)SOC_MOD_CLK_PLL_F80M}
/**
* @brief TWAI clock source