diff options
Diffstat (limited to 'libs/APE/ape.c')
-rw-r--r-- | libs/APE/ape.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/libs/APE/ape.c b/libs/APE/ape.c index 2f3d6ee..0dd2acb 100644 --- a/libs/APE/ape.c +++ b/libs/APE/ape.c @@ -51,7 +51,7 @@ void APE_aquireLock(void) lock_req.bits.Bootcode = 1; uint8_t function = DEVICE.Status.bits.FunctionNumber; - switch(function) + switch (function) { default: case 0: @@ -59,7 +59,7 @@ void APE_aquireLock(void) do { // spin - } while(lock_req.r32 != APE_PERI.PerLockGrantPhy0.r32); + } while (lock_req.r32 != APE_PERI.PerLockGrantPhy0.r32); return; case 1: @@ -67,7 +67,7 @@ void APE_aquireLock(void) do { // spin - } while(lock_req.r32 != APE_PERI.PerLockGrantPhy1.r32); + } while (lock_req.r32 != APE_PERI.PerLockGrantPhy1.r32); return; case 2: @@ -75,7 +75,7 @@ void APE_aquireLock(void) do { // spin - } while(lock_req.r32 != APE_PERI.PerLockGrantPhy2.r32); + } while (lock_req.r32 != APE_PERI.PerLockGrantPhy2.r32); return; case 3: @@ -83,10 +83,9 @@ void APE_aquireLock(void) do { // spin - } while(lock_req.r32 != APE_PERI.PerLockGrantPhy3.r32); + } while (lock_req.r32 != APE_PERI.PerLockGrantPhy3.r32); return; } - } void APE_releaseLock(void) @@ -96,7 +95,7 @@ void APE_releaseLock(void) lock_release.bits.Bootcode = 1; uint8_t function = DEVICE.Status.bits.FunctionNumber; - switch(function) + switch (function) { default: case 0: @@ -119,12 +118,12 @@ void APE_releaseAllLocks(void) lock_release.r32 = 0; lock_release.bits.Bootcode = 1; - APE_PERI.PerLockGrantPhy0.r32 = lock_release.r32; - APE_PERI.PerLockGrantGrc.r32 = lock_release.r32; - APE_PERI.PerLockGrantPhy1.r32 = lock_release.r32; - APE_PERI.PerLockGrantPhy2.r32 = lock_release.r32; - APE_PERI.PerLockGrantMem.r32 = lock_release.r32; - APE_PERI.PerLockGrantPhy3.r32 = lock_release.r32; - APE_PERI.PerLockGrantPort6.r32 = lock_release.r32; - APE_PERI.PerLockGrantGpio.r32 = lock_release.r32; + APE_PERI.PerLockGrantPhy0.r32 = lock_release.r32; + APE_PERI.PerLockGrantGrc.r32 = lock_release.r32; + APE_PERI.PerLockGrantPhy1.r32 = lock_release.r32; + APE_PERI.PerLockGrantPhy2.r32 = lock_release.r32; + APE_PERI.PerLockGrantMem.r32 = lock_release.r32; + APE_PERI.PerLockGrantPhy3.r32 = lock_release.r32; + APE_PERI.PerLockGrantPort6.r32 = lock_release.r32; + APE_PERI.PerLockGrantGpio.r32 = lock_release.r32; } |