projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed default value for the reset polarity parameter in the AVRISP-MKII project...
[pub/USBasp.git]
/
LUFA
/
Drivers
/
USB
/
LowLevel
/
Device.h
diff --git
a/LUFA/Drivers/USB/LowLevel/Device.h
b/LUFA/Drivers/USB/LowLevel/Device.h
index
a37e6d9
..
2f54d1d
100644
(file)
--- a/
LUFA/Drivers/USB/LowLevel/Device.h
+++ b/
LUFA/Drivers/USB/LowLevel/Device.h
@@
-223,7
+223,13
@@
{
UDADDR = ((UDADDR & (1 << ADDEN)) | (Address & 0x7F));
UDADDR |= (1 << ADDEN);
{
UDADDR = ((UDADDR & (1 << ADDEN)) | (Address & 0x7F));
UDADDR |= (1 << ADDEN);
- }
+ }
+
+ static inline bool USB_Device_IsAddressSet(void) ATTR_ALWAYS_INLINE;
+ static inline bool USB_Device_IsAddressSet(void)
+ {
+ return (UDADDR & (1 << ADDEN));
+ }
#endif
#endif
#endif
#endif