Home
last modified time | relevance | path

Searched refs:half_cycle (Results 1 – 5 of 5) sorted by relevance

/hal_espressif-3.6.0/components/hal/esp32s3/include/hal/
Di2c_ll.h115 uint32_t half_cycle = sclk_freq / bus_freq / 2; in i2c_ll_cal_bus_clk() local
118 clk_cal->scl_low = half_cycle; in i2c_ll_cal_bus_clk()
120 clk_cal->scl_high = (bus_freq <= 50000) ? half_cycle : (half_cycle / 5 * 4 + 4); in i2c_ll_cal_bus_clk()
121 clk_cal->scl_wait_high = half_cycle - clk_cal->scl_high; in i2c_ll_cal_bus_clk()
122 clk_cal->sda_hold = half_cycle / 2; in i2c_ll_cal_bus_clk()
124 clk_cal->sda_sample = half_cycle / 2; in i2c_ll_cal_bus_clk()
125 clk_cal->setup = half_cycle; in i2c_ll_cal_bus_clk()
126 clk_cal->hold = half_cycle; in i2c_ll_cal_bus_clk()
129 clk_cal->tout = (int)(sizeof(half_cycle) * 8 - __builtin_clz(5 * half_cycle)) + 2; in i2c_ll_cal_bus_clk()
/hal_espressif-3.6.0/components/hal/esp32h2/include/hal/
Di2c_ll.h120 uint32_t half_cycle = sclk_freq / bus_freq / 2; in i2c_ll_cal_bus_clk() local
123 clk_cal->scl_low = half_cycle; in i2c_ll_cal_bus_clk()
125 …int scl_wait_high = (bus_freq <= 50000) ? 0 : (half_cycle / 8); // compensate the time when freq >… in i2c_ll_cal_bus_clk()
127 clk_cal->scl_high = half_cycle - scl_wait_high; in i2c_ll_cal_bus_clk()
128 clk_cal->sda_hold = half_cycle / 4; in i2c_ll_cal_bus_clk()
130 clk_cal->sda_sample = half_cycle / 2; in i2c_ll_cal_bus_clk()
131 clk_cal->setup = half_cycle; in i2c_ll_cal_bus_clk()
132 clk_cal->hold = half_cycle; in i2c_ll_cal_bus_clk()
135 clk_cal->tout = (int)(sizeof(half_cycle) * 8 - __builtin_clz(5 * half_cycle)) + 2; in i2c_ll_cal_bus_clk()
/hal_espressif-3.6.0/components/hal/esp32c3/include/hal/
Di2c_ll.h124 uint32_t half_cycle = sclk_freq / bus_freq / 2; in i2c_ll_cal_bus_clk() local
127 clk_cal->scl_low = half_cycle; in i2c_ll_cal_bus_clk()
129 …int scl_wait_high = (bus_freq <= 50000) ? 0 : (half_cycle / 8); // compensate the time when freq >… in i2c_ll_cal_bus_clk()
131 clk_cal->scl_high = half_cycle - scl_wait_high; in i2c_ll_cal_bus_clk()
132 clk_cal->sda_hold = half_cycle / 4; in i2c_ll_cal_bus_clk()
134 clk_cal->sda_sample = half_cycle / 2; in i2c_ll_cal_bus_clk()
135 clk_cal->setup = half_cycle; in i2c_ll_cal_bus_clk()
136 clk_cal->hold = half_cycle; in i2c_ll_cal_bus_clk()
139 clk_cal->tout = (int)(sizeof(half_cycle) * 8 - __builtin_clz(5 * half_cycle)) + 2; in i2c_ll_cal_bus_clk()
/hal_espressif-3.6.0/components/hal/esp32s2/include/hal/
Di2c_ll.h110 uint32_t half_cycle = source_clk / bus_freq / 2; in i2c_ll_cal_bus_clk() local
112 clk_cal->scl_low = half_cycle; in i2c_ll_cal_bus_clk()
114 clk_cal->scl_high = half_cycle / 2 + 2; in i2c_ll_cal_bus_clk()
115 clk_cal->scl_wait_high = half_cycle - clk_cal->scl_high; in i2c_ll_cal_bus_clk()
116 clk_cal->sda_hold = half_cycle / 2; in i2c_ll_cal_bus_clk()
118 clk_cal->sda_sample = half_cycle / 2 - 1; in i2c_ll_cal_bus_clk()
119 clk_cal->setup = half_cycle; in i2c_ll_cal_bus_clk()
120 clk_cal->hold = half_cycle; in i2c_ll_cal_bus_clk()
122 clk_cal->tout = half_cycle * 20; in i2c_ll_cal_bus_clk()
/hal_espressif-3.6.0/components/hal/esp32/include/hal/
Di2c_ll.h112 uint32_t half_cycle = source_clk / bus_freq / 2; in i2c_ll_cal_bus_clk() local
113 clk_cal->scl_low = half_cycle; in i2c_ll_cal_bus_clk()
114 clk_cal->scl_high = half_cycle; in i2c_ll_cal_bus_clk()
115 clk_cal->sda_hold = half_cycle / 2; in i2c_ll_cal_bus_clk()
117 clk_cal->setup = half_cycle; in i2c_ll_cal_bus_clk()
118 clk_cal->hold = half_cycle; in i2c_ll_cal_bus_clk()
119 clk_cal->tout = half_cycle * 20; //default we set the timeout value to 10 bus cycles. in i2c_ll_cal_bus_clk()