diff options
author | Evan Lojewski <github@meklort.com> | 2020-02-29 09:17:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-29 09:17:04 -0700 |
commit | 278bd0be064a643ea3574a2c291b6eefc7ced920 (patch) | |
tree | 4177c4cb2f12d319c6a64fd53344cd3d4c48613c /libs | |
parent | d290d312a8494e73b03d6870a60344db1d698bc1 (diff) | |
download | bcm5719-ortega-278bd0be064a643ea3574a2c291b6eefc7ced920.tar.gz bcm5719-ortega-278bd0be064a643ea3574a2c291b6eefc7ced920.zip |
ape: Properly release the lock when APE_releaseLock is called. (#49)
Diffstat (limited to 'libs')
-rw-r--r-- | libs/APE/ape.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/APE/ape.c b/libs/APE/ape.c index 88c4c25..64930d3 100644 --- a/libs/APE/ape.c +++ b/libs/APE/ape.c @@ -96,7 +96,11 @@ void APE_releaseLock(void) { RegAPE_PERIPerLockGrantPhy0_t lock_release; lock_release.r32 = 0; +#ifdef __arm__ /* APE */ + lock_release.bits.APE = 1; +#else lock_release.bits.Bootcode = 1; +#endif uint8_t function = DEVICE.Status.bits.FunctionNumber; switch (function) |