mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +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
5698c45130
commit
e25ee48874
@ -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(false);
|
||||
}
|
||||
|
||||
void ethosu_inference_end(struct ethosu_driver *drv, void *user_arg) {
|
||||
|
||||
mp_handle_pending(false);
|
||||
}
|
||||
|
||||
void ETHOSU_IRQ_HANDLER(void) {
|
||||
|
Loading…
Reference in New Issue
Block a user