We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e16047 commit dc0b336Copy full SHA for dc0b336
secure_boot_and_secure_firmware_upgrade_over_canfd/app.X/main.c
@@ -43,14 +43,14 @@
43
* Refer to https://ww1.microchip.com/downloads/en/DeviceDoc/70000157g.pdf for
44
* additional details on the GOTO instruction format.
45
*/
46
-uint32_t GetResetAddress()
+static uint32_t GetResetAddress()
47
{
48
flash_data_t flashData[2];
49
FLASH_Read(0x000000, 2, flashData);
50
return (((flashData[1] & 0x0000007F)<<16) | (flashData[0] & 0x0000FFFE));
51
}
52
53
-bool WasLoadedByBootloader()
+static bool WasLoadedByBootloader()
54
55
return (GetResetAddress() < BOOT_CONFIG_PROGRAMMABLE_ADDRESS_LOW);
56
0 commit comments