Changes the AUX operational mode to the requested target mode.
This function controls the change of the AUX operational mode. The function controls the change of the current operational mode to the operational mode target by adhering to rules specified by HW.
68 uint32_t currentOpMode;
69 uint32_t currentOrder;
73 ASSERT((targetOpMode == AUX_SYSIF_OPMODEREQ_REQ_PDLP)||
74 (targetOpMode == AUX_SYSIF_OPMODEREQ_REQ_PDA) ||
75 (targetOpMode == AUX_SYSIF_OPMODEREQ_REQ_LP) ||
76 (targetOpMode == AUX_SYSIF_OPMODEREQ_REQ_A));
79 currentOpMode = HWREG(AUX_SYSIF_BASE + NONSECURE_OFFSET + AUX_SYSIF_O_OPMODEREQ);
80 while ( currentOpMode != HWREG(AUX_SYSIF_BASE + NONSECURE_OFFSET + AUX_SYSIF_O_OPMODEACK));
81 if (currentOpMode != targetOpMode)
92 HWREG(AUX_SYSIF_BASE + NONSECURE_OFFSET + AUX_SYSIF_O_OPMODEREQ) = nextMode;
94 }
while ( currentOpMode != targetOpMode );
static const uint8_t g_Order_to_OpMode[4]
Definition: aux_sysif.c:58
#define ASSERT(expr)
Definition: debug.h:71
static const uint8_t g_OpMode_to_order[4]
Definition: aux_sysif.c:57