* \note This macro should only be used if the device has indicated to the host that it\r
* supports the Remote Wakeup feature in the device descriptors, and should only be\r
* issued if the host is currently allowing remote wakeup events from the device (i.e.,\r
- * the \ref USB_RemoteWakeupEnabled flag is set).\r
+ * the \ref USB_RemoteWakeupEnabled flag is set). When the NO_DEVICE_REMOTE_WAKEUP compile\r
+ * time option is used, this macro is unavailable.\r
*\r
* \see \ref Group_Descriptors for more information on the RMWAKEUP feature and device descriptors.\r
*/\r
* a sent RMWAKEUP request was accepted or rejected by the host.\r
*\r
* \note This macro should only be used if the device has indicated to the host that it\r
- * supports the Remote Wakeup feature in the device descriptors.\r
+ * supports the Remote Wakeup feature in the device descriptors. When the NO_DEVICE_REMOTE_WAKEUP\r
+ * compile time option is used, this macro is unavailable.\r
*\r
* \see \ref Group_Descriptors for more information on the RMWAKEUP feature and device descriptors.\r
*\r
*/\r
static inline bool USB_Device_DisableSOFEvents(void);\r
#else\r
- #define USB_Device_SendRemoteWakeup() MACROS{ UDCON |= (1 << RMWKUP); }MACROE\r
-\r
- #define USB_Device_IsRemoteWakeupSent() ((UDCON & (1 << RMWKUP)) ? false : true)\r
+ #if !defined(NO_DEVICE_REMOTE_WAKEUP)\r
+ #define USB_Device_SendRemoteWakeup() MACROS{ UDCON |= (1 << RMWKUP); }MACROE\r
\r
+ #define USB_Device_IsRemoteWakeupSent() ((UDCON & (1 << RMWKUP)) ? false : true)\r
+ #endif\r
+ \r
#define USB_Device_IsUSBSuspended() ((UDINT & (1 << SUSPI)) ? true : false)\r
\r
#define USB_Device_EnableSOFEvents() MACROS{ USB_INT_Enable(USB_INT_SOFI); }MACROE\r