STM32_GPIO_IDR
val = !!(readl_relaxed(bank->base + STM32_GPIO_IDR) &
return !!(readl_relaxed(bank->base + STM32_GPIO_IDR) & BIT(offset));