diff options
author | Paul Selkirk <paul@psgd.org> | 2016-07-05 22:45:35 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2016-07-05 22:45:35 -0400 |
commit | 30f8e4e85b6a337291b09d55d8edc15e422b6341 (patch) | |
tree | 19199dd47bb98e18a96281d34e35d1971565fc72 /masterkey.c | |
parent | e1c57eff41a57b8a3f16e5d652b5598d75887a21 (diff) |
Attempt to add resource management, for multiple cores of the same type.
Find a suitable core, and mark it busy. Don't forget to release it as soon
as you're done. This has a knock-on effect of un-const'ing core arguments
and struct fields in a lot of places, and it moves some core checks around.
Diffstat (limited to 'masterkey.c')
-rw-r--r-- | masterkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/masterkey.c b/masterkey.c index 6425515..ffae618 100644 --- a/masterkey.c +++ b/masterkey.c @@ -63,7 +63,7 @@ static int volatile_init = 0, flash_init = 0; -static const hal_core_t *core = NULL; +static hal_core_t *core = NULL; #define MKM_VOLATILE_STATUS_ADDRESS 0 #define MKM_VOLATILE_SCLK_DIV 0x20 |