ports/stm32: Add missing init bits to fix glitches.

This commit is contained in:
Kwabena W. Agyeman 2025-06-22 20:02:53 -07:00
parent 1dece0b461
commit 89d60c8002

View File

@ -40,7 +40,7 @@
#define OMV_GPU_NEMA_RING_SIZE 1024
#endif
volatile static int last_cl_id;
volatile static int last_cl_id = -1;
static GPU2D_HandleTypeDef gpu2d = { 0 };
static nema_ringbuffer_t ring_buf = {{0}};
#if OMV_GPU_NEMA_MM_STATIC
@ -74,6 +74,8 @@ int32_t nema_sys_init(void) {
return -1;
}
last_cl_id = -1;
NVIC_SetPriority(GPU2D_IRQn, IRQ_PRI_GPU);
NVIC_EnableIRQ(GPU2D_IRQn);