/lk-master/external/platform/nrfx/drivers/src/ |
A D | nrfx_spim.c | 144 #define SPIM_HW_CSN_PRESENT_VALIDATE(drv_inst_idx) \ argument 145 (SPIM0_HW_CSN_PRESENT_VALIDATE(drv_inst_idx) || \ 146 SPIM1_HW_CSN_PRESENT_VALIDATE(drv_inst_idx) || \ 147 SPIM2_HW_CSN_PRESENT_VALIDATE(drv_inst_idx) || \ 149 SPIM4_HW_CSN_PRESENT_VALIDATE(drv_inst_idx)) 151 #define SPIM_DCX_PRESENT_VALIDATE(drv_inst_idx) \ argument 152 (SPIM0_DCX_PRESENT_VALIDATE(drv_inst_idx) || \ 153 SPIM1_DCX_PRESENT_VALIDATE(drv_inst_idx) || \ 154 SPIM2_DCX_PRESENT_VALIDATE(drv_inst_idx) || \ 155 SPIM3_DCX_PRESENT_VALIDATE(drv_inst_idx) || \ [all …]
|
A D | nrfx_uarte.c | 82 #define UARTE_LENGTH_VALIDATE(drv_inst_idx, length) \ argument 83 (UARTE0_LENGTH_VALIDATE(drv_inst_idx, length, 0) || \ 84 UARTE1_LENGTH_VALIDATE(drv_inst_idx, length, 0) || \ 85 UARTE2_LENGTH_VALIDATE(drv_inst_idx, length, 0) || \ 86 UARTE3_LENGTH_VALIDATE(drv_inst_idx, length, 0)) 240 uarte_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_uarte_init() 303 uarte_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_uarte_uninit() 354 uarte_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_uarte_tx() 429 return (m_cb[p_instance->drv_inst_idx].tx_buffer_length != 0); in nrfx_uarte_tx_in_progress() 509 if (m_cb[p_instance->drv_inst_idx].handler == NULL) in nrfx_uarte_rx() [all …]
|
A D | nrfx_spis.c | 54 #define SPISX_LENGTH_VALIDATE(peripheral, drv_inst_idx, rx_len, tx_len) \ argument 82 #define SPIS_LENGTH_VALIDATE(drv_inst_idx, rx_len, tx_len) \ argument 83 (SPIS0_LENGTH_VALIDATE(drv_inst_idx, rx_len, tx_len) || \ 84 SPIS1_LENGTH_VALIDATE(drv_inst_idx, rx_len, tx_len) || \ 85 SPIS2_LENGTH_VALIDATE(drv_inst_idx, rx_len, tx_len) || \ 86 SPIS3_LENGTH_VALIDATE(drv_inst_idx, rx_len, tx_len)) 133 spis_cb_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_spis_init() 171 irq_handlers[p_instance->drv_inst_idx]) != NRFX_SUCCESS) in nrfx_spis_init() 295 spis_cb_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_spis_uninit() 392 spis_cb_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_spis_buffers_set() [all …]
|
A D | nrfx_twim.c | 110 #define TWIM_LENGTH_VALIDATE(drv_inst_idx, len1, len2) \ argument 111 (TWIM0_LENGTH_VALIDATE(drv_inst_idx, len1, len2) || \ 112 TWIM1_LENGTH_VALIDATE(drv_inst_idx, len1, len2) || \ 113 TWIM2_LENGTH_VALIDATE(drv_inst_idx, len1, len2) || \ 114 TWIM3_LENGTH_VALIDATE(drv_inst_idx, len1, len2)) 224 twim_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twim_init() 300 twim_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twim_uninit() 325 twim_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twim_enable() 336 twim_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twim_disable() 352 twim_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twim_is_busy() [all …]
|
A D | nrfx_egu.c | 100 egu_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_egu_init() 122 NRFX_ASSERT(m_cb[p_instance->drv_inst_idx].state == NRFX_DRV_STATE_INITIALIZED); in nrfx_egu_int_enable() 123 NRFX_ASSERT(m_cb[p_instance->drv_inst_idx].handler); in nrfx_egu_int_enable() 132 NRFX_ASSERT(m_cb[p_instance->drv_inst_idx].state == NRFX_DRV_STATE_INITIALIZED); in nrfx_egu_int_disable() 140 NRFX_ASSERT(m_cb[p_instance->drv_inst_idx].state == NRFX_DRV_STATE_INITIALIZED); in nrfx_egu_trigger() 150 egu_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_egu_uninit()
|
A D | nrfx_wdt.c | 64 wdt_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_wdt_init() 109 wdt_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_wdt_enable() 120 wdt_control_block_t const * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_wdt_feed() 131 wdt_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_wdt_channel_alloc() 155 NRFX_ASSERT(m_cb[p_instance->drv_inst_idx].state == NRFX_DRV_STATE_POWERED_ON); in nrfx_wdt_channel_feed()
|
A D | nrfx_twis.c | 440 twis_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twis_preprocess_status() 464 twis_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twis_init() 491 irq_handlers[p_instance->drv_inst_idx]) != NRFX_SUCCESS) in nrfx_twis_init() 557 twis_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twis_uninit() 581 twis_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twis_enable() 602 twis_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twis_disable() 685 twis_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twis_error_get_and_clear() 695 twis_control_block_t const * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twis_tx_prepare() 739 twis_control_block_t const * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twis_rx_prepare() 781 twis_control_block_t const * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twis_is_busy() [all …]
|
A D | nrfx_uart.c | 162 uart_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_uart_init() 181 irq_handlers[p_instance->drv_inst_idx]) != NRFX_SUCCESS) in nrfx_uart_init() 215 uart_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_uart_uninit() 232 NRFX_LOG_INFO("Instance uninitialized: %d.", p_instance->drv_inst_idx); in nrfx_uart_uninit() 270 uart_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_uart_tx() 325 return (m_cb[p_instance->drv_inst_idx].tx_buffer_length != 0); in nrfx_uart_tx_in_progress() 353 uart_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_uart_rx() 475 if (!m_cb[p_instance->drv_inst_idx].rx_enabled) in nrfx_uart_rx_enable() 478 m_cb[p_instance->drv_inst_idx].rx_enabled = true; in nrfx_uart_rx_enable() 485 m_cb[p_instance->drv_inst_idx].rx_enabled = false; in nrfx_uart_rx_disable() [all …]
|
A D | nrfx_spi.c | 74 spi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_spi_init() 99 irq_handlers[p_instance->drv_inst_idx]) != NRFX_SUCCESS) in nrfx_spi_init() 160 m_cb[p_instance->drv_inst_idx].ss_pin = p_config->ss_pin; in nrfx_spi_init() 167 m_cb[p_instance->drv_inst_idx].orc = p_config->orc; in nrfx_spi_init() 188 spi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_spi_uninit() 350 spi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_spi_xfer() 397 spi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_spi_abort()
|
A D | nrfx_pwm.c | 139 pwm_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_pwm_init() 195 pwm_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_pwm_uninit() 272 nrf_egu_int_enable(DMA_ISSUE_EGU, nrf_egu_channel_int_get(p_instance->drv_inst_idx)); in start_playback() 274 nrf_egu_trigger_task_get(p_instance->drv_inst_idx)); in start_playback() 290 pwm_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_pwm_simple_playback() 336 pwm_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_pwm_complex_playback() 380 NRFX_ASSERT(m_cb[p_instance->drv_inst_idx].state != NRFX_DRV_STATE_UNINITIALIZED); in nrfx_pwm_stop() 416 pwm_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_pwm_is_stopped()
|
A D | nrfx_twi.c | 163 twi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twi_init() 185 irq_handlers[p_instance->drv_inst_idx]) != NRFX_SUCCESS) in nrfx_twi_init() 231 twi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twi_uninit() 251 NRFX_LOG_INFO("Instance uninitialized: %d.", p_instance->drv_inst_idx); in nrfx_twi_uninit() 256 twi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twi_enable() 263 NRFX_LOG_INFO("Instance enabled: %d.", p_instance->drv_inst_idx); in nrfx_twi_enable() 268 twi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twi_disable() 277 NRFX_LOG_INFO("Instance disabled: %d.", p_instance->drv_inst_idx); in nrfx_twi_disable() 624 twi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twi_is_busy() 634 twi_control_block_t * p_cb = &m_cb[p_instance->drv_inst_idx]; in nrfx_twi_xfer() [all …]
|
/lk-master/external/platform/nrfx/drivers/include/ |
A D | nrfx_egu.h | 54 uint8_t drv_inst_idx; ///< Index of the driver instance. For internal use only. member 85 .drv_inst_idx = NRFX_CONCAT_3(NRFX_EGU, id, _INST_IDX), \
|
A D | nrfx_wdt.h | 66 uint8_t drv_inst_idx; ///< Index of the driver instance. For internal use only. member 85 .drv_inst_idx = NRFX_CONCAT_3(NRFX_WDT, id, _INST_IDX), \
|
A D | nrfx_spis.h | 54 uint8_t drv_inst_idx; //!< Index of the driver instance. For internal use only. member 79 .drv_inst_idx = NRFX_CONCAT_3(NRFX_SPIS, id, _INST_IDX), \
|
A D | nrfx_spi.h | 54 uint8_t drv_inst_idx; ///< Index of the driver instance. For internal use only. member 76 .drv_inst_idx = NRFX_CONCAT_3(NRFX_SPI, id, _INST_IDX), \
|
A D | nrfx_twis.h | 54 uint8_t drv_inst_idx; ///< Index of the driver instance. For internal use only. member 79 .drv_inst_idx = NRFX_CONCAT_3(NRFX_TWIS, id, _INST_IDX), \
|
A D | nrfx_uart.h | 53 uint8_t drv_inst_idx; ///< Index of the driver instance. For internal use only. member 69 .drv_inst_idx = NRFX_CONCAT_3(NRFX_UART, id, _INST_IDX), \
|
A D | nrfx_uarte.h | 53 uint8_t drv_inst_idx; ///< Index of the driver instance. For internal use only. member 78 .drv_inst_idx = NRFX_CONCAT_3(NRFX_UARTE, id, _INST_IDX), \
|
A D | nrfx_twi.h | 56 uint8_t drv_inst_idx; ///< Index of the driver instance. For internal use only. member 63 .drv_inst_idx = NRFX_CONCAT_3(NRFX_TWI, id, _INST_IDX), \
|
A D | nrfx_spim.h | 54 uint8_t drv_inst_idx; ///< Index of the driver instance. For internal use only. member 82 .drv_inst_idx = NRFX_CONCAT_3(NRFX_SPIM, id, _INST_IDX), \
|
A D | nrfx_twim.h | 54 uint8_t drv_inst_idx; ///< Index of the driver instance. For internal use only. member 61 .drv_inst_idx = NRFX_CONCAT_3(NRFX_TWIM, id, _INST_IDX), \
|
A D | nrfx_pwm.h | 53 uint8_t drv_inst_idx; ///< Index of the driver instance. For internal use only. member 60 .drv_inst_idx = NRFX_CONCAT_3(NRFX_PWM, id, _INST_IDX), \
|