aboutsummaryrefslogtreecommitdiff
path: root/mycan.c
diff options
context:
space:
mode:
Diffstat (limited to 'mycan.c')
-rw-r--r--mycan.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mycan.c b/mycan.c
index 3eccce7..efe407e 100644
--- a/mycan.c
+++ b/mycan.c
@@ -1,5 +1,8 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
+
// references:
// https://www.waveshare.com/wiki/RS485_CAN_HAT
+// https://files.waveshare.com/upload/4/4e/RS485_CAN_HAT_Code.zip
// https://github.com/howerj/dbcc MIT
/* build:
@@ -22,7 +25,10 @@ cansend vcan0 680#00.FF.02.00.02.00.02.00
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+
+// LGPL-2.1-or-later
#include <net/if.h>
+
#include <sys/ioctl.h>
#include <sys/socket.h>