FreeRTOS port on GAP8/RISC-V
|
Macros | |
#define | I2S_SLOT_DISABLE |
#define | I2S_SLOT_ENABLE |
#define | I2S_WORD_SIZE_08 |
#define | I2S_WORD_SIZE_16 |
#define | I2S_WORD_SIZE_24 |
#define | I2S_WORD_SIZE_32 |
#define | I2S_CLK_DISABLE |
#define | I2S_CLK_ENABLE |
#define | I2S_CLK_SRC_INT |
#define | I2S_CLK_SRC_EXT |
#define | I2S_CLK_EXT_SRC_PAD |
#define | I2S_CLK_EXT_SRC_INT |
#define | I2S_CLK_EDGE_RISE |
#define | I2S_CLK_EDGE_FALL |
#define | I2S_WS_SRC_INT |
#define | I2S_WS_SRC_EXT |
#define | I2S_WS_EXT_SRC_PAD |
#define | I2S_WS_EXT_SRC_INT |
#define | I2S_WS_EDGE_RISE |
#define | I2S_WS_EDGE_FALL |
#define | I2S_WS_TYPE_PULSE |
#define | I2S_WS_TYPE_STATE |
#define | I2S_WS_TYPE_N_2_SLOT |
#define | I2S_WS_TYPE_DONT_CARE |
#define | I2S_GLB_DISABLE |
#define | I2S_GLB_ENABLE |
#define | I2S_GLB_DUPLEX_DIS |
#define | I2S_GLB_DUPLEX_ENA |
#define | I2S_GLB_PDM_DIS |
#define | I2S_GLB_PDM_ENA |
#define | I2S_GLB_PDM_2CH_DIS |
#define | I2S_GLB_PDM_2CH_ENA |
Functions | |
static void | udma_i2s_slot_cfg_set (uint32_t base, uint8_t slot_num, uint32_t cfg) |
static uint32_t | udma_i2s_slot_cfg_get (uint32_t base, uint8_t slot_num) |
static void | udma_i2s_word_size_set (uint32_t base, uint8_t slot_num, uint32_t word_size) |
static uint32_t | udma_i2s_word_size_get (uint32_t base, uint8_t slot_num) |
static void | hal_udma_i2s_slot_cfg_set (uint32_t device_id, uint8_t slot_num, uint32_t cfg) |
static uint32_t | hal_udma_i2s_slot_cfg_get (uint32_t device_id, uint8_t slot_num) |
static void | hal_udma_i2s_slot_cfg_rx_set (uint32_t device_id, uint8_t slot_num, int8_t udma_chan_id, uint8_t ena, uint8_t msb, uint8_t left_align, uint8_t udma_size, uint8_t sign_ena) |
static uint32_t | hal_udma_i2s_slot_rx_chan_id_get (uint32_t device_id, uint8_t slot_num) |
static void | hal_udma_i2s_slot_cfg_rx_enable (uint32_t device_id, uint8_t slot_num) |
static void | hal_udma_i2s_slot_cfg_rx_disable (uint32_t device_id, uint8_t slot_num) |
static void | hal_udma_i2s_slot_cfg_tx_set (uint32_t device_id, uint8_t slot_num, int8_t udma_chan_id, uint8_t ena, uint8_t msb, uint8_t left_align, uint8_t udma_size, uint8_t sign_ena, uint8_t byp) |
static uint32_t | hal_udma_i2s_slot_tx_chan_id_get (uint32_t device_id, uint8_t slot_num) |
static void | hal_udma_i2s_slot_cfg_tx_enable (uint32_t device_id, uint8_t slot_num) |
static void | hal_udma_i2s_slot_cfg_tx_disable (uint32_t device_id, uint8_t slot_num) |
static uint32_t | hal_udma_i2s_word_size_get (uint32_t device_id, uint8_t slot_num) |
static void | hal_udma_i2s_word_size_rx_set (uint32_t device_id, uint8_t slot_num, uint8_t size) |
static void | hal_udma_i2s_word_size_tx_set (uint32_t device_id, uint8_t slot_num, uint8_t size) |
static uint32_t | hal_udma_i2s_slot_en_get (uint32_t device_id) |
static void | hal_udma_i2s_slot_en_set (uint32_t device_id, uint32_t enable) |
static uint32_t | hal_udma_i2s_clkcfg_reg_get (uint32_t device_id) |
static void | hal_udma_i2s_clkcfg_reg_set (uint32_t device_id, uint32_t clkcfg) |
static void | hal_udma_i2s_clkcfg_set (uint32_t device_id, uint16_t clk_div, uint8_t clk_ena, uint8_t clk_src, uint8_t clk_ext_src, uint8_t clk_edge, uint8_t ws_src, uint8_t ws_ext_src, uint8_t ws_edge, uint8_t ws_type) |
static uint32_t | hal_udma_i2s_glb_reg_get (uint32_t device_id) |
static void | hal_udma_i2s_glb_reg_set (uint32_t device_id, uint32_t glb_setup) |
static void | hal_udma_i2s_glb_set (uint32_t device_id, uint8_t ena, uint8_t frame_length, uint8_t slot_width, uint8_t ws_delay, uint8_t full_duplex_ena, uint8_t pdm_en, uint8_t pdm_2ch_en) |
static void | hal_udma_i2s_enqueue (uint32_t device_id, uint32_t slot_num, uint32_t l2_buf_0, uint32_t l2_buf_1, uint32_t size, uint32_t cfg, udma_channel_e channel) |
#define I2S_CLK_DISABLE |
Referenced by __pi_i2s_suspend().
#define I2S_CLK_EDGE_FALL |
#define I2S_CLK_EDGE_RISE |
Referenced by __pi_i2s_open().
#define I2S_CLK_ENABLE |
Referenced by __pi_i2s_resume().
#define I2S_CLK_EXT_SRC_INT |
#define I2S_CLK_EXT_SRC_PAD |
Referenced by __pi_i2s_open().
#define I2S_CLK_SRC_EXT |
#define I2S_CLK_SRC_INT |
#define I2S_GLB_DISABLE |
Referenced by __pi_i2s_suspend().
#define I2S_GLB_DUPLEX_DIS |
#define I2S_GLB_DUPLEX_ENA |
#define I2S_GLB_ENABLE |
Referenced by __pi_i2s_resume().
#define I2S_GLB_PDM_2CH_DIS |
Referenced by __pi_i2s_open().
#define I2S_GLB_PDM_2CH_ENA |
#define I2S_GLB_PDM_DIS |
#define I2S_GLB_PDM_ENA |
#define I2S_SLOT_DISABLE |
Referenced by hal_udma_i2s_slot_cfg_rx_disable(), and hal_udma_i2s_slot_cfg_tx_disable().
#define I2S_SLOT_ENABLE |
Referenced by hal_udma_i2s_slot_cfg_rx_enable(), and hal_udma_i2s_slot_cfg_tx_enable().
#define I2S_WORD_SIZE_08 |
#define I2S_WORD_SIZE_16 |
#define I2S_WORD_SIZE_24 |
#define I2S_WORD_SIZE_32 |
#define I2S_WS_EDGE_FALL |
#define I2S_WS_EDGE_RISE |
Referenced by __pi_i2s_open().
#define I2S_WS_EXT_SRC_INT |
#define I2S_WS_EXT_SRC_PAD |
Referenced by __pi_i2s_open().
#define I2S_WS_SRC_EXT |
#define I2S_WS_SRC_INT |
#define I2S_WS_TYPE_DONT_CARE |
#define I2S_WS_TYPE_N_2_SLOT |
#define I2S_WS_TYPE_PULSE |
Referenced by __pi_i2s_open().
#define I2S_WS_TYPE_STATE |
|
inlinestatic |
I2S_CLKCFG_SETUP Register.
References udma_i2s, and udma_i2s_clkcfg_setup_get().
Referenced by __pi_i2s_resume().
|
inlinestatic |
References udma_i2s, and udma_i2s_clkcfg_setup_set().
Referenced by __pi_i2s_resume(), and __pi_i2s_suspend().
|
inlinestatic |
References udma_i2s, UDMA_I2S_CLKCFG_SETUP_CLK_DIV, UDMA_I2S_CLKCFG_SETUP_CLK_EDGE, UDMA_I2S_CLKCFG_SETUP_CLK_EN, UDMA_I2S_CLKCFG_SETUP_CLK_EXT_SRC, UDMA_I2S_CLKCFG_SETUP_CLK_SRC, udma_i2s_clkcfg_setup_set(), UDMA_I2S_CLKCFG_SETUP_WS_EDGE, UDMA_I2S_CLKCFG_SETUP_WS_EXT_SRC, UDMA_I2S_CLKCFG_SETUP_WS_SRC, and UDMA_I2S_CLKCFG_SETUP_WS_TYPE.
|
inlinestatic |
UDMA_ENQUEUE.
References hal_udma_core_lin_enqueue(), hal_udma_core_lin_get(), hal_udma_i2s_slot_rx_chan_id_get(), hal_udma_i2s_slot_tx_chan_id_get(), and RX_CHANNEL.
|
inlinestatic |
I2S_GLB_SETUP Register.
References udma_i2s, and udma_i2s_glb_setup_get().
Referenced by __pi_i2s_resume().
|
inlinestatic |
References udma_i2s, and udma_i2s_glb_setup_set().
Referenced by __pi_i2s_resume(), and __pi_i2s_suspend().
|
inlinestatic |
|
inlinestatic |
References udma_i2s, and udma_i2s_slot_cfg_get().
Referenced by __pi_i2s_resume().
|
inlinestatic |
References I2S_SLOT_DISABLE, udma_i2s, udma_i2s_slot_cfg_get(), and udma_i2s_slot_cfg_set().
|
inlinestatic |
References I2S_SLOT_ENABLE, udma_i2s, udma_i2s_slot_cfg_get(), and udma_i2s_slot_cfg_set().
|
inlinestatic |
References UDMA_CORE_LIN_DEFAULT, udma_i2s, udma_i2s_slot_cfg_get(), and udma_i2s_slot_cfg_set().
|
inlinestatic |
References udma_i2s, and udma_i2s_slot_cfg_set().
Referenced by __pi_i2s_resume().
|
inlinestatic |
References I2S_SLOT_DISABLE, udma_i2s, udma_i2s_slot_cfg_get(), and udma_i2s_slot_cfg_set().
|
inlinestatic |
References I2S_SLOT_ENABLE, udma_i2s, udma_i2s_slot_cfg_get(), and udma_i2s_slot_cfg_set().
|
inlinestatic |
References UDMA_CORE_LIN_DEFAULT, udma_i2s, udma_i2s_slot_cfg_get(), and udma_i2s_slot_cfg_set().
|
inlinestatic |
|
inlinestatic |
References udma_i2s, and udma_i2s_slot_en_set().
Referenced by __pi_i2s_resume(), and __pi_i2s_suspend().
|
inlinestatic |
References udma_i2s, and udma_i2s_slot_cfg_get().
Referenced by hal_udma_i2s_enqueue().
|
inlinestatic |
References udma_i2s, and udma_i2s_slot_cfg_get().
Referenced by hal_udma_i2s_enqueue().
|
inlinestatic |
References udma_i2s, and udma_i2s_word_size_get().
Referenced by __pi_i2s_slot_conf_apply().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
References GAP_READ.
Referenced by hal_udma_i2s_slot_cfg_get(), hal_udma_i2s_slot_cfg_rx_disable(), hal_udma_i2s_slot_cfg_rx_enable(), hal_udma_i2s_slot_cfg_rx_set(), hal_udma_i2s_slot_cfg_tx_disable(), hal_udma_i2s_slot_cfg_tx_enable(), hal_udma_i2s_slot_cfg_tx_set(), hal_udma_i2s_slot_rx_chan_id_get(), and hal_udma_i2s_slot_tx_chan_id_get().
|
inlinestatic |
SLOT_CFG_XX Register.
References GAP_WRITE.
Referenced by hal_udma_i2s_slot_cfg_rx_disable(), hal_udma_i2s_slot_cfg_rx_enable(), hal_udma_i2s_slot_cfg_rx_set(), hal_udma_i2s_slot_cfg_set(), hal_udma_i2s_slot_cfg_tx_disable(), hal_udma_i2s_slot_cfg_tx_enable(), and hal_udma_i2s_slot_cfg_tx_set().
|
inlinestatic |
References GAP_READ, and UDMA_I2S_WORD_SIZE_0_1_OFFSET.
Referenced by hal_udma_i2s_word_size_get(), hal_udma_i2s_word_size_rx_set(), and hal_udma_i2s_word_size_tx_set().
|
inlinestatic |
WORD_SIZE_X_Y Register.
References GAP_WRITE, and UDMA_I2S_WORD_SIZE_0_1_OFFSET.
Referenced by hal_udma_i2s_word_size_rx_set(), and hal_udma_i2s_word_size_tx_set().