USART_CR2_STOP1_BITS value is zero what's the fuzz?! #5182

more fun
This commit is contained in:
rusefillc 2023-03-16 21:53:59 -04:00
parent 15576819d2
commit 0be3801226
2 changed files with 5 additions and 5 deletions

View File

@ -18,6 +18,11 @@
#include "pin_repository.h"
#endif
#ifndef USART_CR2_STOP1_BITS
// todo: acticulate why exactly does prometheus_469 as for this hack
#define USART_CR2_STOP1_BITS 0
#endif
#define SCRATCH_BUFFER_PREFIX_SIZE 3
class TsChannelBase {

View File

@ -38,11 +38,6 @@ size_t SerialTsChannel::readTimeout(uint8_t* buffer, size_t size, int timeout) {
#if HAL_USE_UART
#ifndef USART_CR2_STOP1_BITS
// todo: acticulate why exactly does prometheus_469 as for this hack
#define USART_CR2_STOP1_BITS 0
#endif
void UartTsChannel::start(uint32_t baud) {
m_config = {
.txend1_cb = NULL,