mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 17:38:39 +00:00
boardloader: rename reset_flags_init to reset_flags_check
This commit is contained in:
parent
f0013b0318
commit
6b94fd26e4
@ -132,7 +132,7 @@ void periph_init(void)
|
|||||||
NVIC_EnableIRQ(PVD_IRQn);
|
NVIC_EnableIRQ(PVD_IRQn);
|
||||||
}
|
}
|
||||||
|
|
||||||
secbool reset_flags_init(void)
|
secbool reset_flags_check(void)
|
||||||
{
|
{
|
||||||
#if PRODUCTION
|
#if PRODUCTION
|
||||||
// this is effective enough that it makes development painful, so only use it for 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);
|
uint32_t flash_set_option_bytes(void);
|
||||||
secbool flash_configure_option_bytes(void);
|
secbool flash_configure_option_bytes(void);
|
||||||
void periph_init(void);
|
void periph_init(void);
|
||||||
secbool reset_flags_init(void);
|
secbool reset_flags_check(void);
|
||||||
|
|
||||||
#endif // BOARDLOADER_LOWLEVEL_H
|
#endif // BOARDLOADER_LOWLEVEL_H
|
||||||
|
@ -148,7 +148,7 @@ static secbool copy_sdcard(void)
|
|||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
if (sectrue != reset_flags_init()) {
|
if (sectrue != reset_flags_check()) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user