redpitaya-puzzlefw/sw
Joris van Rantwijk b32200ba2f Avoid race condition on new data connection
The previous code would clear DMA buffers when a new TCP
data connection is established. This is bad, because the
completion of the server side accept() call happens at
some undefined moment after completion of the client side
connect() call. The client may in the mean time enable
data acquisition via the control connection. This will
lead to data loss if the server subsequently clears
DMA buffers while acquisition is already in progress.

This commit makes two changes:
 - The server does not clear its DMA buffers when it accepts
   a new connection.
 - New commands "AIN:CLEAR" and "TT:CLEAR" are added which
   explicitly clear DMA buffers and drop the current data
   connection, if any.
2025-10-21 08:32:46 +02:00
..
buildroot_overlay Enable ADC output randomization on 4-channel board 2024-10-18 07:28:46 +02:00
config Add GPIO and SPI tools 2024-10-04 17:13:37 +02:00
devicetree Add SPI devices in devicetree 2024-10-04 17:14:47 +02:00
src Avoid race condition on new data connection 2025-10-21 08:32:46 +02:00
.gitignore Build SD card image file 2024-10-14 21:38:13 +02:00
01_get_buildroot.sh Rename os to sw 2024-09-21 18:10:34 +02:00
02_get_uboot.sh Rename os to sw 2024-09-21 18:10:34 +02:00
03_get_kernel.sh Rename os to sw 2024-09-21 18:10:34 +02:00
11_build_buildroot.sh Add custom software to rootfs 2024-09-22 11:36:49 +02:00
12_build_uboot.sh Add custom software to rootfs 2024-09-22 11:36:49 +02:00
13_build_kernel.sh Add custom software to rootfs 2024-09-22 11:36:49 +02:00
14_build_devicetree.sh Rename os to sw 2024-09-21 18:10:34 +02:00
15_build_driver.sh Rename os to sw 2024-09-21 18:10:34 +02:00
16_build_userspace.sh Rename os to sw 2024-09-21 18:10:34 +02:00
21_rebuild_rootfs.sh Add remote control server to rootfs 2024-09-28 21:25:44 +02:00
22_prepare_sdcard.sh Generate SSH host key on first boot 2024-10-13 10:35:19 +02:00
23_sdcard_image.sh Build SD card image file 2024-10-14 21:38:13 +02:00
script_env Build SD card image file 2024-10-14 21:38:13 +02:00