]> git.zerfleddert.de Git - proxmark3-svn/blame_incremental - bootrom/usb_hid.h
minor fix when reading blocks
[proxmark3-svn] / bootrom / usb_hid.h
... / ...
CommitLineData
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
11HIGH(GPIO_USB_PU); \\r
12AT91C_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
19void UsbSendPacket(uint8_t *packet, int len);\r
20int UsbConnected();\r
21int UsbPoll(int blinkLeds);\r
22void 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
26void UsbPacketReceived(uint8_t *packet, int len);\r
27\r
28#endif // _USB_HID_H_\r
29\r
Impressum, Datenschutz