boardloader: rename reset_flags_init to reset_flags_check

pull/25/head
Pavol Rusnak 7 years ago
parent f0013b0318
commit 6b94fd26e4
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -132,7 +132,7 @@ void periph_init(void)
NVIC_EnableIRQ(PVD_IRQn);
}
secbool reset_flags_init(void)
secbool reset_flags_check(void)
{
#if PRODUCTION
// this is effective enough that it makes development painful, so only use it for production.

@ -10,6 +10,6 @@ void flash_unlock_option_bytes(void);
uint32_t flash_set_option_bytes(void);
secbool flash_configure_option_bytes(void);
void periph_init(void);
secbool reset_flags_init(void);
secbool reset_flags_check(void);
#endif // BOARDLOADER_LOWLEVEL_H

@ -148,7 +148,7 @@ static secbool copy_sdcard(void)
int main(void)
{
if (sectrue != reset_flags_init()) {
if (sectrue != reset_flags_check()) {
return 1;
}

Loading…
Cancel
Save