From a29250878fb6233b28e3b842cc1bc85da378209f Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Fri, 31 Mar 2023 14:14:57 +0200 Subject: [PATCH] fixup! refactor(core): decouple i2c driver and touch driver --- core/embed/prodtest/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/embed/prodtest/main.c b/core/embed/prodtest/main.c index a676eab32..b2e6c4df9 100644 --- a/core/embed/prodtest/main.c +++ b/core/embed/prodtest/main.c @@ -26,6 +26,7 @@ #include "common.h" #include "display.h" #include "flash.h" +#include "i2c.h" #include "mini_printf.h" #include "random_delays.h" #include "rng.h" @@ -374,6 +375,7 @@ int main(void) { display_orientation(0); random_delays_init(); sdcard_init(); + i2c_init(); touch_init(); sbu_init(); usb_init_all(); @@ -438,3 +440,5 @@ int main(void) { return 0; } + +void HardFault_Handler(void) { error_shutdown("INTERNAL ERROR!", "(HF)"); }