]>
Commit | Line | Data |
---|---|---|
1 | #ifndef _USB_HID_H_\r | |
2 | #define _USB_HID_H_\r | |
3 | \r | |
4 | #include <common.h>\r | |
5 | #include <proxmark3.h>\r | |
6 | \r | |
7 | //--------------------------------\r | |
8 | // USB defines\r | |
9 | \r | |
10 | #define USB_D_PLUS_PULLUP_ON() { \\r | |
11 | HIGH(GPIO_USB_PU); \\r | |
12 | AT91C_BASE_PIOA->PIO_OER = GPIO_USB_PU; \\r | |
13 | }\r | |
14 | #define USB_D_PLUS_PULLUP_OFF() AT91C_BASE_PIOA->PIO_ODR = GPIO_USB_PU\r | |
15 | \r | |
16 | //--------------------------------\r | |
17 | // USB declarations\r | |
18 | \r | |
19 | void UsbSendPacket(uint8_t *packet, int len);\r | |
20 | int UsbConnected();\r | |
21 | int UsbPoll(int blinkLeds);\r | |
22 | void UsbStart(void);\r | |
23 | \r | |
24 | // This function is provided by the apps/bootrom, and called from UsbPoll\r | |
25 | // if data are available.\r | |
26 | void UsbPacketReceived(uint8_t *packet, int len);\r | |
27 | \r | |
28 | #endif // _USB_HID_H_\r | |
29 | \r |