summaryrefslogtreecommitdiffstats
path: root/libs/APE/ape.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/APE/ape.c')
-rw-r--r--libs/APE/ape.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/APE/ape.c b/libs/APE/ape.c
index 64930d3..3f9a3a7 100644
--- a/libs/APE/ape.c
+++ b/libs/APE/ape.c
@@ -57,7 +57,7 @@ void APE_aquireLock(void)
uint8_t function = DEVICE.Status.bits.FunctionNumber;
switch (function)
{
- default:
+ default: /* fallthrough */
case 0:
APE_PERI.PerLockRequestPhy0.r32 = lock_req.r32;
do
@@ -105,18 +105,22 @@ void APE_releaseLock(void)
uint8_t function = DEVICE.Status.bits.FunctionNumber;
switch (function)
{
- default:
+ default: /* fallthrough */
case 0:
APE_PERI.PerLockGrantPhy0.r32 = lock_release.r32;
+ break;
case 1:
APE_PERI.PerLockGrantPhy1.r32 = lock_release.r32;
+ break;
case 2:
APE_PERI.PerLockGrantPhy2.r32 = lock_release.r32;
+ break;
case 3:
APE_PERI.PerLockGrantPhy3.r32 = lock_release.r32;
+ break;
}
}
OpenPOWER on IntegriCloud