2020-08-29 00:38:23 +00:00
|
|
|
#include "SPILock.h"
|
2023-01-21 13:34:29 +00:00
|
|
|
#include "configuration.h"
|
2020-08-29 00:38:23 +00:00
|
|
|
#include <Arduino.h>
|
|
|
|
#include <assert.h>
|
|
|
|
|
|
|
|
concurrency::Lock *spiLock;
|
|
|
|
|
|
|
|
void initSPI()
|
|
|
|
{
|
|
|
|
assert(!spiLock);
|
|
|
|
spiLock = new concurrency::Lock();
|
|
|
|
}
|