mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 02:39:57 +00:00
12 lines
274 B
C
12 lines
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(); |