From 229c7f6538e3fef0b521fd7605576cb8f6a8f6d2 Mon Sep 17 00:00:00 2001 From: Woo Date: Fri, 6 Dec 2024 12:45:45 -0600 Subject: [PATCH] Fix register pointers --- Libraries/PeriphDrivers/Source/FLC/flc_me30.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Libraries/PeriphDrivers/Source/FLC/flc_me30.c b/Libraries/PeriphDrivers/Source/FLC/flc_me30.c index 1e297ab06b..d926e0e420 100644 --- a/Libraries/PeriphDrivers/Source/FLC/flc_me30.c +++ b/Libraries/PeriphDrivers/Source/FLC/flc_me30.c @@ -196,12 +196,12 @@ int MXC_FLC_UnlockInfoBlock(uint32_t address) #endif /* Make sure the info block is locked */ - flc->actrl = 0x1234; + MXC_FLC->actrl = 0x1234; /* Write the unlock sequence */ - flc->actrl = 0x55bcbe69; - flc->actrl = 0x7688c189; - flc->actrl = 0x82306612; + MXC_FLC->actrl = 0x55bcbe69; + MXC_FLC->actrl = 0x7688c189; + MXC_FLC->actrl = 0x82306612; return E_NO_ERROR; } @@ -219,7 +219,7 @@ int MXC_FLC_LockInfoBlock(uint32_t address) return E_NOT_SUPPORTED; #endif - flc->actrl = 0xDEADBEEF; + MXC_FLC->actrl = 0xDEADBEEF; return E_NO_ERROR; }