mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-03 20:30:43 +00:00
fix rare gurumeditation if we are unlucky and some ISR code is in serial flash
This commit is contained in:
parent
a0b43b9a95
commit
140e29840a
@ -28,13 +28,7 @@ void NotifiedWorkerThread::notify(uint32_t v, eNotifyAction action)
|
|||||||
xTaskNotify(taskHandle, v, action);
|
xTaskNotify(taskHandle, v, action);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Notify from an ISR
|
|
||||||
*/
|
|
||||||
void NotifiedWorkerThread::notifyFromISR(BaseType_t *highPriWoken, uint32_t v, eNotifyAction action)
|
|
||||||
{
|
|
||||||
xTaskNotifyFromISR(taskHandle, v, action, highPriWoken);
|
|
||||||
}
|
|
||||||
|
|
||||||
void NotifiedWorkerThread::block()
|
void NotifiedWorkerThread::block()
|
||||||
{
|
{
|
||||||
|
@ -61,8 +61,13 @@ class NotifiedWorkerThread : public WorkerThread
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Notify from an ISR
|
* Notify from an ISR
|
||||||
|
*
|
||||||
|
* This must be inline or IRAM_ATTR on ESP32
|
||||||
*/
|
*/
|
||||||
void notifyFromISR(BaseType_t *highPriWoken, uint32_t v = 0, eNotifyAction action = eNoAction);
|
inline void notifyFromISR(BaseType_t *highPriWoken, uint32_t v = 0, eNotifyAction action = eNoAction)
|
||||||
|
{
|
||||||
|
xTaskNotifyFromISR(taskHandle, v, action, highPriWoken);
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user