]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - bootrom/usb_hid.h
removed all old usb calls
[proxmark3-svn] / bootrom / usb_hid.h
diff --git a/bootrom/usb_hid.h b/bootrom/usb_hid.h
new file mode 100644 (file)
index 0000000..bbc6cec
--- /dev/null
@@ -0,0 +1,29 @@
+#ifndef _USB_HID_H_\r
+#define _USB_HID_H_\r
+\r
+#include <common.h>\r
+#include <proxmark3.h>\r
+\r
+//--------------------------------\r
+// USB defines\r
+\r
+#define USB_D_PLUS_PULLUP_ON() { \\r
+HIGH(GPIO_USB_PU); \\r
+AT91C_BASE_PIOA->PIO_OER = GPIO_USB_PU; \\r
+}\r
+#define USB_D_PLUS_PULLUP_OFF() AT91C_BASE_PIOA->PIO_ODR = GPIO_USB_PU\r
+\r
+//--------------------------------\r
+// USB declarations\r
+\r
+void UsbSendPacket(uint8_t *packet, int len);\r
+int UsbConnected();\r
+int UsbPoll(int blinkLeds);\r
+void UsbStart(void);\r
+\r
+// This function is provided by the apps/bootrom, and called from UsbPoll\r
+// if data are available.\r
+void UsbPacketReceived(uint8_t *packet, int len);\r
+\r
+#endif // _USB_HID_H_\r
+\r
Impressum, Datenschutz