mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
ports/alif: Handle pending events during inference.
Ensures pending events get serviced more often. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
parent
b99a45a2a1
commit
5b4035e815
@ -35,6 +35,8 @@
|
||||
#include CMSIS_MCU_H
|
||||
|
||||
#include "py/mphal.h"
|
||||
#include "py/runtime.h"
|
||||
|
||||
#include "alif_hal.h"
|
||||
#include "omv_boardconfig.h"
|
||||
#include "ethosu_driver.h"
|
||||
@ -150,11 +152,11 @@ uint64_t ethosu_address_remap(uint64_t address, int index) {
|
||||
}
|
||||
|
||||
void ethosu_inference_begin(struct ethosu_driver *drv, void *user_arg) {
|
||||
|
||||
mp_handle_pending_internal(MP_HANDLE_PENDING_CALLBACKS_ONLY);
|
||||
}
|
||||
|
||||
void ethosu_inference_end(struct ethosu_driver *drv, void *user_arg) {
|
||||
|
||||
mp_handle_pending_internal(MP_HANDLE_PENDING_CALLBACKS_ONLY);
|
||||
}
|
||||
|
||||
void ETHOSU_IRQ_HANDLER(void) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user