Skip to content

Commit 0ec80c2

Browse files
committed
Move gsv_rdm_data_receive_end` out of anonymous namespace
Relocates `gsv_rdm_data_receive_end` from the anonymous namespace to file scope so it has external linkage while keeping the rest of the DMX/RDM buffer layout unchanged.
1 parent e82432e commit 0ec80c2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib-dmx/src/gd32/dmx.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@ volatile dmx::TotalStatistics sv_total_statistics[dmx::config::max::kPorts] ALIG
189189

190190
// DMX RX
191191
volatile dmx::RxDmxPackets sv_rx_dmx_packets[dmx::config::max::kPorts] ALIGNED;
192-
// RDM RX
193-
volatile uint32_t gsv_rdm_data_receive_end[dmx::config::max::kPorts];
194192
// DMX RDM RX
195193
volatile dmx::RxData sv_rx_buffer[dmx::config::max::kPorts] ALIGNED;
196194
// DMX TX
@@ -200,6 +198,9 @@ dmx::DmxTransmit s_dmx_transmit;
200198
dmx::RdmTxData s_RdmTxBuffer[dmx::config::max::kPorts] ALIGNED SECTION_DMA_BUFFER;
201199
} // namespace
202200

201+
// RDM RX
202+
volatile uint32_t gsv_rdm_data_receive_end[dmx::config::max::kPorts];
203+
203204
template <uint32_t kUsartPeripheral>
204205
void IrqHandlerDmxRdmInput() {
205206
constexpr auto kPortIndex = GetPortByUart(kUsartPeripheral);

0 commit comments

Comments
 (0)