Skip to content

Instantly share code, notes, and snippets.

View Scott31393's full-sized avatar
🤙

Tommaso Merciai Scott31393

🤙
  • Avnet SILICA
  • Florence, Italy
View GitHub Profile
@Scott31393
Scott31393 / rs485_ioctl_test.c
Last active December 12, 2023 16:49 — forked from amarburg/rs485_ioctl_test.c
A quick test function to demonstrate the Linux serial / RS485 ioctls().
/*
* Test program Linux RS485-mode ioctls.
* Build:
* - source /opt/fsl-imx-xwayland/5.15-kirkstone/environment-setup-armv8a-poky-linux
* - $CC -o test-rs485 rs485_ioctl_test.c
* Usage:
* - ./test-rs485 /dev/ttymxc2
*/
#include <stdlib.h>