1
0
forked from me/IronOS

Update hard_reset.cpp

This commit is contained in:
Ben V. Brown
2020-06-17 18:15:22 +10:00
parent c55b91af6a
commit 12e8d2a93d

View File

@@ -37,12 +37,10 @@ ResetHandler::hardrst_state ResetHandler::hardrst_reset_layer() {
/* Reset the Protocol RX machine */
ProtocolReceive::notify( PDB_EVT_PRLRX_RESET);
osDelay(1);
taskYIELD();
/* Reset the Protocol TX machine */
ProtocolTransmit::notify(PDB_EVT_PRLTX_RESET);
osDelay(1);
taskYIELD();
/* Continue the process based on what event started the reset. */
if (evt & PDB_EVT_HARDRST_RESET) {
/* Policy Engine started the reset. */
@@ -96,7 +94,7 @@ ResetHandler::hardrst_state ResetHandler::hardrst_complete() {
}
void ResetHandler::init() {
osThreadStaticDef(Task, Thread, PDB_PRIO_PE, 0, TaskStackSize, TaskBuffer,
osThreadStaticDef(Task, Thread, PDB_PRIO_PRL, 0, TaskStackSize, TaskBuffer,
&TaskControlBlock);
TaskHandle = osThreadCreate(osThread(Task), NULL);
}