3 #include <asm-generic/ioctls.h>
6 /* Pulse DTR (Harvie 2o1o)
7 * This can be used eg.: for reseting Arduino
9 * make serial-pulse-dtr
10 * ./serial-pulse-dtr /dev/ttyUSB0
15 int main(int argc
, char *argv
[]) {
16 if(argc
< 2) printf("Usage: %s [/dev/tty*]\n", argv
[0]);
18 int fd
= open(argv
[1], O_WRONLY
);
22 //ioctl(fd, TIOCSDTR);
26 //system("sleep 0.1");
30 //ioctl(fd, TIOCCDTR);
This page took 0.386258 seconds and 4 git commands to generate.