cubecell WIP

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

No files matched your search

+4
View File
@@ -1,6 +1,8 @@
#include "WorkerThread.h"
#include <assert.h>
#ifdef configUSE_PREEMPTION
void Thread::start(const char *name, size_t stackSize, uint32_t priority)
{
auto r = xTaskCreate(callRun, name, stackSize, this, priority, &taskHandle);
@@ -35,3 +37,5 @@ void NotifiedWorkerThread::block()
xTaskNotifyWait(0, // don't clear notification on entry
clearOnRead, &notification, portMAX_DELAY); // Wait forever
}
#endif