Merge branch 'feature/esp32p4_twai_support' into 'master'

feat(twai): support legacy twai(can) driver for esp32p4

Closes IDF-7470

See merge request espressif/esp-idf!26073
This commit is contained in:
Wan Lei
2023-10-30 10:57:03 +08:00
30 changed files with 1061 additions and 403 deletions

View File

@@ -194,25 +194,25 @@ static inline void twai_ll_reset_register(int group_id)
/**
* @brief Enable TWAI module clock
*
* @param hw Start address of the TWAI registers
* @param group_id Group ID
* @param en true to enable, false to disable
*/
__attribute__((always_inline))
static inline void twai_ll_enable_clock(twai_dev_t *hw, bool en)
static inline void twai_ll_enable_clock(int group_id, bool en)
{
(void)hw;
(void)group_id;
}
/**
* @brief Set clock source for TWAI module
*
* @param hw Start address of the TWAI registers
* @param group_id Group ID
* @param clk_src Clock source
*/
__attribute__((always_inline))
static inline void twai_ll_set_clock_source(twai_dev_t *hw, twai_clock_source_t clk_src)
static inline void twai_ll_set_clock_source(int group_id, twai_clock_source_t clk_src)
{
(void)hw;
(void)group_id;
HAL_ASSERT(clk_src == TWAI_CLK_SRC_APB);
}