Wait tx complete (#3165)

* Implement radio transmission drain mechanism and update shared memory structure
* don't wait for timeout if baseband already in shut down state
This commit is contained in:
Pezsma
2026-05-12 12:45:02 +02:00
committed by GitHub
parent 4dfbf666d0
commit 66f1835232
5 changed files with 32 additions and 5 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ struct SharedMemory {
uint16_t volatile m4_stack_usage{0};
uint32_t volatile m4_heap_usage{0};
uint16_t volatile m4_buffer_missed{0};
uint8_t volatile radio_tx_drain{0}; // to indicate the baseband thread to drain the tx buffer, and wait for it, before radio::disable()
#ifdef PRALINE
// Phase 0 instrumentation counters for PRALINE radio debugging
uint32_t volatile m4_dma_xfr_count{0}; // DMA transfer_complete() calls