PDEC IRQ Handling #310

Merged
muellerr merged 26 commits from mueller/pdec_irq_handling into develop 2022-11-02 18:16:19 +01:00
Showing only changes of commit 7799e3477f - Show all commits

View File

@ -79,15 +79,15 @@ ReturnValue_t PdecHandler::initialize() {
} }
ReturnValue_t PdecHandler::performOperation(uint8_t operationCode) { ReturnValue_t PdecHandler::performOperation(uint8_t operationCode) {
ReturnValue_t result = returnvalue::OK;
if (OP_MODE == Modes::POLLED) { if (OP_MODE == Modes::POLLED) {
polledOperation(); return polledOperation();
} else if (OP_MODE == Modes::IRQ) { } else if (OP_MODE == Modes::IRQ) {
irqOperation(); return irqOperation();
} }
} }
ReturnValue_t PdecHandler::polledOperation() { ReturnValue_t PdecHandler::polledOperation() {
ReturnValue_t result = returnvalue::OK;
readCommandQueue(); readCommandQueue();
switch (state) { switch (state) {