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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user