| /external/platform/pico/rp2_common/pico_i2c_slave/ |
| A D | i2c_slave.c | 12 i2c_slave_handler_t handler; member 42 slave->handler(i2c, I2C_SLAVE_FINISH); in __not_in_flash_func() 47 slave->handler(i2c, I2C_SLAVE_RECEIVE); in __not_in_flash_func() 52 slave->handler(i2c, I2C_SLAVE_REQUEST); in __not_in_flash_func() 56 void i2c_slave_init(i2c_inst_t *i2c, uint8_t address, i2c_slave_handler_t handler) { in i2c_slave_init() argument 58 assert(handler != NULL); in i2c_slave_init() 62 slave->handler = handler; in i2c_slave_init() 86 assert(slave->handler); // should be called after i2c_slave_init() in i2c_slave_deinit() 88 slave->handler = NULL; in i2c_slave_deinit()
|
| /external/platform/pico/rp2_common/hardware_irq/ |
| A D | irq.c | 44 get_vtable()[VTABLE_FIRST_IRQ + num] = handler; in set_raw_irq_handler_and_unlock() 100 irq_handler_t handler; member 112 return handler && is_shared_irq_raw_handler(handler); in irq_has_shared_handler() 135 set_raw_irq_handler_and_unlock(num, handler, save); in irq_set_exclusive_handler() 211 irq_set_exclusive_handler(num, handler); in irq_add_shared_handler() 229 .handler = handler in irq_add_shared_handler() 253 .handler = handler in irq_add_shared_handler() 267 .handler = handler in irq_add_shared_handler() 314 while (to_free_slot->handler != handler) { in irq_remove_handler() 319 if (to_free_slot->handler == handler) { in irq_remove_handler() [all …]
|
| /external/platform/pico/rp2_common/hardware_exception/ |
| A D | exception.c | 14 static bool exception_is_compile_time_default(exception_handler_t handler) { in exception_is_compile_time_default() argument 17 return ((uintptr_t)handler) >= (uintptr_t)&__default_isrs_start && in exception_is_compile_time_default() 18 ((uintptr_t)handler) < (uintptr_t)&__default_isrs_end; in exception_is_compile_time_default() 26 …ler_and_restore_interrupts(enum exception_number num, exception_handler_t handler, uint32_t save) { in set_raw_exception_handler_and_restore_interrupts() argument 28 get_vtable()[16 + num] = handler; in set_raw_exception_handler_and_restore_interrupts() 42 …handler_t exception_set_exclusive_handler(enum exception_number num, exception_handler_t handler) { in exception_set_exclusive_handler() argument 47 hard_assert(handler == current || exception_is_compile_time_default(current)); in exception_set_exclusive_handler() 48 set_raw_exception_handler_and_restore_interrupts(num, handler, save); in exception_set_exclusive_handler()
|
| /external/lib/lwip/core/ |
| A D | timers.c | 277 timeout->h = handler; in sys_timeout_debug() 363 sys_timeout_handler handler; in sys_check_timeouts() local 384 handler = tmptimeout->h; in sys_check_timeouts() 387 if (handler != NULL) { in sys_check_timeouts() 393 if (handler != NULL) { in sys_check_timeouts() 394 handler(arg); in sys_check_timeouts() 427 sys_timeout_handler handler; in sys_timeouts_mbox_fetch() local 446 handler = tmptimeout->h; in sys_timeouts_mbox_fetch() 449 if (handler != NULL) { in sys_timeouts_mbox_fetch() 455 if (handler != NULL) { in sys_timeouts_mbox_fetch() [all …]
|
| /external/lib/lwip/include/lwip/ |
| A D | timers.h | 80 void sys_timeout_debug(u32_t msecs, sys_timeout_handler handler, void *arg, const char* handler_nam… 81 #define sys_timeout(msecs, handler, arg) sys_timeout_debug(msecs, handler, arg, #handler) argument 83 void sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg); 86 void sys_untimeout(sys_timeout_handler handler, void *arg);
|
| /external/platform/nrfx/drivers/src/prs/ |
| A D | nrfx_prs.c | 47 nrfx_irq_handler_t handler; member 52 static prs_box_t m_prs_box_##n = { .handler = NULL, .acquired = false }; \ 55 NRFX_ASSERT(m_prs_box_##n.handler); \ 56 m_prs_box_##n.handler(); \ 126 p_box->handler = irq_handler; in nrfx_prs_acquire() 151 p_box->handler = NULL; in nrfx_prs_release()
|
| /external/platform/nrfx/drivers/src/ |
| A D | nrfx_pwm.c | 74 nrfx_pwm_handler_t handler; member 132 nrfx_pwm_handler_t handler, in nrfx_pwm_init() argument 150 p_cb->handler = handler; in nrfx_pwm_init() 177 if (p_cb->handler) in nrfx_pwm_init() 219 if (p_cb->handler) in start_playback() 447 if ((p_cb->flags & NRFX_PWM_FLAG_SIGNAL_END_SEQ0) && p_cb->handler) in irq_handler() 449 p_cb->handler(NRFX_PWM_EVT_END_SEQ0, p_cb->p_context); in irq_handler() 457 p_cb->handler(NRFX_PWM_EVT_END_SEQ1, p_cb->p_context); in irq_handler() 467 p_cb->handler(NRFX_PWM_EVT_FINISHED, p_cb->p_context); in irq_handler() 477 if (p_cb->handler) in irq_handler() [all …]
|
| A D | nrfx_ipc.c | 41 nrfx_ipc_handler_t handler; member 48 nrfx_err_t nrfx_ipc_init(uint8_t irq_priority, nrfx_ipc_handler_t handler, void * p_context) in nrfx_ipc_init() argument 50 NRFX_ASSERT(handler); in nrfx_ipc_init() 60 m_ipc_cb.handler = handler; in nrfx_ipc_init() 159 m_ipc_cb.handler(events_map, m_ipc_cb.p_context); in nrfx_ipc_irq_handler()
|
| A D | nrfx_spi.c | 51 nrfx_spi_evt_handler_t handler; member 70 nrfx_spi_evt_handler_t handler, in nrfx_spi_init() argument 109 p_cb->handler = handler; in nrfx_spi_init() 171 if (p_cb->handler) in nrfx_spi_init() 192 if (p_cb->handler) in nrfx_spi_uninit() 239 p_cb->handler(&p_cb->evt, p_cb->p_context); in finish_transfer() 328 if (p_cb->handler) in spi_xfer() 367 if (p_cb->handler) in nrfx_spi_xfer() 404 NRFX_ASSERT(p_cb->handler); in irq_handler()
|
| A D | nrfx_qspi.c | 53 nrfx_qspi_handler_t handler; /**< Handler. */ member 71 if (m_cb.handler) in qspi_task_perform() 79 if (m_cb.handler == NULL) in qspi_task_perform() 119 nrfx_qspi_handler_t handler, in nrfx_qspi_init() argument 138 m_cb.handler = handler; in nrfx_qspi_init() 145 if (handler) in nrfx_qspi_init() 448 m_cb.handler(NRFX_QSPI_EVENT_DONE, m_cb.p_context); in nrfx_qspi_irq_handler()
|
| A D | nrfx_power.c | 154 if (p_config->handler != NULL) in nrfx_power_pof_init() 156 m_pofwarn_handler = p_config->handler; in nrfx_power_pof_init() 202 if (p_config->handler != NULL) in nrfx_power_sleepevt_init() 204 m_sleepevt_handler = p_config->handler; in nrfx_power_sleepevt_init() 242 if (p_config->handler != NULL) in nrfx_power_usbevt_init() 244 m_usbevt_handler = p_config->handler; in nrfx_power_usbevt_init()
|
| A D | nrfx_gpiote.c | 109 m_cb.handlers[channel_id] = handler; in pin_in_use_by_te_set() 182 pin_in_use_by_te_set(pin, i, handler, channel); in channel_port_alloc() 596 if (handler) in nrfx_gpiote_in_event_enable() 721 nrfx_gpiote_evt_handler_t handler = in port_event_handle() local 723 if (handler && in port_event_handle() 728 handler(pin, polarity); in port_event_handle() 804 nrfx_gpiote_evt_handler_t handler = in port_event_handle() local 806 if (handler && in port_event_handle() 813 handler(pin, polarity); in port_event_handle() 873 if (handler) in nrfx_gpiote_irq_handler() [all …]
|
| A D | nrfx_uart.c | 57 nrfx_uart_event_handler_t handler; member 193 p_cb->handler = event_handler; in nrfx_uart_init() 196 if (p_cb->handler) in nrfx_uart_init() 219 if (p_cb->handler) in nrfx_uart_uninit() 231 p_cb->handler = NULL; in nrfx_uart_uninit() 302 if (p_cb->handler == NULL) in nrfx_uart_tx() 363 if (p_cb->handler) in nrfx_uart_rx() 372 if (p_cb->handler) in nrfx_uart_rx() 406 if (p_cb->handler == NULL) in nrfx_uart_rx() 504 p_cb->handler(&event, p_cb->p_context); in rx_done_event() [all …]
|
| A D | nrfx_usbd.c | 789 p_state->handler.consumer = NULL; in usbd_ep_abort() 824 p_state->handler.feeder = NULL; in usbd_ep_abort() 919 else if (p_state->handler.feeder == NULL) in nrf_usbd_ep0in_dma_handler() 952 else if (p_state->handler.feeder == NULL) in nrf_usbd_epin_dma_handler() 981 else if (p_state->handler.feeder == NULL) in nrf_usbd_epiniso_dma_handler() 1012 else if (p_state->handler.consumer == NULL) in nrf_usbd_ep0out_dma_handler() 1046 else if (p_state->handler.consumer == NULL) in nrf_usbd_epout_dma_handler() 1081 else if (p_state->handler.consumer == NULL) in nrf_usbd_epoutiso_dma_handler() 1679 p_state->handler.feeder = NULL; in nrfx_usbd_init() 1689 p_state->handler.consumer = NULL; in nrfx_usbd_init() [all …]
|
| A D | nrfx_i2s.c | 71 nrfx_i2s_data_handler_t handler; member 188 nrfx_i2s_data_handler_t handler) in nrfx_i2s_init() argument 191 NRFX_ASSERT(handler); in nrfx_i2s_init() 225 m_cb.handler = handler; in nrfx_i2s_init() 444 m_cb.handler(&m_cb.current_buffers, 0); in nrfx_i2s_irq_handler() 452 m_cb.handler(&m_cb.next_buffers, NRFX_I2S_STATUS_TRANSFER_STOPPED); in nrfx_i2s_irq_handler() 481 m_cb.handler(NULL, in nrfx_i2s_irq_handler() 495 m_cb.handler(&released_buffers, in nrfx_i2s_irq_handler()
|
| A D | nrfx_uarte.c | 91 nrfx_uarte_event_handler_t handler; member 282 p_cb->handler = event_handler; in nrfx_uarte_init() 285 if (p_cb->handler) in nrfx_uarte_init() 306 if (p_cb->handler) in nrfx_uarte_uninit() 346 p_cb->handler = NULL; in nrfx_uarte_uninit() 396 if (p_cb->handler == NULL) in nrfx_uarte_tx() 458 if (p_cb->handler) in nrfx_uarte_rx() 467 if (p_cb->handler) in nrfx_uarte_rx() 563 p_cb->handler(&event, p_cb->p_context); in rx_done_event() 577 p_cb->handler(&event, p_cb->p_context); in tx_done_event() [all …]
|
| A D | nrfx_rng.c | 51 nrfx_err_t nrfx_rng_init(nrfx_rng_config_t const * p_config, nrfx_rng_evt_handler_t handler) in nrfx_rng_init() argument 54 NRFX_ASSERT(handler); in nrfx_rng_init() 60 m_rng_hndl = handler; in nrfx_rng_init()
|
| A D | nrfx_twi.c | 95 nrfx_twi_evt_handler_t handler; member 195 p_cb->handler = event_handler; in nrfx_twi_init() 215 if (p_cb->handler) in nrfx_twi_init() 234 if (p_cb->handler) in nrfx_twi_uninit() 449 if (p_cb->handler) in twi_tx_start_transfer() 523 if (p_cb->handler) in twi_rx_start_transfer() 615 if (p_cb->handler == NULL) in twi_xfer() 637 NRFX_ASSERT( !((p_cb->handler == NULL) && (p_xfer_desc->type == NRFX_TWI_XFER_TXRX))); in nrfx_twi_xfer() 638 NRFX_ASSERT( !((p_cb->handler == NULL) && (p_xfer_desc->type == NRFX_TWI_XFER_TXTX))); in nrfx_twi_xfer() 670 NRFX_ASSERT(p_cb->handler); in twi_irq_handler() [all …]
|
| A D | nrfx_egu.c | 68 nrfx_egu_event_handler_t handler; member 109 p_cb->handler = event_handler; in nrfx_egu_init() 123 NRFX_ASSERT(m_cb[p_instance->drv_inst_idx].handler); in nrfx_egu_int_enable() 169 p_cb->handler(event_idx, p_cb->p_context); in egu_irq_handler()
|
| A D | nrfx_spim.c | 174 nrfx_spim_evt_handler_t handler; member 252 nrfx_spim_evt_handler_t handler, in nrfx_spim_init() argument 317 p_cb->handler = handler; in nrfx_spim_init() 415 if (p_cb->handler) in nrfx_spim_init() 436 if (p_cb->handler) in nrfx_spim_uninit() 527 p_cb->handler(&p_cb->evt, p_cb->p_context); in finish_transfer() 617 if (!p_cb->handler) in spim_xfer() 683 if (p_cb->handler && !(flags & (NRFX_SPIM_FLAG_REPEATED_XFER | in nrfx_spim_xfer() 767 NRFX_ASSERT(p_cb->handler); in irq_handler()
|
| /external/platform/pico/rp2_common/hardware_gpio/include/hardware/ |
| A D | gpio.h | 516 void gpio_add_raw_irq_handler_with_order_priority_masked(uint gpio_mask, irq_handler_t handler, uin… 545 static inline void gpio_add_raw_irq_handler_with_order_priority(uint gpio, irq_handler_t handler, u… in gpio_add_raw_irq_handler_with_order_priority() argument 547 gpio_add_raw_irq_handler_with_order_priority_masked(1u << gpio, handler, order_priority); in gpio_add_raw_irq_handler_with_order_priority() 578 void gpio_add_raw_irq_handler_masked(uint gpio_mask, irq_handler_t handler); 604 static inline void gpio_add_raw_irq_handler(uint gpio, irq_handler_t handler) { in gpio_add_raw_irq_handler() argument 606 gpio_add_raw_irq_handler_masked(1u << gpio, handler); in gpio_add_raw_irq_handler() 620 void gpio_remove_raw_irq_handler_masked(uint gpio_mask, irq_handler_t handler); 633 static inline void gpio_remove_raw_irq_handler(uint gpio, irq_handler_t handler) { in gpio_remove_raw_irq_handler() argument 635 gpio_remove_raw_irq_handler_masked(1u << gpio, handler); in gpio_remove_raw_irq_handler()
|
| /external/platform/pico/rp2_common/hardware_irq/include/hardware/ |
| A D | irq.h | 201 void irq_set_exclusive_handler(uint num, irq_handler_t handler); 240 void irq_add_shared_handler(uint num, irq_handler_t handler, uint8_t order_priority); 258 void irq_remove_handler(uint num, irq_handler_t handler);
|
| /external/platform/pico/rp2_common/hardware_gpio/ |
| A D | gpio.c | 203 void gpio_add_raw_irq_handler_with_order_priority_masked(uint gpio_mask, irq_handler_t handler, uin… in gpio_add_raw_irq_handler_with_order_priority_masked() argument 206 irq_add_shared_handler(IO_IRQ_BANK0, handler, order_priority); in gpio_add_raw_irq_handler_with_order_priority_masked() 209 void gpio_add_raw_irq_handler_masked(uint gpio_mask, irq_handler_t handler) { in gpio_add_raw_irq_handler_masked() argument 210 …gpio_add_raw_irq_handler_with_order_priority_masked(gpio_mask, handler, GPIO_RAW_IRQ_HANDLER_DEFAU… in gpio_add_raw_irq_handler_masked() 213 void gpio_remove_raw_irq_handler_masked(uint gpio_mask, irq_handler_t handler) { in gpio_remove_raw_irq_handler_masked() argument 215 irq_remove_handler(IO_IRQ_BANK0, handler); in gpio_remove_raw_irq_handler_masked()
|
| /external/platform/nrfx/drivers/include/ |
| A D | nrfx_power.h | 192 nrfx_power_pofwarn_event_handler_t handler; //!< Event handler. member 209 nrfx_power_sleep_event_handler_t handler; //!< Event handler. member 223 nrfx_power_usb_event_handler_t handler; //!< Event processing. member
|
| /external/platform/pico/rp2_common/pico_btstack/ |
| A D | btstack_stdin_pico.c | 34 void btstack_stdin_setup(void (*handler)(char c)) { in btstack_stdin_setup() 40 stdin_handler = handler; in btstack_stdin_setup()
|