Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/pinctrl/
Dpinctrl_rpi_pico.c14 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()
22 gpio_set_oeover(pin->pin_num, pin->oe_override); in pinctrl_configure_pin()
Dpinctrl_gd32_afio.c120 uint8_t port_idx, mode, pin_num; in configure_pin() local
130 pin_num = GD32_PIN_GET(pin); in configure_pin()
131 pin_bit = BIT(pin_num); in configure_pin()
134 if (pin_num < 8U) { in configure_pin()
138 pin_num -= 8U; in configure_pin()
145 reg_val &= ~GPIO_MODE_MASK(pin_num); in configure_pin()
158 reg_val |= GPIO_MODE_SET(pin_num, new_mode); in configure_pin()
163 reg_val |= GPIO_MODE_SET(pin_num, GPIO_MODE_INP_FLOAT); in configure_pin()
165 reg_val |= GPIO_MODE_SET(pin_num, GPIO_MODE_INP_PUPD); in configure_pin()
Dpinctrl_esp32.c181 uint32_t pin_num = ESP32_PIN_NUM(pin_mux); in esp32_pin_configure() local
186 if (ESP32_PORT_IDX(pin_num) >= esp32_gpio_ports_cnt) { in esp32_pin_configure()
190 port_addr = esp32_gpio_ports_addrs[ESP32_PORT_IDX(pin_num)]; in esp32_pin_configure()
253 if (ESP32_PORT_IDX(pin_num) == 0) { in esp32_pin_configure()
256 gpio_dev->out_w1ts = BIT(pin_num); in esp32_pin_configure()
261 gpio_dev->out1_w1ts.data = BIT(pin_num - 32); in esp32_pin_configure()
267 if (ESP32_PORT_IDX(pin_num) == 0) { in esp32_pin_configure()
270 gpio_dev->out_w1tc = BIT(pin_num); in esp32_pin_configure()
275 gpio_dev->out1_w1tc.data = BIT(pin_num - 32); in esp32_pin_configure()
280 esp32_pin_apply_config(pin_num, flags); in esp32_pin_configure()
[all …]
Dpinctrl_gd32_af.c80 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()
Dpinctrl_ifx_cat1.c99 uint32_t pin_num = CAT1_PINMUX_GET_PIN_NUM(pins[i].pinmux); in pinctrl_configure_pins() local
102 Cy_GPIO_Pin_FastInit(gpio_ports[port_num], pin_num, drv_mode, 1, hsiom); in pinctrl_configure_pins()
107 Cy_GPIO_Write(gpio_ports[port_num], pin_num, 1); in pinctrl_configure_pins()
110 Cy_GPIO_Write(gpio_ports[port_num], pin_num, 0); in pinctrl_configure_pins()
Dpinctrl_ambiq.c55 am_hal_gpio_pinconfig(pin->pin_num, pin_config); in pinctrl_configure_pin()
/Zephyr-latest/drivers/gpio/
Dgpio_mchp_mec5.c82 uint32_t pin_num = 0u; in gpio_mec5_configure() local
90 ret = mec_hal_gpio_pin_num(port_num, pin, &pin_num); in gpio_mec5_configure()
106 ret = mec_hal_gpio_set_property(pin_num, MEC_GPIO_PWRGT_PROP_ID, in gpio_mec5_configure()
114 ret = mec_hal_gpio_set_props(pin_num, cfg_props_init, ARRAY_SIZE(cfg_props_init)); in gpio_mec5_configure()
138 mec_hal_gpio_pad_in(pin_num, &props[idx].val); in gpio_mec5_configure()
162 ret = mec_hal_gpio_set_props(pin_num, props, idx); in gpio_mec5_configure()
168 ret = mec_hal_gpio_set_property(pin_num, MEC_GPIO_OSEL_PROP_ID, MEC_GPIO_PROP_OSEL_PAROUT); in gpio_mec5_configure()
231 uint32_t pin_num = (uint32_t)MEC_PIN_MAX; in gpio_mec5_pin_interrupt_configure() local
251 mec_hal_gpio_pin_num(port_num, pin, &pin_num); in gpio_mec5_pin_interrupt_configure()
252 ret = mec_hal_gpio_set_props(pin_num, icfg_props_init, ARRAY_SIZE(icfg_props_init)); in gpio_mec5_pin_interrupt_configure()
[all …]
Dgpio_shell.c48 static char pin_num[PIN_NUM_MAX]; in port_pin_get() local
67 sprintf(pin_num, "%u", pin); in port_pin_get()
83 entry->help = pin_num; in port_pin_get()
86 entry->syntax = pin_num; in port_pin_get()
Dgpio_renesas_ra_ioport.c98 pincfg.pin_num = pin; in gpio_ra_pin_configure()
Dgpio_renesas_ra.c175 pincfg.pin_num = pin; in gpio_ra_pin_configure()
/Zephyr-latest/include/zephyr/dt-bindings/pinctrl/renesas/
Dpinctrl-ra.h53 #define RA_PSEL(psel, port_num, pin_num) \ argument
55 pin_num << RA_PIN_NUM_POS)
/Zephyr-latest/drivers/pinctrl/renesas/ra/
Dpinctrl_ra.c21 port_pin = (pin->port_num << PORT_POS) | pin->pin_num; in pinctrl_configure_pins()
37 pincfg->pin_num = pin; in ra_pinctrl_query_config()
/Zephyr-latest/soc/renesas/ra/common_fsp/
Dpinctrl_soc.h24 uint32_t pin_num: 4; member
43 .pin_num = RA_GET_PIN_NUM(DT_PROP_BY_IDX(node_id, prop, idx)), \
/Zephyr-latest/soc/raspberrypi/rpi_pico/common/
Dpinctrl_soc.h17 uint32_t pin_num : 5; member
/Zephyr-latest/soc/ambiq/apollo3x/
Dpinctrl_soc.h17 uint32_t pin_num: 7; member
/Zephyr-latest/soc/ambiq/apollo4x/
Dpinctrl_soc.h17 uint32_t pin_num : 7; member
/Zephyr-latest/include/zephyr/dt-bindings/pinctrl/
Drpi-pico-pinctrl-common.h22 #define RP2XXX_PINMUX(pin_num, alt_func) (pin_num << RP2_PIN_NUM_POS | alt_func << RP2_ALT_FUNC_POS) argument
Dambiq-apollo3-pinctrl.h16 #define APOLLO3_PINMUX(pin_num, alt_func) \ argument
17 (pin_num << APOLLO3_PIN_NUM_POS | alt_func << APOLLO3_ALT_FUNC_POS)
Dambiq-apollo4-pinctrl.h16 #define APOLLO4_PINMUX(pin_num, alt_func) (pin_num << APOLLO4_PIN_NUM_POS | \ argument