07-02-2023, 07:15 AM
Yay! first interrupt is working, now to understand how
btw Do you possibly know how the memory guards work between Zig and C for what we are doing? ie I assume there is an event thread running for LVGL somewhere... and I also assume that nuttx has its own threads running somewhere. Which means that my call upon a touch screen button event, down into the C layer, is probably on a different thread to the one generating IRQ events within the C layer. I made the shared int volatile for now, but I would like to better understand if my assumption are correct and if there is a better memory synchronization approach to be used? And I also seem to recall we are single CPU at the moment...
btw Do you possibly know how the memory guards work between Zig and C for what we are doing? ie I assume there is an event thread running for LVGL somewhere... and I also assume that nuttx has its own threads running somewhere. Which means that my call upon a touch screen button event, down into the C layer, is probably on a different thread to the one generating IRQ events within the C layer. I made the shared int volatile for now, but I would like to better understand if my assumption are correct and if there is a better memory synchronization approach to be used? And I also seem to recall we are single CPU at the moment...