X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/c79f6e2586047f66f96089e7f398622ccac80cec..77a9df36a77d2523dd2bc24fa17f9f04c6c175c5:/LUFA/Drivers/USB/Core/DeviceStandardReq.h diff --git a/LUFA/Drivers/USB/Core/DeviceStandardReq.h b/LUFA/Drivers/USB/Core/DeviceStandardReq.h index dbf1ca4a7..f47d8f644 100644 --- a/LUFA/Drivers/USB/Core/DeviceStandardReq.h +++ b/LUFA/Drivers/USB/Core/DeviceStandardReq.h @@ -61,13 +61,8 @@ #endif /* Public Interface - May be used in end-application: */ - /* Macros: */ - #if defined(USE_SINGLE_DEVICE_CONFIGURATION) - #define FIXED_NUM_CONFIGURATIONS 1 - #endif - /* Enums: */ - #if !defined(USE_FLASH_DESCRIPTORS) && !defined(USE_EEPROM_DESCRIPTORS) && !defined(USE_RAM_DESCRIPTORS) + #if defined(ARCH_HAS_MULTI_ADDRESS_SPACE) || defined(__DOXYGEN__) /** Enum for the possible descriptor memory spaces, for the \c MemoryAddressSpace parameter of the * \ref CALLBACK_USB_GetDescriptor() function. This can be used when none of the \c USE_*_DESCRIPTORS * compile time options are used, to indicate in which memory space the descriptor is stored. @@ -76,8 +71,12 @@ */ enum USB_DescriptorMemorySpaces_t { + #if defined(ARCH_HAS_FLASH_ADDRESS_SPACE) || defined(__DOXYGEN__) MEMSPACE_FLASH = 0, /**< Indicates the requested descriptor is located in FLASH memory. */ + #endif + #if defined(ARCH_HAS_EEPROM_ADDRESS_SPACE) || defined(__DOXYGEN__) MEMSPACE_EEPROM = 1, /**< Indicates the requested descriptor is located in EEPROM memory. */ + #endif MEMSPACE_RAM = 2, /**< Indicates the requested descriptor is located in RAM memory. */ }; #endif @@ -92,7 +91,7 @@ * * \ingroup Group_Device */ - extern uint8_t USB_ConfigurationNumber; + extern uint8_t USB_Device_ConfigurationNumber; #if !defined(NO_DEVICE_REMOTE_WAKEUP) /** Indicates if the host is currently allowing the device to issue remote wakeup events. If this @@ -109,7 +108,7 @@ * * \ingroup Group_Device */ - extern bool USB_RemoteWakeupEnabled; + extern bool USB_Device_RemoteWakeupEnabled; #endif #if !defined(NO_DEVICE_SELF_POWER) @@ -119,7 +118,7 @@ * * \ingroup Group_Device */ - extern bool USB_CurrentlySelfPowered; + extern bool USB_Device_CurrentlySelfPowered; #endif /* Private Interface - For use in library only: */