1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-10 15:30:55 +00:00

feat(core): enable bus fault and usage fault handlers

[no changelog]
This commit is contained in:
tychovrahe 2022-09-05 12:12:33 +02:00 committed by TychoVrahe
parent 70d38e829b
commit e3d5c178f1

View File

@ -96,6 +96,11 @@ int main(void) {
// Init peripherals
pendsv_init();
#if !PRODUCTION
// enable BUS fault and USAGE fault handlers
SCB->SHCSR |= (SCB_SHCSR_USGFAULTENA_Msk | SCB_SHCSR_BUSFAULTENA_Msk);
#endif
#if defined TREZOR_MODEL_1
display_init();
button_init();