sforkowany z mirror/meshtastic-firmware
12 wiersze
274 B
C
12 wiersze
274 B
C
|
#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();
|