Changed default value for the reset polarity parameter in the AVRISP-MKII project so that it defaults to active low drive.
Fixed incorrect USB_DeviceState value when unconfiguring the device without an address set.
This commit is contained in:
@@ -223,7 +223,13 @@
|
||||
{
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user