Home
last modified time | relevance | path

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

/hal_espressif-latest/components/hal/
Dspi_flash_hal.c32 int best_div = 0; in get_flash_clock_divider() local
39 best_div = 3; in get_flash_clock_divider()
43 best_div = (int)DIV_ROUND_UP((double)clk_source, (double)cfg->freq_mhz); in get_flash_clock_divider()
45 …_LOGW(TAG, "Flash clock frequency round down to %d", (int)((double)clk_source / (double)best_div)); in get_flash_clock_divider()
49 return best_div; in get_flash_clock_divider()