mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
ports/stm32: Add missing init bits to fix glitches.
This commit is contained in:
parent
1dece0b461
commit
89d60c8002
@ -40,7 +40,7 @@
|
|||||||
#define OMV_GPU_NEMA_RING_SIZE 1024
|
#define OMV_GPU_NEMA_RING_SIZE 1024
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
volatile static int last_cl_id;
|
volatile static int last_cl_id = -1;
|
||||||
static GPU2D_HandleTypeDef gpu2d = { 0 };
|
static GPU2D_HandleTypeDef gpu2d = { 0 };
|
||||||
static nema_ringbuffer_t ring_buf = {{0}};
|
static nema_ringbuffer_t ring_buf = {{0}};
|
||||||
#if OMV_GPU_NEMA_MM_STATIC
|
#if OMV_GPU_NEMA_MM_STATIC
|
||||||
@ -74,6 +74,8 @@ int32_t nema_sys_init(void) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
last_cl_id = -1;
|
||||||
|
|
||||||
NVIC_SetPriority(GPU2D_IRQn, IRQ_PRI_GPU);
|
NVIC_SetPriority(GPU2D_IRQn, IRQ_PRI_GPU);
|
||||||
NVIC_EnableIRQ(GPU2D_IRQn);
|
NVIC_EnableIRQ(GPU2D_IRQn);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user