1
0
forked from me/IronOS
Files
IronOS/workspace/TS100/Core/Threads/POWThread.cpp
Ben V. Brown 25e4abee7d Split power work into own thread
Completely forseeable issue.
Now that we have _more_ ram available, this is a good option to split power related items out into their own thread.
2021-01-16 09:20:23 +11:00

28 lines
483 B
C++

/*
* POWThread.cpp
*
* Created on: 16 Jan 2021
* Author: Ralim
*/
#include "BSP.h"
#include "FreeRTOS.h"
#include "QC3.h"
#include "Settings.h"
#include "cmsis_os.h"
#include "main.hpp"
#include "stdlib.h"
#include "task.h"
// Small worker thread to handle power (mostly QC) related steps
void startPOWTask(void const *argument __unused) {
postRToSInit();
for (;;) {
osDelay(TICKS_100MS); // Slow down update rate
power_check();
}
}