SWIG experiments

This commit is contained in:
Philippe Teuwen 2020-05-28 02:13:21 +02:00
parent 62ce1cdf13
commit a503dfcd98
34 changed files with 8106 additions and 15 deletions

View file

@ -0,0 +1,3 @@
#!/bin/bash
gcc -o test test.c -I../../include -lpm3rrg_rdv4 -L../build -lpthread

View file

@ -0,0 +1,3 @@
#!/bin/bash
LD_LIBRARY_PATH=../build ./test

View file

@ -0,0 +1,8 @@
#include "pm3.h"
int main(int argc, char *argv[]) {
pm3_device *p;
p = pm3_open("/dev/ttyACM0");
pm3_console(p, "hw status");
pm3_close(p);
}