Home
last modified time | relevance | path

Searched refs:presc (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/i2c/
Di2c_ll_stm32_v2.c66 uint32_t presc; /* Timing prescaler */ member
886 uint32_t tpresc = (i2c_valid_timing[count].presc + 1U) * ti2cclk; in i2c_compute_scll_sclh()
931 if (presc != prev_presc) { \
932 i2c_valid_timing[i2c_valid_timing_nbr].presc = presc; \
935 prev_presc = presc; \
956 uint32_t presc, scldel, sdadel; in i2c_compute_presc_scldel_sdadel() local
995 for (presc = 0; presc < STM32_I2C_PRESC_MAX; presc++) { in i2c_compute_presc_scldel_sdadel()
998 uint32_t tscldel = (scldel + 1U) * (presc + 1U) * ti2cclk; in i2c_compute_presc_scldel_sdadel()
1003 uint32_t tsdadel = (sdadel * (presc + 1U)) * ti2cclk; in i2c_compute_presc_scldel_sdadel()
1036 timing = ((i2c_valid_timing[idx].presc & in stm32_i2c_configure_timing()
[all …]
/Zephyr-latest/drivers/adc/
Dadc_stm32.c1329 int presc = 2; local
1334 presc = 1;
1338 return presc;
1382 int presc; local
1394 presc = adc_stm32_get_clock_prescaler(config);
1395 if (presc < 0) {
1397 return presc;
1400 input_freq /= presc * adc_stm32_get_input_freq_prescaler();