mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 18:59:56 +00:00
11 lines
171 B
C++
11 lines
171 B
C++
|
#include "SPILock.h"
|
||
|
#include <Arduino.h>
|
||
|
#include <assert.h>
|
||
|
|
||
|
concurrency::Lock *spiLock;
|
||
|
|
||
|
void initSPI()
|
||
|
{
|
||
|
assert(!spiLock);
|
||
|
spiLock = new concurrency::Lock();
|
||
|
}
|