diff --git a/sys/include/usb.h b/sys/include/usb.h index cbe8c9c241..018c323030 100644 --- a/sys/include/usb.h +++ b/sys/include/usb.h @@ -24,22 +24,38 @@ extern "C" { #endif +/** + * @defgroup usb_conf USB peripheral compile time configurations + * @ingroup config + * @{ + */ /** * @brief USB peripheral device vendor ID + * + * @note You must provide your own VID/PID combination when manufacturing a + * device with USB. */ #ifndef USB_CONFIG_VID +#ifdef DOXYGEN +#define USB_CONFIG_VID +#else #error Please supply your vendor ID by setting USB_CONFIG_VID #endif +#endif /** * @brief USB peripheral device product ID * - * You must provide your own VID/PID combination when manufacturing a device - * with USB + * @note You must provide your own VID/PID combination when manufacturing a + * device with USB. */ #ifndef USB_CONFIG_PID +#ifdef DOXYGEN +#define USB_CONFIG_PID +#else #error Please supply your vendor ID by setting USB_CONFIG_PID #endif +#endif /** * @brief USB peripheral manufacturer string @@ -99,6 +115,7 @@ extern "C" { #ifndef USB_CONFIG_DEFAULT_LANGID #define USB_CONFIG_DEFAULT_LANGID 0x0409 /* EN-US */ #endif +/** @} */ /** * @brief USB version definitions diff --git a/sys/include/usb/usbus.h b/sys/include/usb/usbus.h index 24d439a48e..fbbef5c7f1 100644 --- a/sys/include/usb/usbus.h +++ b/sys/include/usb/usbus.h @@ -40,6 +40,11 @@ extern "C" { #endif +/** + * @defgroup usb_usbus_conf USBUS compile time configurations + * @ingroup usb_conf + * @{ + */ /** * @brief USBUS thread stack size */ @@ -54,11 +59,6 @@ extern "C" { #define USBUS_PRIO (THREAD_PRIORITY_MAIN - 6) #endif -/** - * @brief USBUS thread name - */ -#define USBUS_TNAME "usbus" - /** * @brief USBUS auto attach setting * @@ -80,6 +80,12 @@ extern "C" { #ifndef USBUS_EP0_SIZE #define USBUS_EP0_SIZE 64 #endif +/** @} */ + +/** + * @brief USBUS thread name + */ +#define USBUS_TNAME "usbus" /** * @name USBUS thread flags diff --git a/sys/include/usb/usbus/cdc/acm.h b/sys/include/usb/usbus/cdc/acm.h index 62fb5154e2..8bd2f09c48 100644 --- a/sys/include/usb/usbus/cdc/acm.h +++ b/sys/include/usb/usbus/cdc/acm.h @@ -37,6 +37,11 @@ extern "C" { #endif +/** + * @defgroup usbus_cdc_acm_conf USBUS CDC ACM compile time configurations + * @ingroup usb_conf + * @{ + */ /** * @brief Buffer size for STDIN and STDOUT data to and from USB when using * the USBUS_CDC_ACM_STDIO module @@ -51,6 +56,7 @@ extern "C" { #ifndef USBUS_CDC_ACM_BULK_EP_SIZE #define USBUS_CDC_ACM_BULK_EP_SIZE (64) #endif +/** @} */ /** * @brief USBUS CDC ACM interrupt endpoint size.