Dtynin
Dtynin
DIIDevHeads IoT Integration Server
Created by Marvee Amasi on 5/23/2024 in #middleware-and-os
Using atomic operations to update the SPI busy flag in FreeRTOS
@Marvee Amasi If failing to update the SPI flag atomically has severe consequences, using atomic operations is preferred. This guarantees no interference during the update. Also know that If the consequences are less severe, interrupt latency might become a factor. Disabling interrupts for a long time might impact system performance. Atomic operations are generally faster than disabling interrupts
4 replies