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