/Zephyr-latest/drivers/spi/ |
D | spi_nrfx_common.c | 10 int spi_nrfx_wake_init(const nrfx_gpiote_t *gpiote, uint32_t wake_pin) in spi_nrfx_wake_init() argument 25 res = nrfx_gpiote_channel_alloc(gpiote, &ch); in spi_nrfx_wake_init() 30 res = nrfx_gpiote_input_configure(gpiote, wake_pin, &input_config); in spi_nrfx_wake_init() 32 nrfx_gpiote_channel_free(gpiote, ch); in spi_nrfx_wake_init() 39 int spi_nrfx_wake_request(const nrfx_gpiote_t *gpiote, uint32_t wake_pin) in spi_nrfx_wake_request() argument 41 nrf_gpiote_event_t trigger_event = nrfx_gpiote_in_event_get(gpiote, wake_pin); in spi_nrfx_wake_request() 53 nrfx_gpiote_trigger_enable(gpiote, wake_pin, false); in spi_nrfx_wake_request() 61 while (!nrf_gpiote_event_check(gpiote->p_reg, trigger_event)) { in spi_nrfx_wake_request() 70 nrfx_gpiote_trigger_disable(gpiote, wake_pin); in spi_nrfx_wake_request()
|
D | spi_nrfx_common.h | 21 int spi_nrfx_wake_init(const nrfx_gpiote_t *gpiote, uint32_t wake_pin); 22 int spi_nrfx_wake_request(const nrfx_gpiote_t *gpiote, uint32_t wake_pin);
|
/Zephyr-latest/samples/boards/nordic/nrfx/src/ |
D | main.c | 20 #define GPIOTE_NODE DT_NODELABEL(_CONCAT(gpiote, GPIOTE_INST)) 23 "Both sw0 and led0 GPIOs must use the same GPIOTE instance"); 42 const nrfx_gpiote_t gpiote = NRFX_GPIOTE_INSTANCE(GPIOTE_INST); in main() local 44 /* Connect GPIOTE instance IRQ to irq handler */ in main() 48 /* Initialize GPIOTE (the interrupt priority passed as the parameter in main() 51 err = nrfx_gpiote_init(&gpiote, 0); in main() 57 err = nrfx_gpiote_channel_alloc(&gpiote, &in_channel); in main() 63 err = nrfx_gpiote_channel_alloc(&gpiote, &out_channel); in main() 86 err = nrfx_gpiote_input_configure(&gpiote, INPUT_PIN, &input_config); in main() 106 err = nrfx_gpiote_output_configure(&gpiote, OUTPUT_PIN, in main() [all …]
|
/Zephyr-latest/dts/bindings/gpio/ |
D | nordic,nrf-gpiote.yaml | 4 description: NRF5 GPIOTE node 6 compatible: "nordic,nrf-gpiote" 23 The GPIOTE instance number. GPIOTE instance GPIOTE0 has:
|
D | nordic,nrf-gpio.yaml | 14 gpiote-instance: 17 GPIOTE instance that can be used with this GPIO port. 26 Pins not included in the mask use GPIOTE channels in the event mode.
|
/Zephyr-latest/dts/arm/nordic/ |
D | nrf5340_cpuapp.dtsi | 81 * so we give it the 'gpiote' label for use when building 84 gpiote: gpiote0: gpiote@5000d000 { label 85 compatible = "nordic,nrf-gpiote"; 92 /* Additional Non-Secure GPIOTE instance */ 93 gpiote1: gpiote@4002f000 { 94 compatible = "nordic,nrf-gpiote";
|
D | nrf91.dtsi | 65 * so we give it the 'gpiote' label for use when building 68 gpiote: gpiote0: gpiote@5000d000 { label 69 compatible = "nordic,nrf-gpiote"; 76 /* Additional Non-Secure GPIOTE instance */ 77 gpiote1: gpiote@40031000 { 78 compatible = "nordic,nrf-gpiote";
|
D | nrf91ns.dtsi | 51 * so we give it the 'gpiote' label for use when building 54 gpiote: gpiote1: gpiote@40031000 { label 55 compatible = "nordic,nrf-gpiote";
|
D | nrf5340_cpuappns.dtsi | 55 * so we give it the 'gpiote' label for use when building 58 gpiote: gpiote1: gpiote@4002f000 { label 59 compatible = "nordic,nrf-gpiote";
|
D | nrf5340_cpunet.dtsi | 121 gpiote: gpiote0: gpiote@4100a000 { label 122 compatible = "nordic,nrf-gpiote"; 332 gpiote-instance = <&gpiote>; 343 gpiote-instance = <&gpiote>;
|
D | nrf51822.dtsi | 140 gpiote: gpiote0: gpiote@40006000 { label 141 compatible = "nordic,nrf-gpiote"; 326 gpiote-instance = <&gpiote>;
|
D | nrf52805.dtsi | 154 gpiote: gpiote0: gpiote@40006000 { label 155 compatible = "nordic,nrf-gpiote"; 334 gpiote-instance = <&gpiote>;
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_nrfx.c | 33 nrfx_gpiote_t gpiote; member 51 return cfg->gpiote.p_reg != NULL; in has_gpiote() 179 /* Get the GPIOTE channel associated with this pin, if any. It needs in gpio_nrfx_pin_configure() 183 err = nrfx_gpiote_channel_get(&cfg->gpiote, abs_pin, &ch); in gpio_nrfx_pin_configure() 189 (void)nrfx_gpiote_pin_uninit(&cfg->gpiote, abs_pin); in gpio_nrfx_pin_configure() 200 err = nrfx_gpiote_input_configure(&cfg->gpiote, in gpio_nrfx_pin_configure() 217 err = nrfx_gpiote_output_configure(&cfg->gpiote, in gpio_nrfx_pin_configure() 224 err = nrfx_gpiote_input_configure(&cfg->gpiote, in gpio_nrfx_pin_configure() 235 err = nrfx_gpiote_channel_free(&cfg->gpiote, ch); in gpio_nrfx_pin_configure() 356 nrfx_gpiote_trigger_disable(&cfg->gpiote, abs_pin); in gpio_nrfx_pin_interrupt_configure() [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/ |
D | radio_nrf5_dppi_gpiote.h | 7 /* Extracted from radio_nrf_dppi.h functions that reference gpiote variables. */ 28 static inline void hal_gpiote_tasks_setup(NRF_GPIOTE_Type *gpiote, in hal_gpiote_tasks_setup() argument 38 nrf_gpiote_subscribe_set(gpiote, task, ppi_ch_enable); in hal_gpiote_tasks_setup() 42 nrf_gpiote_subscribe_set(gpiote, task, ppi_ch_disable); in hal_gpiote_tasks_setup()
|
/Zephyr-latest/drivers/pwm/ |
D | Kconfig.nrf_sw | 16 GPIOTE channel and two PPI/DPPI channels and per pin. 18 When used with RTC, it provides up to 3 pins, utilizing one GPIOTE
|
D | pwm_nrf_sw.c | 65 nrfx_gpiote_t gpiote[PWM_0_MAP_SIZE]; member 127 NRF_GPIOTE_Type *gpiote; in pwm_nrf_sw_set_cycles() local 166 gpiote = config->gpiote[channel].p_reg; in pwm_nrf_sw_set_cycles() 191 /* clear GPIOTE config */ in pwm_nrf_sw_set_cycles() 192 nrf_gpiote_te_default(gpiote, gpiote_ch); in pwm_nrf_sw_set_cycles() 240 /* Configure GPIOTE - toggle task with proper initial output value. */ in pwm_nrf_sw_set_cycles() 241 gpiote->CONFIG[gpiote_ch] = in pwm_nrf_sw_set_cycles() 262 nrf_gpiote_task_address_get(gpiote, pulse_end_task); in pwm_nrf_sw_set_cycles() 264 nrf_gpiote_task_address_get(gpiote, period_end_task); in pwm_nrf_sw_set_cycles() 365 err = nrfx_gpiote_channel_alloc(&config->gpiote[i], in pwm_nrf_sw_init() [all …]
|
/Zephyr-latest/samples/boards/nordic/nrfx/ |
D | README.rst | 10 GPIOTE and DPPI/PPI are used as examples of nrfx drivers. 12 The code shows how to initialize the GPIOTE interrupt in Zephyr 19 for the GPIOTE interrupt. Button 1 is configured to create an event when pushed.
|
/Zephyr-latest/dts/bindings/display/ |
D | nordic,nrf-led-matrix.yaml | 63 GPIOs. If not provided, GPIOTE and PPI channels are allocated and 76 In case GPIOTE and PPI channels are used for generating the pixel pulse 79 If GPIOTE and PPI channels are used, the upper limit for the value is
|
/Zephyr-latest/samples/subsys/usb/uac2_explicit_feedback/ |
D | README.rst | 40 with the use of DPPI, TIMER and GPIOTE input. Alternatively, if the GPIOTE input 48 counting requires external connection between I2S LRCLK output pin to GPIOTE
|
D | Kconfig | 11 separate GPIOTE input pin (P1.09).
|
/Zephyr-latest/soc/nordic/common/ |
D | soc_nrf_common.h | 153 * @brief Convert a devicetree GPIO phandle+specifier to GPIOTE instance number. 155 * Some of nRF SoCs may have more instances of GPIOTE. 156 * To handle this, we use the "gpiote-instance" property of the GPIO node. 159 * "<&gpioX pin ...>" to a GPIOTE instance number. 172 * gpiote-instance = <&gpiote0>; 176 * gpiote-instance = <&gpiote20>;
|
/Zephyr-latest/boards/nordic/nrf5340_audio_dk/ |
D | nrf5340_audio_dk_config.c | 21 LOG_DBG("Setting gpiote latency to low power"); in core_config()
|
/Zephyr-latest/drivers/display/ |
D | display_nrf_led_matrix.c | 94 nrfx_gpiote_t gpiote; member 330 dev_config->gpiote.p_reg->CONFIG[dev_data->gpiote_ch[channel_idx]] = gpiote_cfg; in prepare_pixel_pulse() 360 dev_config->gpiote.p_reg->CONFIG[dev_data->gpiote_ch[i]] = 0; in timer_irq_handler() 456 err = nrfx_gpiote_channel_alloc(&dev_config->gpiote, gpiote_ch); in instance_init() 458 LOG_ERR("Failed to allocate GPIOTE channel."); in instance_init() 469 nrf_gpiote_event_address_get(dev_config->gpiote.p_reg, in instance_init() 524 "All column GPIOs must use the same GPIOTE instance"); 545 .gpiote = NRFX_GPIOTE_INSTANCE(
|
D | Kconfig.nrf_led_matrix | 18 devicetree, one PWM instance or one or more GPIOTE and PPI channels
|
/Zephyr-latest/samples/subsys/usb/uac2_explicit_feedback/src/ |
D | feedback_nrf53.c | 21 static const nrfx_gpiote_t gpiote = NRFX_GPIOTE_INSTANCE(0); variable 90 err = nrfx_gpiote_channel_alloc(&gpiote, &feedback_gpiote_channel); in feedback_edge_counter_setup() 95 nrfx_gpiote_input_configure(&gpiote, FEEDBACK_PIN, &input_pin_config); in feedback_edge_counter_setup() 96 nrfx_gpiote_trigger_enable(&gpiote, FEEDBACK_PIN, false); in feedback_edge_counter_setup() 113 /* Subscribe TIMER COUNT task to GPIOTE IN event */ in feedback_edge_counter_setup() 121 nrfx_gpiote_in_event_address_get(&gpiote, FEEDBACK_PIN), in feedback_edge_counter_setup()
|