Register padMgr at irqMgr

Signed-off-by: Thomas Rohloff <v10lator@myway.de>
This commit is contained in:
Thomas Rohloff 2022-04-19 13:42:43 +02:00
parent 1c9349b5de
commit b56a3d652a
1 changed files with 2 additions and 4 deletions

View File

@ -417,8 +417,7 @@ void PadMgr_ThreadEntry(PadMgr* padMgr) {
}
}
// OTRTODO: Removed due to crash
//IrqMgr_RemoveClient(padMgr->irqMgr, &padMgr->irqClient);
IrqMgr_RemoveClient(padMgr->irqMgr, &padMgr->irqClient);
osSyncPrintf("コントローラスレッド実行終了\n"); // "Controller thread execution end"
}
@ -430,8 +429,7 @@ void PadMgr_Init(PadMgr* padMgr, OSMesgQueue* siIntMsgQ, IrqMgr* irqMgr, OSId id
padMgr->irqMgr = irqMgr;
osCreateMesgQueue(&padMgr->interruptMsgQ, padMgr->interruptMsgBuf, 4);
// OTRTODO: Removed due to crash
//IrqMgr_AddClient(padMgr->irqMgr, &padMgr->irqClient, &padMgr->interruptMsgQ);
IrqMgr_AddClient(padMgr->irqMgr, &padMgr->irqClient, &padMgr->interruptMsgQ);
osCreateMesgQueue(&padMgr->serialMsgQ, padMgr->serialMsgBuf, 1);
PadMgr_UnlockSerialMesgQueue(padMgr, siIntMsgQ);
osCreateMesgQueue(&padMgr->lockMsgQ, padMgr->lockMsgBuf, 1);