1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-17 17:27:31 +02:00
ben-wpan/atusd/tools/try.c
Werner Almesberger a18d5969bd Next part of board bringup: reset and power cycling.
- atusd/ERRATA: one more problem: the transistor footprint is wrong
- atusd/tools/lib/atusd.c (atusd_cycle, atusd_reset): added power cycling and
  hardware reset
- atusd/tools/lib/atusd.h: be nice and make a header file
- atusd/tools/try.c: be nice and use header files (caught a bug as well)
2010-09-05 14:07:01 -03:00

21 lines
259 B
C

#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;
}