Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/watchdog/
Dwdt_npcx.c214 uint32_t wd_cnt, pre_scal; in wdt_npcx_setup() local
258 pre_scal = DIV_ROUND_UP(wd_cnt, 255); in wdt_npcx_setup()
264 wdcp = LOG2(pre_scal - 1) + 1; in wdt_npcx_setup()
265 pre_scal = 1 << wdcp; in wdt_npcx_setup()
268 inst->WDCNT = wd_cnt / pre_scal; in wdt_npcx_setup()