Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/gpio/
Dgpio_mchp_mec5.c379 for (uint8_t pin_pos = 0; pin_pos < 32; pin++) { in gpio_mec5_get_direction() local
383 if ((map & BIT(pin_pos)) && (valid_msk & BIT(pin_pos))) { in gpio_mec5_get_direction()
391 *outputs |= BIT(pin_pos); in gpio_mec5_get_direction()
393 *inputs |= BIT(pin_pos); in gpio_mec5_get_direction()
397 map &= ~BIT(pin_pos); in gpio_mec5_get_direction()
/Zephyr-latest/samples/boards/nordic/mesh/onoff-app/src/
Dmain.c403 static uint8_t pin_to_sw(uint32_t pin_pos) in pin_to_sw() argument
405 switch (pin_pos) { in pin_to_sw()
412 printk("No match for GPIO pin 0x%08x\n", pin_pos); in pin_to_sw()
417 uint32_t pin_pos) in button_pressed() argument
443 sw.sw_num = pin_to_sw(pin_pos); in button_pressed()