Skip to content

Commit 818233e

Browse files
authored
Enhance comments on DMA data handling
Clarify that this should not be the regular path
1 parent c66ad62 commit 818233e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • Mainboard/Firmware/mainboard/Core/Src

Mainboard/Firmware/mainboard/Core/Src/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ int main(void)
5656
// Only attempt to grab the lock and route data if there
5757
// is actually data waiting in the DMA buffers to help the
5858
// external IRQ retain higher priority access to process_routing
59+
// IMPORTANT NOTE: the goal is to handle all data in the
60+
// interrupts. This pathway to process_routing() is being provided
61+
// as a fail safe. If it is regularly being used, consider this a
62+
// warning sign of a broader system problem as it will cause slow
63+
// link speeds.
5964
if (drv_uart_has_dma_data())
6065
try_process_routing(); // This try function is thread safe
6166

0 commit comments

Comments
 (0)