mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-26 09:52:34 +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
|
// Init peripherals
|
||||||
pendsv_init();
|
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
|
#if defined TREZOR_MODEL_1
|
||||||
display_init();
|
display_init();
|
||||||
button_init();
|
button_init();
|
||||||
|
Loading…
Reference in New Issue
Block a user