remove some old unnecessary code from the NXDNTX processor; include all debug data for debug link scripts; reduce the overall size of buffered frames (due to memory limitations on the STM32F103 64K/20K chips running out of RAM);

usb-support
Bryan Biedenkapp 3 years ago
parent a61cee802e
commit be4b783d67

@ -126,7 +126,7 @@ namespace dmr
const int8_t DMR_MS_VOICE_SYNC_SYMBOLS_VALUES[] = { +3, -3, -3, -3, +3, -3, -3, +3, +3, +3, -3, +3, -3, +3, +3, +3, +3, -3, -3, +3, -3, -3, -3, +3 };
const uint32_t DMR_TX_BUFFER_LEN = 1023U; // 1023 = DMR_FRAME_LENGTH_BYTES * 31 (BUFFER_LEN = DMR_FRAME_LENGTH_BYTES * NO_OF_FRAMES)
const uint32_t DMR_TX_BUFFER_LEN = 538U; // 538 = DMR_FRAME_LENGTH_BYTES * 16 + 10 (BUFFER_LEN = DMR_FRAME_LENGTH_BYTES * NO_OF_FRAMES + 10)
// Data Type(s)
const uint8_t DT_VOICE_PI_HEADER = 0U;

@ -68,7 +68,7 @@ namespace nxdn
const uint16_t NXDN_FSW_SYMBOLS = 0x014DU;
const uint16_t NXDN_FSW_SYMBOLS_MASK = 0x03FFU;
const uint32_t NXDN_TX_BUFFER_LEN = 2016U; // 2016 = NXDN_FRAME_LENGTH_BYTES * 42 (BUFFER_LEN = NXDN_FRAME_LENGTH_BYTES * NO_OF_FRAMES)
const uint32_t NXDN_TX_BUFFER_LEN = 1018U; // 2026 = NXDN_FRAME_LENGTH_BYTES * 21 + 10 (BUFFER_LEN = NXDN_FRAME_LENGTH_BYTES * NO_OF_FRAMES)
} // namespace nxdn
#endif // __NXDN_DEFINES_H__

@ -128,11 +128,6 @@ uint8_t NXDNTX::writeData(const uint8_t* data, uint16_t length)
uint16_t space = m_fifo.getSpace();
DEBUG3("NXDNTX: writeData(): dataLength/fifoLength", length, space);
if (space < length) {
m_fifo.reset();
return RSN_RINGBUFF_FULL;
}
if (space < NXDN_FRAME_LENGTH_BYTES)
return RSN_RINGBUFF_FULL;

@ -120,7 +120,7 @@ namespace p25
const uint32_t P25_SYNC_SYMBOLS = 0x00FB30A0U;
const uint32_t P25_SYNC_SYMBOLS_MASK = 0x00FFFFFFU;
const uint32_t P25_TX_BUFFER_LEN = 2592U; // 2592 = P25_LDU_FRAME_LENGTH_BYTES * 12 (BUFFER_LEN = P25_LDU_FRAME_LENGTH_BYTES * NO_OF_FRAMES)
const uint32_t P25_TX_BUFFER_LEN = 1738U; // 2592 = P25_LDU_FRAME_LENGTH_BYTES * 8 + 10 (BUFFER_LEN = P25_LDU_FRAME_LENGTH_BYTES * NO_OF_FRAMES + 10)
// Data Unit ID(s)
const uint8_t P25_DUID_HDU = 0x00U; // Header Data Unit

@ -150,6 +150,19 @@ SECTIONS
.debug_str 0 : { *(.debug_str) } > ROM
.debug_loc 0 : { *(.debug_loc) } > ROM
.debug_macinfo 0 : { *(.debug_macinfo) } > ROM
/* SGI/MIPS DWARF 2 extensions */
.debug_weaknames 0 : { *(.debug_weaknames) } > ROM
.debug_funcnames 0 : { *(.debug_funcnames) } > ROM
.debug_typenames 0 : { *(.debug_typenames) } > ROM
.debug_varnames 0 : { *(.debug_varnames) } > ROM
/* DWARF 3 */
.debug_pubtypes 0 : { *(.debug_pubtypes) } > ROM
.debug_ranges 0 : { *(.debug_ranges) } > ROM
/* DWARF Extension. */
.debug_macro 0 : { *(.debug_macro) } > ROM
.debug_addr 0 : { *(.debug_addr) } > ROM
.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) } > ROM
.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) } > ROM
/* Remove information from the standard libraries */
/DISCARD/ :

@ -158,6 +158,19 @@ SECTIONS
.debug_str 0 : { *(.debug_str) } > ROM
.debug_loc 0 : { *(.debug_loc) } > ROM
.debug_macinfo 0 : { *(.debug_macinfo) } > ROM
/* SGI/MIPS DWARF 2 extensions */
.debug_weaknames 0 : { *(.debug_weaknames) } > ROM
.debug_funcnames 0 : { *(.debug_funcnames) } > ROM
.debug_typenames 0 : { *(.debug_typenames) } > ROM
.debug_varnames 0 : { *(.debug_varnames) } > ROM
/* DWARF 3 */
.debug_pubtypes 0 : { *(.debug_pubtypes) } > ROM
.debug_ranges 0 : { *(.debug_ranges) } > ROM
/* DWARF Extension. */
.debug_macro 0 : { *(.debug_macro) } > ROM
.debug_addr 0 : { *(.debug_addr) } > ROM
.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) } > ROM
.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) } > ROM
/* Remove information from the standard libraries */
/DISCARD/ :

@ -157,6 +157,19 @@ SECTIONS
.debug_str 0 : { *(.debug_str) } > ROM
.debug_loc 0 : { *(.debug_loc) } > ROM
.debug_macinfo 0 : { *(.debug_macinfo) } > ROM
/* SGI/MIPS DWARF 2 extensions */
.debug_weaknames 0 : { *(.debug_weaknames) } > ROM
.debug_funcnames 0 : { *(.debug_funcnames) } > ROM
.debug_typenames 0 : { *(.debug_typenames) } > ROM
.debug_varnames 0 : { *(.debug_varnames) } > ROM
/* DWARF 3 */
.debug_pubtypes 0 : { *(.debug_pubtypes) } > ROM
.debug_ranges 0 : { *(.debug_ranges) } > ROM
/* DWARF Extension. */
.debug_macro 0 : { *(.debug_macro) } > ROM
.debug_addr 0 : { *(.debug_addr) } > ROM
.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) } > ROM
.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) } > ROM
/* Remove information from the standard libraries */
/DISCARD/ :

Loading…
Cancel
Save

Powered by TurnKey Linux.