I added mainstream2.cc. This is the same as mainstream1.cc, except without the time out, instead it runs until interupted.
To send to a serial port (UART), you need to add one of the UART device trees -- do a ls /lib/firmware/UART to find the DT file to add to /boot/uEnv.txt. Then run the program with /dev/ttySn, for UARTn, where n is 1, 2, 3, 4, or 5.
I added mainstream2.cc. This is the same as mainstream1.cc, except without the time out, instead it runs until interupted.
To send to a serial port (UART), you need to add one of the UART device trees -- do a ls /lib/firmware/UART to find the DT file to add to /boot/uEnv.txt. Then run the program with /dev/ttySn, for UARTn, where n is 1, 2, 3, 4, or 5.