/* Map GPIO pins to button number Change to select different GPIO input pins  */
static uint8_t pin_to_sw(uint32_t pin_pos)
/* Map GPIO pins to button number Change to select different GPIO input pins  */
static uint8_t pin_to_sw(uint32_t pin_pos)
{
	switch (pin_pos) {
	case BIT(DT_GPIO_PIN(DT_ALIAS(sw0), gpios)): return 0;
	case BIT(DT_GPIO_PIN(DT_ALIAS(sw1), gpios)): return 1;
	case BIT(DT_GPIO_PIN(DT_ALIAS(sw2), gpios)): return 2;
	case BIT(DT_GPIO_PIN(DT_ALIAS(sw3), gpios)): return 3;
	}
	printk("No match for GPIO pin 0x%08x\n", pin_pos);
	return 0;
}