Home
last modified time | relevance | path

Searched refs:p_config (Results 1 – 25 of 59) sorted by relevance

123

/external/platform/nrfx/drivers/src/
A Dnrfx_power.c100 NRFX_ASSERT(p_config); in nrfx_power_init()
150 NRFX_ASSERT(p_config != NULL); in nrfx_power_pof_init()
154 if (p_config->handler != NULL) in nrfx_power_pof_init()
156 m_pofwarn_handler = p_config->handler; in nrfx_power_pof_init()
199 NRFX_ASSERT(p_config != NULL); in nrfx_power_sleepevt_init()
202 if (p_config->handler != NULL) in nrfx_power_sleepevt_init()
211 if (p_config->en_enter) in nrfx_power_sleepevt_enable()
216 if (p_config->en_exit) in nrfx_power_sleepevt_enable()
239 NRFX_ASSERT(p_config != NULL); in nrfx_power_usbevt_init()
242 if (p_config->handler != NULL) in nrfx_power_usbevt_init()
[all …]
A Dnrfx_qspi.c90 if ((p_config->sck_pin == NRF_QSPI_PIN_NOT_CONNECTED) || in qspi_pins_configure()
93 (p_config->io1_pin == NRF_QSPI_PIN_NOT_CONNECTED)) in qspi_pins_configure()
98 nrf_qspi_pins_set(NRF_QSPI, p_config); in qspi_pins_configure()
122 NRFX_ASSERT(p_config); in nrfx_qspi_init()
128 if (!qspi_pins_configure(&p_config->pins)) in nrfx_qspi_init()
134 nrf_qspi_ifconfig0_set(NRF_QSPI, &p_config->prot_if); in nrfx_qspi_init()
135 nrf_qspi_ifconfig1_set(NRF_QSPI, &p_config->phy_if); in nrfx_qspi_init()
185 nrf_qspi_cinstr_transfer_start(NRF_QSPI, p_config); in nrfx_qspi_cinstr_xfer()
192 NRFX_ASSERT(p_config->wipwait); in nrfx_qspi_cinstr_xfer()
405 if (p_config) in nrfx_qspi_xip_encrypt()
[all …]
A Dnrfx_qdec.c94 NRFX_ASSERT(p_config); in nrfx_qdec_init()
109 nrf_qdec_sampleper_set(NRF_QDEC, p_config->sampleper); in nrfx_qdec_init()
110 nrf_gpio_cfg_input(p_config->psela, NRF_GPIO_PIN_NOPULL); in nrfx_qdec_init()
111 nrf_gpio_cfg_input(p_config->pselb, NRF_GPIO_PIN_NOPULL); in nrfx_qdec_init()
112 if (p_config->pselled != NRF_QDEC_LED_NOT_CONNECTED) in nrfx_qdec_init()
115 nrf_qdec_ledpre_set(NRF_QDEC, p_config->ledpre); in nrfx_qdec_init()
116 nrf_qdec_ledpol_set(NRF_QDEC, p_config->ledpol); in nrfx_qdec_init()
118 nrf_qdec_pins_set(NRF_QDEC, p_config->psela, p_config->pselb, p_config->pselled); in nrfx_qdec_init()
121 if (p_config->dbfen) in nrfx_qdec_init()
132 if (p_config->reportper != NRF_QDEC_REPORTPER_DISABLED) in nrfx_qdec_init()
[all …]
A Dnrfx_i2s.c111 mck_pin = p_config->mck_pin; in configure_pins()
122 sdout_pin = p_config->sdout_pin; in configure_pins()
133 sdin_pin = p_config->sdin_pin; in configure_pins()
142 p_config->sck_pin, in configure_pins()
143 p_config->lrck_pin, in configure_pins()
190 NRFX_ASSERT(p_config); in nrfx_i2s_init()
205 p_config->mode, in nrfx_i2s_init()
206 p_config->format, in nrfx_i2s_init()
211 p_config->ratio)) in nrfx_i2s_init()
221 nrf_i2s_clk_configure(NRF_I2S0, p_config->clksrc, p_config->enable_bypass); in nrfx_i2s_init()
[all …]
A Dnrfx_spim.c255 NRFX_ASSERT(p_config); in nrfx_spim_init()
272 ((p_config->use_hw_ss) && in nrfx_spim_init()
327 if (p_config->mode <= NRF_SPIM_MODE_1) in nrfx_spim_init()
335 nrf_gpio_cfg(p_config->sck_pin, in nrfx_spim_init()
344 mosi_pin = p_config->mosi_pin; in nrfx_spim_init()
355 miso_pin = p_config->miso_pin; in nrfx_spim_init()
366 p_cb->ss_pin = p_config->ss_pin; in nrfx_spim_init()
370 if (p_config->ss_active_high) in nrfx_spim_init()
380 if (p_config->use_hw_ss) in nrfx_spim_init()
409 nrf_spim_configure(p_spim, p_config->mode, p_config->bit_order); in nrfx_spim_init()
[all …]
A Dnrfx_spi.c73 NRFX_ASSERT(p_config); in nrfx_spi_init()
119 if (p_config->mode <= NRF_SPI_MODE_1) in nrfx_spi_init()
121 nrf_gpio_pin_clear(p_config->sck_pin); in nrfx_spi_init()
125 nrf_gpio_pin_set(p_config->sck_pin); in nrfx_spi_init()
127 nrf_gpio_cfg(p_config->sck_pin, in nrfx_spi_init()
136 mosi_pin = p_config->mosi_pin; in nrfx_spi_init()
147 miso_pin = p_config->miso_pin; in nrfx_spi_init()
157 nrf_gpio_pin_set(p_config->ss_pin); in nrfx_spi_init()
158 nrf_gpio_cfg_output(p_config->ss_pin); in nrfx_spi_init()
165 nrf_spi_configure(p_spi, p_config->mode, p_config->bit_order); in nrfx_spi_init()
[all …]
A Dnrfx_spis.c131 NRFX_ASSERT(p_config); in nrfx_spis_init()
187 nrf_gpio_cfg(p_config->miso_pin, in nrfx_spis_init()
193 miso_pin = p_config->miso_pin; in nrfx_spis_init()
202 nrf_gpio_cfg(p_config->mosi_pin, in nrfx_spis_init()
208 mosi_pin = p_config->mosi_pin; in nrfx_spis_init()
215 nrf_gpio_cfg(p_config->csn_pin, in nrfx_spis_init()
218 p_config->csn_pullup, in nrfx_spis_init()
222 nrf_gpio_cfg(p_config->sck_pin, in nrfx_spis_init()
229 nrf_spis_pins_set(p_spis, p_config->sck_pin, mosi_pin, miso_pin, p_config->csn_pin); in nrfx_spis_init()
235 nrf_spis_configure(p_spis, p_config->mode, p_config->bit_order); in nrfx_spis_init()
[all …]
A Dnrfx_comp.c73 nrfx_err_t nrfx_comp_init(nrfx_comp_config_t const * p_config, in nrfx_comp_init() argument
76 NRFX_ASSERT(p_config); in nrfx_comp_init()
111 nrf_comp_ref_set(NRF_COMP, p_config->reference); in nrfx_comp_init()
114 if (p_config->reference == COMP_REFSEL_REFSEL_ARef) in nrfx_comp_init()
116 nrf_comp_ext_ref_set(NRF_COMP, p_config->ext_ref); in nrfx_comp_init()
119 nrf_comp_th_set(NRF_COMP, p_config->threshold); in nrfx_comp_init()
120 nrf_comp_main_mode_set(NRF_COMP, p_config->main_mode); in nrfx_comp_init()
121 nrf_comp_speed_mode_set(NRF_COMP, p_config->speed_mode); in nrfx_comp_init()
122 nrf_comp_hysteresis_set(NRF_COMP, p_config->hyst); in nrfx_comp_init()
124 nrf_comp_isource_set(NRF_COMP, p_config->isource); in nrfx_comp_init()
[all …]
A Dnrfx_pdm.c173 NRFX_ASSERT(p_config); in nrfx_pdm_init()
186 if (p_config->gain_l > NRF_PDM_GAIN_MAXIMUM || in nrfx_pdm_init()
187 p_config->gain_r > NRF_PDM_GAIN_MAXIMUM) in nrfx_pdm_init()
204 nrf_pdm_ratio_set(NRF_PDM0, p_config->ratio); in nrfx_pdm_init()
208 nrf_pdm_mclksrc_configure(NRF_PDM0, p_config->mclksrc); in nrfx_pdm_init()
210 nrf_pdm_clock_set(NRF_PDM0, p_config->clock_freq); in nrfx_pdm_init()
211 nrf_pdm_mode_set(NRF_PDM0, p_config->mode, p_config->edge); in nrfx_pdm_init()
212 nrf_pdm_gain_set(NRF_PDM0, p_config->gain_l, p_config->gain_r); in nrfx_pdm_init()
214 nrf_gpio_cfg_output(p_config->pin_clk); in nrfx_pdm_init()
215 nrf_gpio_pin_clear(p_config->pin_clk); in nrfx_pdm_init()
[all …]
A Dnrfx_uart.c75 if (p_config->pseltxd != NRF_UART_PSEL_DISCONNECTED) in apply_config()
77 nrf_gpio_pin_set(p_config->pseltxd); in apply_config()
78 nrf_gpio_cfg_output(p_config->pseltxd); in apply_config()
80 if (p_config->pselrxd != NRF_UART_PSEL_DISCONNECTED) in apply_config()
87 nrf_uart_txrx_pins_set(p_instance->p_reg, p_config->pseltxd, p_config->pselrxd); in apply_config()
96 nrf_gpio_pin_set(p_config->pselrts); in apply_config()
97 nrf_gpio_cfg_output(p_config->pselrts); in apply_config()
99 nrf_uart_hwfc_pins_set(p_instance->p_reg, p_config->pselrts, p_config->pselcts); in apply_config()
161 NRFX_ASSERT(p_config); in nrfx_uart_init()
191 apply_config(p_instance, p_config); in nrfx_uart_init()
[all …]
A Dnrfx_uarte.c106 if (p_config->pseltxd != NRF_UARTE_PSEL_DISCONNECTED) in apply_config()
108 nrf_gpio_pin_set(p_config->pseltxd); in apply_config()
109 nrf_gpio_cfg_output(p_config->pseltxd); in apply_config()
111 if (p_config->pselrxd != NRF_UARTE_PSEL_DISCONNECTED) in apply_config()
118 nrf_uarte_txrx_pins_set(p_instance->p_reg, p_config->pseltxd, p_config->pselrxd); in apply_config()
127 nrf_gpio_pin_set(p_config->pselrts); in apply_config()
128 nrf_gpio_cfg_output(p_config->pselrts); in apply_config()
130 nrf_uarte_hwfc_pins_set(p_instance->p_reg, p_config->pselrts, p_config->pselcts); in apply_config()
239 NRFX_ASSERT(p_config); in nrfx_uarte_init()
278 apply_config(p_instance, p_config); in nrfx_uarte_init()
[all …]
A Dnrfx_usbreg.c45 void nrfx_usbreg_init(nrfx_usbreg_config_t const * p_config) in nrfx_usbreg_init() argument
47 NRFX_ASSERT(p_config != NULL); in nrfx_usbreg_init()
48 NRFX_ASSERT(p_config->handler != NULL); in nrfx_usbreg_init()
51 m_usbevt_handler = p_config->handler; in nrfx_usbreg_init()
53 NRFX_IRQ_PRIORITY_SET(nrfx_get_irq_number(NRF_USBREGULATOR), p_config->irq_priority); in nrfx_usbreg_init()
A Dnrfx_lpcomp.c73 nrfx_err_t nrfx_lpcomp_init(nrfx_lpcomp_config_t const * p_config, in nrfx_lpcomp_init() argument
76 NRFX_ASSERT(p_config); in nrfx_lpcomp_init()
102 nrf_lpcomp_configure(NRF_LPCOMP, &(p_config->hal)); in nrfx_lpcomp_init()
104 nrf_lpcomp_input_select(NRF_LPCOMP, p_config->input); in nrfx_lpcomp_init()
106 switch (p_config->hal.detection) in nrfx_lpcomp_init()
125 NRFX_IRQ_PRIORITY_SET(nrfx_get_irq_number(NRF_LPCOMP), p_config->interrupt_priority); in nrfx_lpcomp_init()
A Dnrfx_pwm.c82 nrfx_pwm_config_t const * p_config) in configure_pins() argument
89 uint8_t output_pin = p_config->output_pins[i]; in configure_pins()
95 if (!p_config->skip_gpio_cfg) in configure_pins()
131 nrfx_pwm_config_t const * p_config, in nrfx_pwm_init() argument
135 NRFX_ASSERT(p_config); in nrfx_pwm_init()
153 configure_pins(p_instance, p_config); in nrfx_pwm_init()
157 p_config->base_clock, p_config->count_mode, p_config->top_value); in nrfx_pwm_init()
159 p_config->load_mode, p_config->step_mode); in nrfx_pwm_init()
174 NRFX_IRQ_PRIORITY_SET(DMA_ISSUE_EGU_IRQn, p_config->irq_priority); in nrfx_pwm_init()
181 p_config->irq_priority); in nrfx_pwm_init()
A Dnrfx_twis.c459 NRFX_ASSERT(p_config); in nrfx_twis_init()
460 NRFX_ASSERT(p_config->scl != p_config->sda); in nrfx_twis_init()
506 nrfx_twis_config_pin(p_config->scl, p_config->scl_pull); in nrfx_twis_init()
507 nrfx_twis_config_pin(p_config->sda, p_config->sda_pull); in nrfx_twis_init()
510 if (0 == (p_config->addr[0] | p_config->addr[1])) in nrfx_twis_init()
516 if (0 != p_config->addr[0]) in nrfx_twis_init()
520 if (0 != p_config->addr[1]) in nrfx_twis_init()
530 p_config->interrupt_priority); in nrfx_twis_init()
534 nrf_twis_pins_set (p_reg, p_config->scl, p_config->sda); in nrfx_twis_init()
535 nrf_twis_address_set (p_reg, 0, p_config->addr[0]); in nrfx_twis_init()
[all …]
A Dnrfx_rng.c51 nrfx_err_t nrfx_rng_init(nrfx_rng_config_t const * p_config, nrfx_rng_evt_handler_t handler) in nrfx_rng_init() argument
53 NRFX_ASSERT(p_config); in nrfx_rng_init()
62 if (p_config->error_correction) in nrfx_rng_init()
67 NRFX_IRQ_PRIORITY_SET(RNG_IRQn, p_config->interrupt_priority); in nrfx_rng_init()
A Dnrfx_gpiote.c283 NRFX_ASSERT(p_config); in nrfx_gpiote_out_init()
293 if (p_config->task_pin) in nrfx_gpiote_out_init()
302 p_config->action, in nrfx_gpiote_out_init()
303 p_config->init_state); in nrfx_gpiote_out_init()
317 if (p_config->init_state == NRF_GPIOTE_INITIAL_VALUE_HIGH) in nrfx_gpiote_out_init()
510 nrfx_gpiote_in_config_t const * p_config, in nrfx_gpiote_in_init() argument
515 NRFX_ASSERT(p_config); in nrfx_gpiote_in_init()
529 if (!p_config->skip_gpio_setup) in nrfx_gpiote_in_init()
531 if (p_config->is_watcher) in nrfx_gpiote_in_init()
537 nrf_gpio_cfg_input(pin, p_config->pull); in nrfx_gpiote_in_init()
[all …]
A Dnrfx_ipc.c66 void nrfx_ipc_config_load(const nrfx_ipc_config_t * p_config) in nrfx_ipc_config_load() argument
68 NRFX_ASSERT(p_config); in nrfx_ipc_config_load()
74 nrf_ipc_send_config_set(NRF_IPC, i, p_config->send_task_config[i]); in nrfx_ipc_config_load()
79 nrf_ipc_receive_config_set(NRF_IPC, i, p_config->receive_event_config[i]); in nrfx_ipc_config_load()
82 nrf_ipc_int_enable(NRF_IPC, p_config->receive_events_enabled); in nrfx_ipc_config_load()
A Dnrfx_timer.c74 nrfx_timer_config_t const * p_config, in nrfx_timer_init() argument
81 NRFX_ASSERT(p_config); in nrfx_timer_init()
102 NRFX_ASSERT(NRF_TIMER_IS_BIT_WIDTH_VALID(p_instance->p_reg, p_config->bit_width)); in nrfx_timer_init()
107 p_cb->context = p_config->p_context; in nrfx_timer_init()
117 p_config->interrupt_priority); in nrfx_timer_init()
120 nrf_timer_mode_set(p_instance->p_reg, p_config->mode); in nrfx_timer_init()
121 nrf_timer_bit_width_set(p_instance->p_reg, p_config->bit_width); in nrfx_timer_init()
122 nrf_timer_frequency_set(p_instance->p_reg, p_config->frequency); in nrfx_timer_init()
A Dnrfx_wdt.c58 nrfx_wdt_config_t const * p_config, in nrfx_wdt_init() argument
61 NRFX_ASSERT(p_config); in nrfx_wdt_init()
85 nrf_wdt_behaviour_set(p_instance->p_reg, p_config->behaviour); in nrfx_wdt_init()
87 uint64_t ticks = (p_config->reload_value * 32768ULL) / 1000; in nrfx_wdt_init()
96 NRFX_IRQ_PRIORITY_SET(nrfx_get_irq_number(p_instance->p_reg), p_config->interrupt_priority); in nrfx_wdt_init()
/external/platform/nrfx/hal/
A Dnrf_qspi.h705 uint32_t config = p_config->readoc; in nrf_qspi_ifconfig0_set()
706 config |= ((uint32_t)p_config->writeoc) << QSPI_IFCONFIG0_WRITEOC_Pos; in nrf_qspi_ifconfig0_set()
718 config |= p_config->sck_delay; in nrf_qspi_ifconfig1_set()
719 config |= (p_config->dpmen ? 1U : 0U) << QSPI_IFCONFIG1_DPMEN_Pos; in nrf_qspi_ifconfig1_set()
720 config |= ((uint32_t)(p_config->spi_mode)) << QSPI_IFCONFIG1_SPIMODE_Pos; in nrf_qspi_ifconfig1_set()
729 uint32_t config = p_config->opcode; in nrf_qspi_addrconfig_set()
730 config |= ((uint32_t)p_config->byte0) << QSPI_ADDRCONF_BYTE0_Pos; in nrf_qspi_addrconfig_set()
731 config |= ((uint32_t)p_config->byte1) << QSPI_ADDRCONF_BYTE1_Pos; in nrf_qspi_addrconfig_set()
732 config |= ((uint32_t)(p_config->mode)) << QSPI_ADDRCONF_MODE_Pos; in nrf_qspi_addrconfig_set()
733 config |= (p_config->wipwait ? 1U : 0U) << QSPI_ADDRCONF_WIPWAIT_Pos; in nrf_qspi_addrconfig_set()
[all …]
A Dnrf_adc.h264 NRF_STATIC_INLINE void nrf_adc_init(NRF_ADC_Type * p_reg, nrf_adc_config_t const * p_config);
336 NRF_STATIC_INLINE void nrf_adc_init(NRF_ADC_Type * p_reg, nrf_adc_config_t const * p_config) in nrf_adc_init() argument
339 ((p_config->resolution << ADC_CONFIG_RES_Pos) & ADC_CONFIG_RES_Msk) in nrf_adc_init()
340 |((p_config->scaling << ADC_CONFIG_INPSEL_Pos) & ADC_CONFIG_INPSEL_Msk) in nrf_adc_init()
341 |((p_config->reference << ADC_CONFIG_REFSEL_Pos) & ADC_CONFIG_REFSEL_Msk) in nrf_adc_init()
342 |((p_config->input << ADC_CONFIG_PSEL_Pos) & ADC_CONFIG_PSEL_Msk) in nrf_adc_init()
343 |((p_config->extref << ADC_CONFIG_EXTREFSEL_Pos) & ADC_CONFIG_EXTREFSEL_Msk); in nrf_adc_init()
A Dnrf_lpcomp.h168 nrf_lpcomp_config_t const * p_config);
309 nrf_lpcomp_config_t const * p_config) in nrf_lpcomp_configure() argument
314 (p_config->reference << LPCOMP_REFSEL_REFSEL_Pos) & LPCOMP_REFSEL_REFSEL_Msk; in nrf_lpcomp_configure()
317 if ((p_config->reference & LPCOMP_REFSEL_REFSEL_ARef)==LPCOMP_REFSEL_REFSEL_ARef) in nrf_lpcomp_configure()
319 uint32_t extref = p_config->reference >> 16; in nrf_lpcomp_configure()
324 p_reg->ANADETECT = (p_config->detection << LPCOMP_ANADETECT_ANADETECT_Pos) & in nrf_lpcomp_configure()
327 p_reg->HYST = ((p_config->hyst) << LPCOMP_HYST_HYST_Pos) & LPCOMP_HYST_HYST_Msk; in nrf_lpcomp_configure()
/external/platform/nrfx/drivers/include/
A Dnrfx_power.h251 nrfx_err_t nrfx_power_init(nrfx_power_config_t const * p_config);
273 void nrfx_power_pof_init(nrfx_power_pofwarn_config_t const * p_config);
283 void nrfx_power_pof_enable(nrfx_power_pofwarn_config_t const * p_config);
311 void nrfx_power_sleepevt_init(nrfx_power_sleepevt_config_t const * p_config);
318 void nrfx_power_sleepevt_enable(nrfx_power_sleepevt_config_t const * p_config);
341 void nrfx_power_usbevt_init(nrfx_power_usbevt_config_t const * p_config);
A Dnrfx_qspi.h155 nrfx_err_t nrfx_qspi_init(nrfx_qspi_config_t const * p_config,
273 nrfx_err_t nrfx_qspi_cinstr_xfer(nrf_qspi_cinstr_conf_t const * p_config,
308 nrfx_err_t nrfx_qspi_lfm_start(nrf_qspi_cinstr_conf_t const * p_config);
342 nrfx_err_t nrfx_qspi_xip_encrypt(nrf_qspi_encryption_t const * p_config);
355 nrfx_err_t nrfx_qspi_dma_encrypt(nrf_qspi_encryption_t const * p_config);

Completed in 806 milliseconds

123