diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-29 02:49:34 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-29 02:49:34 +0000 |
commit | fef185a409e2fee980d5fd391813a1cb7809582a (patch) | |
tree | 050333ca4ad899261107125511ffb34f2c0743c5 /LUFA/Drivers/USB/LowLevel | |
parent | bb05712efe864fd79162a4b0a9c411b7740a2bdb (diff) | |
download | lufa-fef185a409e2fee980d5fd391813a1cb7809582a.tar.gz lufa-fef185a409e2fee980d5fd391813a1cb7809582a.tar.bz2 lufa-fef185a409e2fee980d5fd391813a1cb7809582a.zip |
Cleanup USBMode.h to simplify preprocessor logic.
Diffstat (limited to 'LUFA/Drivers/USB/LowLevel')
-rw-r--r-- | LUFA/Drivers/USB/LowLevel/LowLevel.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/LowLevel.h b/LUFA/Drivers/USB/LowLevel/LowLevel.h index ca2fc7b15..1ca54ed9d 100644 --- a/LUFA/Drivers/USB/LowLevel/LowLevel.h +++ b/LUFA/Drivers/USB/LowLevel/LowLevel.h @@ -301,6 +301,10 @@ * changed in value.
*/
extern volatile uint8_t USB_CurrentMode;
+ #elif defined(USB_HOST_ONLY)
+ #define USB_CurrentMode USB_MODE_HOST
+ #elif defined(USB_DEVICE_ONLY)
+ #define USB_CurrentMode USB_MODE_DEVICE
#endif
#if !defined(USE_STATIC_OPTIONS) || defined(__DOXYGEN__)
@@ -311,6 +315,8 @@ * changed in value.
*/
extern volatile uint8_t USB_Options;
+ #elif defined(USE_STATIC_OPTIONS)
+ #define USB_Options USE_STATIC_OPTIONS
#endif
/* Private Interface - For use in library only: */
|