mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-25 17:58:46 +00:00
feat(rmt): add driver support for esp32p4
including DMA feature
This commit is contained in:
@@ -42,6 +42,30 @@ typedef enum {
|
||||
RMT_LL_MEM_OWNER_HW = 1,
|
||||
} rmt_ll_mem_owner_t;
|
||||
|
||||
/**
|
||||
* @brief Enable the bus clock for RMT module
|
||||
*
|
||||
* @param group_id Group ID
|
||||
* @param enable true to enable, false to disable
|
||||
*/
|
||||
static inline void rmt_ll_enable_bus_clock(int group_id, bool enable)
|
||||
{
|
||||
(void)group_id;
|
||||
PCR.rmt_conf.rmt_clk_en = enable;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Reset the RMT module
|
||||
*
|
||||
* @param group_id Group ID
|
||||
*/
|
||||
static inline void rmt_ll_reset_register(int group_id)
|
||||
{
|
||||
(void)group_id;
|
||||
PCR.rmt_conf.rmt_rst_en = 1;
|
||||
PCR.rmt_conf.rmt_rst_en = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Enable clock gate for register and memory
|
||||
*
|
||||
|
Reference in New Issue
Block a user