You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
736 B
26 lines
736 B
2 years ago
|
#pragma once
|
||
|
|
||
|
#include <eez/core/os.h>
|
||
|
|
||
|
namespace eez {
|
||
|
|
||
|
enum HighPriorityThreadMessage {
|
||
|
HIGH_PRIORITY_THREAD_MESSAGE_DUMMY
|
||
|
};
|
||
|
|
||
|
void initHighPriorityMessageQueue();
|
||
|
void startHighPriorityThread();
|
||
|
bool isHighPriorityThread();
|
||
|
void sendMessageToHighPriorityThread(HighPriorityThreadMessage messageType, uint32_t messageParam = 0, uint32_t timeoutMillisec = osWaitForever);
|
||
|
|
||
|
enum LowPriorityThreadMessage {
|
||
|
LOW_PRIORITY_THREAD_MESSAGE_DUMMY
|
||
|
};
|
||
|
|
||
|
void initLowPriorityMessageQueue();
|
||
|
void startLowPriorityThread();
|
||
|
bool isLowPriorityThread();
|
||
|
void sendMessageToLowPriorityThread(LowPriorityThreadMessage messageType, uint32_t messageParam = 0, uint32_t timeoutMillisec = osWaitForever);
|
||
|
|
||
|
} // namespace eez
|