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:
parent
70d38e829b
commit
e3d5c178f1
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user