Searched refs:pin_num (Results 1 – 8 of 8) sorted by relevance
/Zephyr-Core-3.4.0/drivers/pinctrl/ |
D | pinctrl_rpi_pico.c | 14 gpio_init(pin->pin_num); in pinctrl_configure_pin() 15 gpio_set_function(pin->pin_num, pin->alt_func); in pinctrl_configure_pin() 16 gpio_set_pulls(pin->pin_num, pin->pullup, pin->pulldown); in pinctrl_configure_pin() 17 gpio_set_drive_strength(pin->pin_num, pin->drive_strength); in pinctrl_configure_pin() 18 gpio_set_slew_rate(pin->pin_num, (pin->slew_rate ? in pinctrl_configure_pin() 20 gpio_set_input_hysteresis_enabled(pin->pin_num, pin->schmitt_enable); in pinctrl_configure_pin() 21 gpio_set_input_enabled(pin->pin_num, pin->input_enable); in pinctrl_configure_pin()
|
D | pinctrl_esp32.c | 166 uint32_t pin_num = ESP32_PIN_NUM(pin_mux); in esp32_pin_configure() local 171 if (ESP32_PORT_IDX(pin_num) >= esp32_gpio_ports_cnt) { in esp32_pin_configure() 175 port_addr = esp32_gpio_ports_addrs[ESP32_PORT_IDX(pin_num)]; in esp32_pin_configure() 227 if (ESP32_PORT_IDX(pin_num) == 0) { in esp32_pin_configure() 230 gpio_dev->out_w1ts = pin_num; in esp32_pin_configure() 235 gpio_dev->out1_w1ts.data = pin_num; in esp32_pin_configure() 241 if (ESP32_PORT_IDX(pin_num) == 0) { in esp32_pin_configure() 244 gpio_dev->out_w1tc = pin_num; in esp32_pin_configure() 249 gpio_dev->out1_w1tc.data = pin_num; in esp32_pin_configure() 254 esp32_pin_apply_config(pin_num, flags); in esp32_pin_configure() [all …]
|
D | pinctrl_gd32_afio.c | 119 uint8_t port_idx, mode, pin_num; in configure_pin() local 129 pin_num = GD32_PIN_GET(pin); in configure_pin() 130 pin_bit = BIT(pin_num); in configure_pin() 133 if (pin_num < 8U) { in configure_pin() 137 pin_num -= 8U; in configure_pin() 144 reg_val &= ~GPIO_MODE_MASK(pin_num); in configure_pin() 157 reg_val |= GPIO_MODE_SET(pin_num, mode); in configure_pin() 162 reg_val |= GPIO_MODE_SET(pin_num, GPIO_MODE_INP_FLOAT); in configure_pin() 164 reg_val |= GPIO_MODE_SET(pin_num, GPIO_MODE_INP_PUPD); in configure_pin()
|
D | pinctrl_gd32_af.c | 80 uint32_t port, pin_num, af, mode; in pinctrl_configure_pin() local 88 pin_num = BIT(GD32_PIN_GET(pin)); in pinctrl_configure_pin() 96 gpio_af_set(port, af, pin_num); in pinctrl_configure_pin() 101 gpio_mode_set(port, mode, GD32_PUPD_GET(pin), pin_num); in pinctrl_configure_pin() 103 GD32_OSPEED_GET(pin), pin_num); in pinctrl_configure_pin()
|
D | pinctrl_ifx_cat1.c | 97 uint32_t pin_num = CAT1_PINMUX_GET_PIN_NUM(pins[i].pinmux); in pinctrl_configure_pins() local 100 Cy_GPIO_Pin_FastInit(gpio_ports[port_num], pin_num, drv_mode, 1, hsiom); in pinctrl_configure_pins() 105 Cy_GPIO_Write(gpio_ports[port_num], pin_num, 1); in pinctrl_configure_pins() 108 Cy_GPIO_Write(gpio_ports[port_num], pin_num, 0); in pinctrl_configure_pins()
|
/Zephyr-Core-3.4.0/soc/arm/rpi_pico/rp2/ |
D | pinctrl_soc.h | 17 uint32_t pin_num : 5; member
|
/Zephyr-Core-3.4.0/drivers/gpio/ |
D | gpio_ifx_cat1.c | 194 uint32_t pin_num = CYHAL_GET_PIN((uint32_t) callback_arg); in gpio_event_callback() local 200 dev, 1 << pin_num); in gpio_event_callback()
|
/Zephyr-Core-3.4.0/include/zephyr/dt-bindings/pinctrl/ |
D | rpi-pico-rp2040-pinctrl.h | 28 #define RP2040_PINMUX(pin_num, alt_func) (pin_num << RP2_PIN_NUM_POS | \ argument
|