aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/LowLevel/Device.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-07-21 12:20:34 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-07-21 12:20:34 +0000
commit99d8a3936384d1e9286dfecfb6f7896294cd6c11 (patch)
tree40db0dfda49d5727454c28daea895c9ab028c15f /LUFA/Drivers/USB/LowLevel/Device.h
parent5f57785404e671f136f8c7e325922076d16fee30 (diff)
downloadlufa-99d8a3936384d1e9286dfecfb6f7896294cd6c11.tar.gz
lufa-99d8a3936384d1e9286dfecfb6f7896294cd6c11.tar.bz2
lufa-99d8a3936384d1e9286dfecfb6f7896294cd6c11.zip
Move and rename DevChaper9.c/.h and HostChapter9.c/.h to the HighLevel directory, new named DeviceStandardReq.c/.h and HostStandardReq.c/.h.
Rename LowLevel.c/.h to USBController.c/.h. Remove dependancies on the complete <avr/io.h> header in the HighLevel USB driver directory, to ensure less work is required in later (possible) ports.
Diffstat (limited to 'LUFA/Drivers/USB/LowLevel/Device.h')
-rw-r--r--LUFA/Drivers/USB/LowLevel/Device.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/Device.h b/LUFA/Drivers/USB/LowLevel/Device.h
index 27bc42828..02dd8cf0d 100644
--- a/LUFA/Drivers/USB/LowLevel/Device.h
+++ b/LUFA/Drivers/USB/LowLevel/Device.h
@@ -191,8 +191,11 @@
/* Private Interface - For use in library only: */
#if !defined(__DOXYGEN__)
/* Macros: */
- #define USB_Device_SetLowSpeed() MACROS{ UDCON |= (1 << LSM); }MACROE
- #define USB_Device_SetFullSpeed() MACROS{ UDCON &= ~(1 << LSM); }MACROE
+ #define USB_Device_SetLowSpeed() MACROS{ UDCON |= (1 << LSM); }MACROE
+ #define USB_Device_SetFullSpeed() MACROS{ UDCON &= ~(1 << LSM); }MACROE
+
+ #define USB_Device_SetDeviceAddress(addr) MACROS{ UDADDR = ((1 << ADDEN) | (addr & 0x7F)); }MACROE
+
#endif
#endif