1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

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)
This commit is contained in:
Werner Almesberger
2010-09-05 14:07:01 -03:00
parent 86e556ce92
commit a18d5969bd
4 changed files with 69 additions and 3 deletions

View File

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