mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
Apply suggestions from @henrygab
Check if memory allocation fails Fix memory leak Initialize struct in declaration Add/Fix some notes Remove unlikely() in favor of readability Remove a hard-coded magic number
This commit is contained in:
parent
835b7a9150
commit
3ee13c9ba6
12 changed files with 113 additions and 44 deletions
|
@ -23,6 +23,10 @@
|
|||
#include "common.h"
|
||||
#include "at91sam7s512.h"
|
||||
|
||||
#define AT91C_USB_EP_CONTROL_SIZE 8
|
||||
#define AT91C_USB_EP_OUT_SIZE 64
|
||||
#define AT91C_USB_EP_IN_SIZE 64
|
||||
|
||||
void usb_disable(void);
|
||||
void usb_enable(void);
|
||||
bool usb_check(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue