- /** Mode mask for the USB_CurrentMode global and the USB_Init() function. This indicates that the\r
- * USB interface is or should be initialized in the USB host mode.\r
- *\r
- * \note Not all USB AVRs support host mode.\r
- */\r
- #define USB_MODE_HOST 2\r
-\r
- /** Mode mask for the the USB_Init() function. This indicates that the USB interface should be\r
- * initialized into whatever mode the UID pin of the USB AVR indicates, and that the device\r
- * should swap over its mode when the level of the UID pin changes during operation.\r
- *\r
- * \note Not all USB AVRs support host mode, and thus UID mode.\r
- */\r
- #define USB_MODE_UID 3\r
+ #if defined(USB_CAN_BE_HOST) || defined(__DOXYGEN__)\r
+ /** Mode mask for the USB_CurrentMode global and the USB_Init() function. This indicates that the\r
+ * USB interface is or should be initialized in the USB host mode.\r
+ *\r
+ * \note This token is not available on AVR models which do not support host mode.\r
+ */\r
+ #define USB_MODE_HOST 2\r
+ #endif\r
+ \r
+ #if defined(USB_CAN_BE_BOTH) || defined(__DOXYGEN__)\r
+ /** Mode mask for the the USB_Init() function. This indicates that the USB interface should be\r
+ * initialized into whatever mode the UID pin of the USB AVR indicates, and that the device\r
+ * should swap over its mode when the level of the UID pin changes during operation.\r
+ *\r
+ * \note This token is not available on AVR models which do not support both host and device modes.\r
+ */\r
+ #define USB_MODE_UID 3\r
+ #endif\r