Postmortem Debugging to serial port (#20492)

This commit is contained in:
X-Ryl669 2021-02-21 03:22:20 +01:00 committed by GitHub
parent fb8b421aac
commit 8d28853774
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 1286 additions and 740 deletions

View file

@ -272,6 +272,8 @@ static void NVIC_SetPriorityGrouping(uint32_t PriorityGroup) {
} }
#endif
TERN_(POSTMORTEM_DEBUGGING, extern void install_min_serial());
void HAL_init() {
NVIC_SetPriorityGrouping(0x3);
#if PIN_EXISTS(LED)
@ -287,6 +289,7 @@ void HAL_init() {
delay(1000); // Give OS time to notice
OUT_WRITE(USB_CONNECT_PIN, USB_CONNECT_INVERTING);
#endif
TERN_(POSTMORTEM_DEBUGGING, install_min_serial()); // Install the minimal serial handler
}
// HAL idle task