mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Update hard_reset.cpp
This commit is contained in:
@@ -37,12 +37,10 @@ ResetHandler::hardrst_state ResetHandler::hardrst_reset_layer() {
|
|||||||
|
|
||||||
/* Reset the Protocol RX machine */
|
/* Reset the Protocol RX machine */
|
||||||
ProtocolReceive::notify( PDB_EVT_PRLRX_RESET);
|
ProtocolReceive::notify( PDB_EVT_PRLRX_RESET);
|
||||||
osDelay(1);
|
taskYIELD();
|
||||||
|
|
||||||
/* Reset the Protocol TX machine */
|
/* Reset the Protocol TX machine */
|
||||||
ProtocolTransmit::notify(PDB_EVT_PRLTX_RESET);
|
ProtocolTransmit::notify(PDB_EVT_PRLTX_RESET);
|
||||||
osDelay(1);
|
taskYIELD();
|
||||||
|
|
||||||
/* Continue the process based on what event started the reset. */
|
/* Continue the process based on what event started the reset. */
|
||||||
if (evt & PDB_EVT_HARDRST_RESET) {
|
if (evt & PDB_EVT_HARDRST_RESET) {
|
||||||
/* Policy Engine started the reset. */
|
/* Policy Engine started the reset. */
|
||||||
@@ -96,7 +94,7 @@ ResetHandler::hardrst_state ResetHandler::hardrst_complete() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ResetHandler::init() {
|
void ResetHandler::init() {
|
||||||
osThreadStaticDef(Task, Thread, PDB_PRIO_PE, 0, TaskStackSize, TaskBuffer,
|
osThreadStaticDef(Task, Thread, PDB_PRIO_PRL, 0, TaskStackSize, TaskBuffer,
|
||||||
&TaskControlBlock);
|
&TaskControlBlock);
|
||||||
TaskHandle = osThreadCreate(osThread(Task), NULL);
|
TaskHandle = osThreadCreate(osThread(Task), NULL);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user