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

@@ -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