Move backtrace to the HAL folder (#10790)

This commit is contained in:
Scott Lahteine
2018-05-20 01:33:21 -05:00
committed by GitHub
parent 228139eae6
commit 59f7861bcb
15 changed files with 19 additions and 23 deletions

View File

@ -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