Home
last modified time | relevance | path

Searched refs:pin (Results 1 – 25 of 37) sorted by relevance

12

/hal_nordic-3.4.0/nrfx/drivers/src/
Dnrfx_gpiote.c185 static bool pin_in_use(uint32_t pin) in pin_in_use() argument
187 return m_cb.pin_flags[pin] & PIN_FLAG_IN_USE; in pin_in_use()
198 static bool pin_in_use_by_te(uint32_t pin) in pin_in_use_by_te() argument
200 return m_cb.pin_flags[pin] & PIN_FLAG_TE_USED; in pin_in_use_by_te()
209 static bool pin_has_trigger(uint32_t pin) in pin_has_trigger() argument
211 return PIN_FLAG_TRIG_MODE_GET(m_cb.pin_flags[pin]) != NRFX_GPIOTE_TRIGGER_NONE; in pin_has_trigger()
222 static bool pin_is_output(uint32_t pin) in pin_is_output() argument
224 return PIN_FLAG_IS_OUTPUT(m_cb.pin_flags[pin]); in pin_is_output()
233 static bool pin_is_task_output(uint32_t pin) in pin_is_task_output() argument
235 return pin_is_output(pin) && pin_in_use_by_te(pin); in pin_is_task_output()
[all …]
Dnrfx_spim.c212 static void pin_init(uint32_t pin, in pin_init() argument
220 if (pin == NRF_SPIM_PIN_NOT_CONNECTED) in pin_init()
229 nrfy_gpio_pin_set(pin); in pin_init()
233 nrfy_gpio_pin_clear(pin); in pin_init()
242 nrfy_gpio_cfg(pin, dir, input, pull, drive, NRF_GPIO_PIN_NOSENSE); in pin_init()
586 static void spim_pin_uninit(uint32_t pin) in spim_pin_uninit() argument
588 if (pin == NRF_SPIM_PIN_NOT_CONNECTED) in spim_pin_uninit()
593 nrfy_gpio_cfg_default(pin); in spim_pin_uninit()
Dnrfx_pwm.c115 uint32_t pin = nrfy_pwm_pin_get(p_instance->p_reg, ch_idx); in pins_deconfigure() local
116 if (pin != NRF_PWM_PIN_NOT_CONNECTED) in pins_deconfigure()
118 nrfy_gpio_cfg_default(pin); in pins_deconfigure()
Dnrfx_spis.c66 static void csn_event_handler(nrfx_gpiote_pin_t pin, in csn_event_handler() argument
70 (void)pin; in csn_event_handler()
/hal_nordic-3.4.0/nrfx/drivers/include/
Dnrfx_gpiote.h74 typedef void (*nrfx_gpiote_interrupt_handler_t)(nrfx_gpiote_pin_t pin,
233 nrfx_err_t nrfx_gpiote_input_configure(nrfx_gpiote_pin_t pin,
260 nrfx_err_t nrfx_gpiote_output_configure(nrfx_gpiote_pin_t pin,
276 nrfx_err_t nrfx_gpiote_pin_uninit(nrfx_gpiote_pin_t pin);
287 void nrfx_gpiote_trigger_enable(nrfx_gpiote_pin_t pin, bool int_enable);
294 void nrfx_gpiote_trigger_disable(nrfx_gpiote_pin_t pin);
314 nrfx_err_t nrfx_gpiote_channel_get(nrfx_gpiote_pin_t pin, uint8_t *p_channel);
321 void nrfx_gpiote_out_set(nrfx_gpiote_pin_t pin);
328 void nrfx_gpiote_out_clear(nrfx_gpiote_pin_t pin);
335 void nrfx_gpiote_out_toggle(nrfx_gpiote_pin_t pin);
[all …]
/hal_nordic-3.4.0/drivers/nrf_802154/driver/src/
Dnrf_802154_debug_core.h77 #define nrf_802154_pin_set(pin) NRF_P0->OUTSET = (1UL << (pin)) argument
78 #define nrf_802154_pin_clr(pin) NRF_P0->OUTCLR = (1UL << (pin)) argument
79 #define nrf_802154_pin_tgl(pin) \ argument
84 NRF_P0->OUTSET = (~ps & (1UL << (pin))); \
85 NRF_P0->OUTCLR = (ps & (1UL << (pin))); \
91 #define nrf_802154_pin_set(pin)
92 #define nrf_802154_pin_clr(pin)
93 #define nrf_802154_pin_tgl(pin)
/hal_nordic-3.4.0/nrfx/samples/src/nrfx_saadc/common/
Dsaadc_examples_common.c39 void gpiote_pin_toggle_task_setup(nrfx_gpiote_pin_t pin) in gpiote_pin_toggle_task_setup() argument
62 status = nrfx_gpiote_output_configure(pin, &output_config, &task_config); in gpiote_pin_toggle_task_setup()
65 nrfx_gpiote_out_task_enable(pin); in gpiote_pin_toggle_task_setup()
68 void pin_on_event_toggle_setup(nrfx_gpiote_pin_t pin, in pin_on_event_toggle_setup() argument
76 gpiote_pin_toggle_task_setup(pin); in pin_on_event_toggle_setup()
81 nrfx_gppi_channel_endpoints_setup(gppi_channel, eep, nrfx_gpiote_out_task_address_get(pin)); in pin_on_event_toggle_setup()
Dsaadc_examples_common.h86 void gpiote_pin_toggle_task_setup(nrfx_gpiote_pin_t pin);
94 void pin_on_event_toggle_setup(nrfx_gpiote_pin_t pin,
/hal_nordic-3.4.0/nrfx/samples/src/nrfx_gppi/fork/
DREADME.md18 …ay that sets up the TIMER COMPARE event to be forwarded via PPI/DPPI to GPIOTE and to toggle a pin.
19 Fork mechanism in PPI/DPPI is also set up to simultaneously toggle a second pin in GPIOTE.
42 - "GPIOTE output pin .primary.: <LED1_PIN> is low"
43 - "GPIOTE output pin .fork.: <LED2_PIN> is high"
45 - "GPIOTE output pin .primary.: <LED1_PIN> is high"
46 - "GPIOTE output pin .fork.: <LED2_PIN> is low"
49 > In the output, instead of `<LED1_PIN>` and `<LED2_PIN>`, you should see the corresponding pin num…
/hal_nordic-3.4.0/nrfx/hal/
Dnrf_common.h82 #define NRF_PIN_NUMBER_TO_PIN(pin) ((pin) & 0x1F) argument
85 #define NRF_PIN_NUMBER_TO_PORT(pin) ((pin) >> 5) argument
88 #define NRF_PIN_PORT_TO_PIN_NUMBER(pin, port) (((pin) & 0x1F) | ((port) << 5)) argument
Dnrf_gpiote.h343 uint32_t pin,
396 uint32_t pin,
579 uint32_t pin, in nrf_gpiote_event_configure() argument
583 p_reg->CONFIG[idx] |= ((pin << GPIOTE_CONFIG_PSEL_Pos) & GPIOTE_CONFIG_PORT_PIN_Msk) | in nrf_gpiote_event_configure()
624 uint32_t pin, in nrf_gpiote_task_configure() argument
632 p_reg->CONFIG[idx] |= ((pin << GPIOTE_CONFIG_PSEL_Pos) & GPIOTE_CONFIG_PORT_PIN_Msk) | in nrf_gpiote_task_configure()
/hal_nordic-3.4.0/nrfx/haly/
Dnrfy_i2s.h417 uint32_t pin = nrf_i2s_sck_pin_get(p_reg); in nrfy_i2s_sck_pin_get() local
419 return pin; in nrfy_i2s_sck_pin_get()
426 uint32_t pin = nrf_i2s_lrck_pin_get(p_reg); in nrfy_i2s_lrck_pin_get() local
428 return pin; in nrfy_i2s_lrck_pin_get()
435 uint32_t pin = nrf_i2s_mck_pin_get(p_reg); in nrfy_i2s_mck_pin_get() local
437 return pin; in nrfy_i2s_mck_pin_get()
444 uint32_t pin = nrf_i2s_sdout_pin_get(p_reg); in nrfy_i2s_sdout_pin_get() local
446 return pin; in nrfy_i2s_sdout_pin_get()
453 uint32_t pin = nrf_i2s_sdin_pin_get(p_reg); in nrfy_i2s_sdin_pin_get() local
455 return pin; in nrfy_i2s_sdin_pin_get()
Dnrfy_spim.h595 uint32_t pin = nrf_spim_sck_pin_get(p_reg); in nrfy_spim_sck_pin_get() local
597 return pin; in nrfy_spim_sck_pin_get()
604 uint32_t pin = nrf_spim_mosi_pin_get(p_reg); in nrfy_spim_mosi_pin_get() local
606 return pin; in nrfy_spim_mosi_pin_get()
613 uint32_t pin = nrf_spim_miso_pin_get(p_reg); in nrfy_spim_miso_pin_get() local
615 return pin; in nrfy_spim_miso_pin_get()
622 uint32_t pin, in nrfy_spim_csn_configure() argument
626 nrf_spim_csn_configure(p_reg, pin, polarity, duration); in nrfy_spim_csn_configure()
634 uint32_t pin = nrf_spim_csn_pin_get(p_reg); in nrfy_spim_csn_pin_get() local
636 return pin; in nrfy_spim_csn_pin_get()
[all …]
Dnrfy_gpiote.h236 uint32_t pin, in nrfy_gpiote_event_configure() argument
239 nrf_gpiote_event_configure(p_reg, idx, pin, polarity); in nrfy_gpiote_event_configure()
247 uint32_t pin = nrf_gpiote_event_pin_get(p_reg, idx); in nrfy_gpiote_event_pin_get() local
249 return pin; in nrfy_gpiote_event_pin_get()
280 uint32_t pin, in nrfy_gpiote_task_configure() argument
284 nrf_gpiote_task_configure(p_reg, idx, pin, polarity, init_val); in nrfy_gpiote_task_configure()
Dnrfy_uarte.h460 uint32_t pin = nrf_uarte_tx_pin_get(p_reg); in nrfy_uarte_tx_pin_get() local
462 return pin; in nrfy_uarte_tx_pin_get()
469 uint32_t pin = nrf_uarte_rx_pin_get(p_reg); in nrfy_uarte_rx_pin_get() local
471 return pin; in nrfy_uarte_rx_pin_get()
478 uint32_t pin = nrf_uarte_rts_pin_get(p_reg); in nrfy_uarte_rts_pin_get() local
480 return pin; in nrfy_uarte_rts_pin_get()
487 uint32_t pin = nrf_uarte_cts_pin_get(p_reg); in nrfy_uarte_cts_pin_get() local
489 return pin; in nrfy_uarte_cts_pin_get()
Dnrfy_gpio.h186 uint32_t pin = nrf_gpio_pin_read(pin_number); in nrfy_gpio_pin_read() local
188 return pin; in nrfy_gpio_pin_read()
195 uint32_t pin = nrf_gpio_pin_out_read(pin_number); in nrfy_gpio_pin_out_read() local
197 return pin; in nrfy_gpio_pin_out_read()
/hal_nordic-3.4.0/nrfx/samples/src/nrfx_gppi/one_to_one/
DREADME.md19 …ay that sets up the TIMER COMPARE event to be forwarded via PPI/DPPI to GPIOTE and to toggle a pin.
42 - "GPIOTE output pin: <LED1_PIN> is low"
44 - "GPIOTE output pin: <LED1_PIN> is high"
47 > In the output, instead of `<LED1_PIN>`, you should see the corresponding pin numbers defined in `…
/hal_nordic-3.4.0/nrfx/samples/src/nrfx_spim/blocking/
DREADME.md30 > Refer to pin definitions in `common/nrfx_example.h`.
/hal_nordic-3.4.0/nrfx/
DCHANGELOG.md32 - Changed a type of configuration structure members that hold a pin number from `uint8_t` to `uint3…
44 - Removed symbols that mark a pin as unused in the following drivers: I2S, PWM, SPIM, SPIS. Now the…
49 …ide driver configuration structure needs to be used instead of masking the pin number value. As a …
139 - Added the nrf_gpio_reconfigure() function for selective reconfiguration of the specified pin.
159 - Added high-drive pin configuration in the QSPI, TWIM, and SPIM drivers.
172 - Fixed spurious access of DCX pin for every instance of the peripheral when extended features were…
235 - Unified policy of pin cleanup procedure during uninitialization of the drivers. Now every driver …
242 - Fixed assertions that check pin numbers in the GPIO HAL and GPIOTE driver. Now noncontiguous grou…
289 - Added function in the GPIO HAL for selecting the MCU to control the specified pin.
307 - Changed the way of configuring the MISO pin pull setting in SPI and SPIM drivers. Now it can be s…
[all …]
/hal_nordic-3.4.0/nrfx/samples/src/nrfx_spim/non_blocking/
DREADME.md30 > Refer to pin definitions in `common/nrfx_example.h`.
/hal_nordic-3.4.0/nrfx/samples/src/nrfx_uarte/tx_rx_non_blocking/
DREADME.md32 > Refer to pin definitions in `common/nrfx_example.h`.
/hal_nordic-3.4.0/nrfx/samples/src/nrfx_twim_twis/tx_rx_blocking/
DREADME.md31 > Refer to pin definitions in `common/nrfx_example.h`.
/hal_nordic-3.4.0/nrfx/samples/common/
Dcommon-pinctrl.dtsi7 * based on pin symbols defined in `nrfx_example.h`.
/hal_nordic-3.4.0/nrfx/samples/src/nrfx_spim_spis/advanced_non_blocking/
DREADME.md35 > Refer to pin definitions in `common/nrfx_example.h`.
/hal_nordic-3.4.0/nrfx/samples/src/nrfx_spim_spis/non_blocking/
DREADME.md35 > Refer to pin definitions in `common/nrfx_example.h`.

12