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