1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-09-12 23:01:30 +03:00
ben-wpan/atusd/tools/try.c

21 lines
259 B
C
Raw Normal View History

#include <stdio.h>
#include <unistd.h>
#include "lib/atusd.h"
int main(void)
{
struct atusd_dsc *dsc;
char tmp;
dsc = atusd_open();
read(1, &tmp, 1);
fprintf(stderr, "cycling\n");
atusd_cycle(dsc);
read(1, &tmp, 1);
atusd_close(dsc);
return 0;
}