Home
last modified time | relevance | path

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

/nrf_hw_models-3.5.0/src/HW_models/
DNRF_GPIO.c335 uint32_t diff = new_IN ^ NRF_GPIO_regs[port].IN; in nrf_gpio_eval_inputs() local
339 for (int n = __builtin_ffs(diff) - 1; n >= 0; n = __builtin_ffs(diff) - 1) { in nrf_gpio_eval_inputs()
341 diff &= ~(1 << n); in nrf_gpio_eval_inputs()
373 int diff = ((IO_level[port] >> n) & 0x1) ^ (uint32_t)value; in nrf_gpio_eval_input() local
375 if (diff == 0) { in nrf_gpio_eval_input()
409 uint32_t diff = new_output ^ O_level[port]; in nrf_gpio_eval_outputs() local
411 if (diff == 0) { in nrf_gpio_eval_outputs()
420 for (int n = __builtin_ffs(diff) - 1; n >= 0; n = __builtin_ffs(diff) - 1) { in nrf_gpio_eval_outputs()
422 diff &= ~(1 << n); in nrf_gpio_eval_outputs()