• Earle F. Philhower, III's avatar
    Protect SPI transaction start/end from race conditions (#1715) · c48cdeee
    Earle F. Philhower, III authored
    It would be possible for an IRQ-driven SPI user to fire
    while the main app's SPI.beginTransaction was in process.
    This would result in incorrect state for the main app since
    the IRQ may overwrite some settings that the app already
    set.
    
    Disable all IRQs around the begin and end processes to avoid
    the possibility.
    c48cdeee
SPI.cpp 12.3 KB