cubecell WIP

This commit is contained in:
geeksville
2020-06-05 17:30:09 -07:00
parent 5915669f6f
commit 1c63a70673
8 changed files with 66 additions and 3 deletions

View File

@@ -5,6 +5,7 @@
namespace meshtastic
{
#ifdef configUSE_PREEMPTION
Lock::Lock()
{
handle = xSemaphoreCreateBinary();
@@ -21,6 +22,20 @@ void Lock::unlock()
{
assert(xSemaphoreGive(handle));
}
#else
Lock::Lock()
{
}
void Lock::lock()
{
}
void Lock::unlock()
{
}
#endif
LockGuard::LockGuard(Lock *lock) : lock(lock)
{