--- /dev/null
+#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