mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-17 17:27:31 +02:00
a18d5969bd
- 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)
21 lines
259 B
C
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;
|
|
}
|