Fix for STM32F105 startup hang

This commit is contained in:
Andy CA6JAU 2018-08-06 14:53:47 -04:00
parent c2e785cdc4
commit f8ab4fe9bd
5 changed files with 13 additions and 3 deletions

View File

@ -97,6 +97,12 @@ const uint16_t RX_BLOCK_SIZE = 2U;
const uint16_t TX_RINGBUFFER_SIZE = 500U;
const uint16_t RX_RINGBUFFER_SIZE = 600U;
#if defined(STM32F105xC)
const uint16_t TX_BUFFER_LEN = 2000U;
#else
const uint16_t TX_BUFFER_LEN = 4000U;
#endif
extern MMDVM_STATE m_modemState;
extern bool m_dstarEnable;

View File

@ -45,7 +45,7 @@ const uint8_t NXDN_PREAMBLE[] = {0x57U, 0x75U, 0xFDU};
const uint8_t NXDN_SYNC = 0x5FU;
CNXDNTX::CNXDNTX() :
m_buffer(4000U),
m_buffer(TX_BUFFER_LEN),
m_modFilter(),
m_sincFilter(),
m_modState(),

View File

@ -43,7 +43,7 @@ const q15_t P25_LEVELD = -1260;
const uint8_t P25_START_SYNC = 0x77U;
CP25TX::CP25TX() :
m_buffer(4000U),
m_buffer(TX_BUFFER_LEN),
m_modFilter(),
m_lpFilter(),
m_modState(),

View File

@ -32,7 +32,11 @@ Boston, MA 02110-1301, USA.
#include <Arduino.h>
#endif
#if defined(STM32F105xC)
const uint16_t SERIAL_RINGBUFFER_SIZE = 370U;
#else
const uint16_t SERIAL_RINGBUFFER_SIZE = 1000U;
#endif
class CSerialRB {
public:

View File

@ -44,7 +44,7 @@ const uint8_t YSF_END_SYNC = 0xFFU;
const uint8_t YSF_HANG = 0x00U;
CYSFTX::CYSFTX() :
m_buffer(4000U),
m_buffer(TX_BUFFER_LEN),
m_modFilter(),
m_modState(),
m_poBuffer(),