From 8ddbd3faab208bf46f907f86dba319f3153613de Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Sat, 19 May 2012 20:48:29 +0000 Subject: moved hid70dongle usbhid pc interface git-svn-id: https://svn.spreadspace.org/mur.sat@443 7de4ea59-55d0-425e-a1af-a3118ea81d4c --- software/hhd70dongle/pcusbhid/reset.c | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 software/hhd70dongle/pcusbhid/reset.c (limited to 'software/hhd70dongle/pcusbhid/reset.c') diff --git a/software/hhd70dongle/pcusbhid/reset.c b/software/hhd70dongle/pcusbhid/reset.c deleted file mode 100644 index 7955b1b..0000000 --- a/software/hhd70dongle/pcusbhid/reset.c +++ /dev/null @@ -1,22 +0,0 @@ -#include -#include - -#include "hid.h" - - -void sendstr(char * tosend) -{ - rawhid_send(0, tosend, strlen(tosend),1000); -} - -int main (int argc, char *argv[]) -{ - // C-based example is 16C0:0480:FFAB:0200 - int r = rawhid_open(1, 0x16C0, 0x0481, 0xFFAB, 0x0200); - if (r <= 0) { - printf("no rawhid device found\n"); - return -1; - } - sendstr("r"); // clear the buffer - return 0; -} -- cgit v1.2.3