Skip to content

Commit dc0b336

Browse files
committed
Limit function scope
1 parent 9e16047 commit dc0b336

File tree

1 file changed

+2
-2
lines changed
  • secure_boot_and_secure_firmware_upgrade_over_canfd/app.X

1 file changed

+2
-2
lines changed

secure_boot_and_secure_firmware_upgrade_over_canfd/app.X/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@
4343
* Refer to https://ww1.microchip.com/downloads/en/DeviceDoc/70000157g.pdf for
4444
* additional details on the GOTO instruction format.
4545
*/
46-
uint32_t GetResetAddress()
46+
static uint32_t GetResetAddress()
4747
{
4848
flash_data_t flashData[2];
4949
FLASH_Read(0x000000, 2, flashData);
5050
return (((flashData[1] & 0x0000007F)<<16) | (flashData[0] & 0x0000FFFE));
5151
}
5252

53-
bool WasLoadedByBootloader()
53+
static bool WasLoadedByBootloader()
5454
{
5555
return (GetResetAddress() < BOOT_CONFIG_PROGRAMMABLE_ADDRESS_LOW);
5656
}

0 commit comments

Comments
 (0)