Move backtrace to the HAL folder (#10790)
This commit is contained in:
@ -22,10 +22,12 @@
|
||||
|
||||
#ifdef ARDUINO_ARCH_SAM
|
||||
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
#include "../../Marlin.h"
|
||||
#include "../../backtrace/unwinder.h"
|
||||
#include "../../backtrace/unwmemaccess.h"
|
||||
#include "../../core/macros.h"
|
||||
#include "../../core/serial.h"
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "../backtrace/unwinder.h"
|
||||
#include "../backtrace/unwmemaccess.h"
|
||||
|
||||
// Debug monitor that dumps to the Programming port all status when
|
||||
// an exception or WDT timeout happens - And then resets the board
|
||||
@ -66,7 +68,6 @@ static void TXBegin(void) {
|
||||
UART->UART_CR = UART_CR_RXEN | UART_CR_TXEN;
|
||||
}
|
||||
|
||||
|
||||
// Send character through UART with no interrupts
|
||||
static void TX(char c) {
|
||||
while (!(UART->UART_SR & UART_SR_TXRDY)) { WDT_Restart(WDT); sw_barrier(); };
|
||||
@ -333,4 +334,4 @@ __attribute__((naked)) void RSTC_Handler(void) {
|
||||
);
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // ARDUINO_ARCH_SAM
|
||||
|
Reference in New Issue
Block a user