Home
last modified time | relevance | path

Searched refs:polarity (Results 1 – 9 of 9) sorted by relevance

/lk-master/dev/keys/
A Dgpio_keypad.c54 static void check_output(struct gpio_kp *kp, int out, int polarity) { in check_output() argument
65 if (gpio_get(gpio) ^ !polarity) { in check_output()
81 gpio_set(gpio, !polarity); in check_output()
90 int polarity = !!(kpinfo->flags & GPIOKPF_ACTIVE_HIGH); in gpio_keypad_timer_func() local
99 check_output(kp, out, polarity); in gpio_keypad_timer_func()
107 gpio_set(gpio, polarity); in gpio_keypad_timer_func()
109 gpio_config(gpio, polarity ? GPIO_OUTPUT : 0); in gpio_keypad_timer_func()
126 gpio_set(kpinfo->output_gpios[out], polarity); in gpio_keypad_timer_func()
128 gpio_config(kpinfo->output_gpios[out], polarity ? GPIO_OUTPUT : 0); in gpio_keypad_timer_func()
/lk-master/external/platform/nrfx/drivers/src/
A Dnrfx_gpiote.c568 nrf_gpiote_polarity_t polarity = in nrfx_gpiote_in_event_enable() local
571 if (polarity == NRF_GPIOTE_POLARITY_TOGGLE) in nrfx_gpiote_in_event_enable()
579 sense = (polarity == NRF_GPIOTE_POLARITY_LOTOHI) ? in nrfx_gpiote_in_event_enable()
724 ((polarity == NRF_GPIOTE_POLARITY_TOGGLE) || in port_event_handle()
728 handler(pin, polarity); in port_event_handle()
807 ((polarity == NRF_GPIOTE_POLARITY_TOGGLE) || in port_event_handle()
809 polarity == NRF_GPIOTE_POLARITY_LOTOHI) || in port_event_handle()
811 polarity == NRF_GPIOTE_POLARITY_HITOLO))) in port_event_handle()
813 handler(pin, polarity); in port_event_handle()
872 NRFX_LOG_DEBUG("Pin: %d, polarity: %d.", pin, polarity); in nrfx_gpiote_irq_handler()
[all …]
/lk-master/external/platform/pico/rp2_common/hardware_pio/include/hardware/
A Dpio_instructions.h108 inline static uint pio_encode_wait_gpio(bool polarity, uint pin) { in pio_encode_wait_gpio() argument
109 return _pio_encode_instr_and_args(pio_instr_bits_wait, 0u | (polarity ? 4u : 0u), pin); in pio_encode_wait_gpio()
112 inline static uint pio_encode_wait_pin(bool polarity, uint pin) { in pio_encode_wait_pin() argument
113 return _pio_encode_instr_and_args(pio_instr_bits_wait, 1u | (polarity ? 4u : 0u), pin); in pio_encode_wait_pin()
116 inline static uint pio_encode_wait_irq(bool polarity, bool relative, uint irq) { in pio_encode_wait_irq() argument
118 …return _pio_encode_instr_and_args(pio_instr_bits_wait, 2u | (polarity ? 4u : 0u), _pio_encode_irq(… in pio_encode_wait_irq()
/lk-master/external/platform/nrfx/hal/
A Dnrf_gpiote.h297 nrf_gpiote_polarity_t polarity);
350 nrf_gpiote_polarity_t polarity,
509 nrf_gpiote_polarity_t polarity) in nrf_gpiote_event_configure() argument
513 ((polarity << GPIOTE_CONFIG_POLARITY_Pos) & GPIOTE_CONFIG_POLARITY_Msk); in nrf_gpiote_event_configure()
554 nrf_gpiote_polarity_t polarity, in nrf_gpiote_task_configure() argument
562 ((polarity << GPIOTE_CONFIG_POLARITY_Pos) & GPIOTE_CONFIG_POLARITY_Msk) | in nrf_gpiote_task_configure()
A Dnrf_spim.h405 nrf_spim_csn_pol_t polarity,
710 nrf_spim_csn_pol_t polarity, in nrf_spim_csn_configure() argument
714 p_reg->CSNPOL = polarity; in nrf_spim_csn_configure()
/lk-master/platform/mediatek/common/gic/include/
A Dmt_gic.h25 void mt_irq_set_polarity(unsigned int irq, unsigned int polarity);
/lk-master/platform/mediatek/mt6735/include/platform/
A Dmt_irq.h110 void mt_irq_set_polarity(unsigned int irq, unsigned int polarity);
/lk-master/platform/mediatek/mt6735/
A Dinterrupts.c173 void mt_irq_set_polarity(unsigned int irq, unsigned int polarity) { in mt_irq_set_polarity() argument
185 if (polarity == 0) { in mt_irq_set_polarity()
/lk-master/platform/mediatek/common/gic/
A Dmt_gic_v3.c229 void mt_irq_set_polarity(unsigned int irq, unsigned int polarity) { in mt_irq_set_polarity() argument
241 if (polarity == 0) { in mt_irq_set_polarity()

Completed in 17 milliseconds