Home
last modified time | relevance | path

Searched refs:src_clk (Results 1 – 11 of 11) sorted by relevance

/hal_espressif-3.4.0/components/hal/include/hal/
Di2c_hal.h121 #define i2c_hal_set_source_clk(hal, src_clk) i2c_ll_set_source_clk((hal)->dev, src_clk) argument
213 void i2c_hal_set_scl_freq(i2c_hal_context_t *hal, uint32_t src_clk, uint32_t scl_freq);
439 void i2c_hal_set_bus_timing(i2c_hal_context_t *hal, int scl_freq, i2c_sclk_t src_clk);
/hal_espressif-3.4.0/components/hal/esp32c3/include/hal/
Di2c_ll.h102 #define I2C_LL_CLK_SRC_FREQ(src_clk) (((src_clk) == I2C_SCLK_RTC) ? 20*1000*1000 : 40*1000*1000); … argument
840 static inline void i2c_ll_set_source_clk(i2c_dev_t *hw, i2c_sclk_t src_clk) in i2c_ll_set_source_clk() argument
843 if (src_clk == I2C_SCLK_RTC) { in i2c_ll_set_source_clk()
848 hw->clk_conf.sclk_sel = (src_clk == I2C_SCLK_RTC) ? 1 : 0; in i2c_ll_set_source_clk()
/hal_espressif-3.4.0/components/hal/esp32h2/include/hal/
Di2c_ll.h98 #define I2C_LL_CLK_SRC_FREQ(src_clk) (((src_clk) == I2C_SCLK_RTC) ? 20*1000*1000 : 40*1000*1000); … argument
820 static inline void i2c_ll_set_source_clk(i2c_dev_t *hw, i2c_sclk_t src_clk) in i2c_ll_set_source_clk() argument
823 if (src_clk == I2C_SCLK_RTC) { in i2c_ll_set_source_clk()
828 hw->clk_conf.sclk_sel = (src_clk == I2C_SCLK_RTC) ? 1 : 0; in i2c_ll_set_source_clk()
/hal_espressif-3.4.0/components/hal/
Di2c_hal.c182 void i2c_hal_set_bus_timing(i2c_hal_context_t *hal, int scl_freq, i2c_sclk_t src_clk) in i2c_hal_set_bus_timing() argument
184 i2c_ll_set_source_clk(hal->dev, src_clk); in i2c_hal_set_bus_timing()
185 uint32_t sclk = I2C_LL_CLK_SRC_FREQ(src_clk); in i2c_hal_set_bus_timing()
/hal_espressif-3.4.0/components/driver/test/
Dtest_rmt.c135 rmt_source_clk_t src_clk; variable
153 TEST_ESP_OK(rmt_get_source_clk(channel, &src_clk));
154 TEST_ASSERT_EQUAL_INT(RMT_BASECLK_REF, src_clk);
159 TEST_ESP_OK(rmt_get_source_clk(channel, &src_clk));
160 TEST_ASSERT_EQUAL_INT(RMT_BASECLK_XTAL, src_clk);
/hal_espressif-3.4.0/components/hal/esp32s2/include/hal/
Di2c_ll.h96 #define I2C_LL_CLK_SRC_FREQ(src_clk) (((src_clk) == I2C_SCLK_REF_TICK) ? 1000*1000 : 80*1000*1000)… argument
810 static inline void i2c_ll_set_source_clk(i2c_dev_t *hw, i2c_sclk_t src_clk) in i2c_ll_set_source_clk() argument
813 hw->ctr.ref_always_on = (src_clk == I2C_SCLK_REF_TICK) ? 0 : 1; in i2c_ll_set_source_clk()
/hal_espressif-3.4.0/components/hal/esp32s3/include/hal/
Di2c_ll.h95 #define I2C_LL_CLK_SRC_FREQ(src_clk) (((src_clk) == I2C_SCLK_RTC) ? 8*1000*1000 : 40*1000*1000); /… argument
831 static inline void i2c_ll_set_source_clk(i2c_dev_t *hw, i2c_sclk_t src_clk) in i2c_ll_set_source_clk() argument
833 hw->clk_conf.sclk_sel = (src_clk == I2C_SCLK_RTC) ? 1 : 0; in i2c_ll_set_source_clk()
/hal_espressif-3.4.0/components/driver/
Di2c.c653 i2c_sclk_t src_clk = I2C_SCLK_DEFAULT; in i2c_param_config() local
661 src_clk = i2c_get_clk_src(i2c_conf->clk_flags, i2c_conf->master.clk_speed); in i2c_param_config()
662 … ESP_RETURN_ON_FALSE(src_clk != I2C_SCLK_MAX, ESP_ERR_INVALID_ARG, I2C_TAG, I2C_CLK_FLAG_ERR_STR); in i2c_param_config()
668 src_clk = I2C_SCLK_APB; in i2c_param_config()
670 src_clk = i2c_get_clk_src(i2c_conf->clk_flags, i2c_conf->slave.maximum_speed); in i2c_param_config()
671 … ESP_RETURN_ON_FALSE(src_clk != I2C_SCLK_MAX, ESP_ERR_INVALID_ARG, I2C_TAG, I2C_CLK_FLAG_ERR_STR); in i2c_param_config()
686 i2c_hal_set_source_clk(&(i2c_context[i2c_num].hal), src_clk); in i2c_param_config()
698 i2c_hal_set_bus_timing(&(i2c_context[i2c_num].hal), i2c_conf->master.clk_speed, src_clk); in i2c_param_config()
Drmt.c395 esp_err_t rmt_get_source_clk(rmt_channel_t channel, rmt_source_clk_t *src_clk) in rmt_get_source_clk() argument
399 *src_clk = (rmt_source_clk_t)rmt_ll_get_group_clock_src(rmt_contex.hal.regs, channel); in rmt_get_source_clk()
/hal_espressif-3.4.0/components/hal/esp32/include/hal/
Di2c_ll.h97 #define I2C_LL_CLK_SRC_FREQ(src_clk) (80*1000*1000) argument
800 static inline void i2c_ll_set_source_clk(i2c_dev_t *hw, i2c_sclk_t src_clk) in i2c_ll_set_source_clk() argument
/hal_espressif-3.4.0/components/driver/include/driver/
Drmt.h475 esp_err_t rmt_get_source_clk(rmt_channel_t channel, rmt_source_clk_t *src_clk);