Searched refs:scaler (Results 1 – 6 of 6) sorted by relevance
/Zephyr-latest/drivers/spi/ |
D | spi_nxp_s32.c | 96 uint8_t scaler; in spi_nxp_s32_getbestfreq() local 117 scaler = (low + high) / 2U; in spi_nxp_s32_getbestfreq() 120 (prescaler_arr[prescaler] * scaller_arr[scaler]); in spi_nxp_s32_getbestfreq() 127 low = scaler; in spi_nxp_s32_getbestfreq() 130 high = scaler; in spi_nxp_s32_getbestfreq() 136 best_baud->scaler = scaler; in spi_nxp_s32_getbestfreq() 147 if (high == scaler) { in spi_nxp_s32_getbestfreq() 149 scaler = low; in spi_nxp_s32_getbestfreq() 151 scaler = high; in spi_nxp_s32_getbestfreq() 155 (prescaler_arr[prescaler] * scaller_arr[scaler]); in spi_nxp_s32_getbestfreq() [all …]
|
D | spi_nxp_s32.h | 36 uint8_t scaler; member
|
D | spi_ll_stm32.c | 571 const uint32_t scaler[] = { in spi_stm32_configure() local 624 for (br = 1 ; br <= ARRAY_SIZE(scaler) ; ++br) { in spi_stm32_configure() 632 if (br > ARRAY_SIZE(scaler)) { in spi_stm32_configure() 636 clock >> ARRAY_SIZE(scaler)); in spi_stm32_configure() 641 LL_SPI_SetBaudRatePrescaler(spi, scaler[br - 1]); in spi_stm32_configure()
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_andes_atcwdt200.c | 219 static uint32_t wdt_atcwdt200_convtime(uint32_t timeout, uint32_t *scaler) in wdt_atcwdt200_convtime() argument 231 *scaler = i; in wdt_atcwdt200_convtime() 242 uint32_t rst_period, reg, counter_freq, scaler; in wdt_atcwdt200_install_timeout() local 249 rst_period = wdt_atcwdt200_convtime(cfg->window.max, &scaler); in wdt_atcwdt200_install_timeout() 262 if (scaler < 7) { in wdt_atcwdt200_install_timeout() 265 scaler = scaler - 7; in wdt_atcwdt200_install_timeout() 266 reg = scaler << 8; in wdt_atcwdt200_install_timeout()
|
D | wdt_sifive.c | 158 static int wdt_sifive_convtime(uint32_t timeout, int clk, int *scaler) in wdt_sifive_convtime() argument 176 *scaler = WDOGCFG_SCALE_MAX; in wdt_sifive_convtime() 180 *scaler = i; in wdt_sifive_convtime() 191 int cmp, scaler; in wdt_sifive_install_timeout() local 205 cmp = wdt_sifive_convtime(cfg->window.max, WDOG_CLK, &scaler); in wdt_sifive_install_timeout() 230 t |= mode | scaler; in wdt_sifive_install_timeout()
|
/Zephyr-latest/drivers/serial/ |
D | uart_apbuart.c | 83 uint32_t scaler; /* 0x000c */ member 207 unsigned int scaler; in get_baud() local 209 scaler = regs->scaler; in get_baud() 213 return core_clk_hz / ((scaler + 1) * 8); in get_baud() 219 unsigned int scaler; in set_baud() local 228 scaler = (core_clk_hz / (baud * 8)) - 1; in set_baud() 231 regs->scaler = scaler; in set_baud()
|