If display is on on the @BigCorvus board and we xmit the board browns out?

This commit is contained in:
geeksville
2020-08-28 17:38:23 -07:00
parent 7f214ffbb0
commit dffb6c2f06
9 changed files with 110 additions and 16 deletions

12
src/SPILock.h Normal file
View File

@@ -0,0 +1,12 @@
#pragma once
#include "../concurrency/LockGuard.h"
/**
* Used to provide mutual exclusion for access to the SPI bus. Usage:
* concurrency::LockGuard g(spiLock);
*/
extern concurrency::Lock *spiLock;
/** Setup SPI access and create the spiLock lock. */
void initSPI();