|
|
@ -105,8 +105,6 @@ ring_buffer_r rx_buffer = { { 0 }, 0, 0 };
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(EMERGENCY_PARSER)
|
|
|
|
#if ENABLED(EMERGENCY_PARSER)
|
|
|
|
|
|
|
|
|
|
|
|
#include "../../module/stepper.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Currently looking for: M108, M112, M410
|
|
|
|
// Currently looking for: M108, M112, M410
|
|
|
|
// If you alter the parser please don't forget to update the capabilities in Conditionals_post.h
|
|
|
|
// If you alter the parser please don't forget to update the capabilities in Conditionals_post.h
|
|
|
|
|
|
|
|
|
|
|
@ -296,7 +294,7 @@ FORCE_INLINE void store_rxd_char() {
|
|
|
|
HWUART->UART_IDR = UART_IDR_TXRDY;
|
|
|
|
HWUART->UART_IDR = UART_IDR_TXRDY;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif // TX_BUFFER_SIZE
|
|
|
|
#endif // TX_BUFFER_SIZE > 0
|
|
|
|
|
|
|
|
|
|
|
|
static void UART_ISR(void) {
|
|
|
|
static void UART_ISR(void) {
|
|
|
|
uint32_t status = HWUART->UART_SR;
|
|
|
|
uint32_t status = HWUART->UART_SR;
|
|
|
@ -436,6 +434,7 @@ void MarlinSerial::flush(void) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#if TX_BUFFER_SIZE > 0
|
|
|
|
#if TX_BUFFER_SIZE > 0
|
|
|
|
|
|
|
|
|
|
|
|
uint8_t MarlinSerial::availableForWrite(void) {
|
|
|
|
uint8_t MarlinSerial::availableForWrite(void) {
|
|
|
|
CRITICAL_SECTION_START;
|
|
|
|
CRITICAL_SECTION_START;
|
|
|
|
const uint8_t h = tx_buffer.head, t = tx_buffer.tail;
|
|
|
|
const uint8_t h = tx_buffer.head, t = tx_buffer.tail;
|
|
|
|