summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libs/APE/ape.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/APE/ape.c b/libs/APE/ape.c
index 0dd2acb..e7f0ca8 100644
--- a/libs/APE/ape.c
+++ b/libs/APE/ape.c
@@ -48,7 +48,11 @@ void APE_aquireLock(void)
{
RegAPE_PERIPerLockRequestPhy0_t lock_req;
lock_req.r32 = 0;
+#ifdef __arm__ /* APE */
+ lock_req.bits.APE = 1;
+#else
lock_req.bits.Bootcode = 1;
+#endif
uint8_t function = DEVICE.Status.bits.FunctionNumber;
switch (function)
OpenPOWER on IntegriCloud