• TMRh20's avatar
    Mutex handling for interrupts on RPi · 243e25f2
    TMRh20 authored
    - Create separate mutex for SPI vs User data handling
    Problems:
    A: Memory/Data conflicts became apparent after time without thread-safe
    queues
    B: Without implementing locking at the SPI level, even simple code
    examples (rx_transfer.cpp) would hang if a write was done out of sync
    with reads
    
    Solutions:
    A: Keep initial locking mechanism for users
    B: Implement separate automatic mutex and locking mechanism for SPI
    
    #172 #173
    243e25f2
spi.h 1.16 KB