Skip to content

Commit

Permalink
usb: create top-level usb Doxygen group
Browse files Browse the repository at this point in the history
Create a USB Doxygen group, part of the top-level connectivity group.
Added some existing groups to the usb group, note that USB Doxygen needs
to be improved, though.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
  • Loading branch information
gmarull authored and nashif committed Jun 6, 2023
1 parent 9a806e9 commit 30946d4
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 20 deletions.
6 changes: 6 additions & 0 deletions doc/_doxygen/groups.dox
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
@brief Connectivity
@defgroup connectivity Connectivity
@{

@brief USB
@defgroup usb USB
@{
@}

@}

*/
5 changes: 0 additions & 5 deletions doc/services/usb/hid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ HID items reference

.. doxygengroup:: usb_hid_items

HID types reference
*******************

.. doxygengroup:: usb_hid_types

HID Mouse and Keyboard report descriptors
*****************************************

Expand Down
11 changes: 6 additions & 5 deletions include/zephyr/usb/class/hid.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ extern "C" {
/**
* @brief hid.h API
* @defgroup usb_hid_definitions USB HID common definitions
* @ingroup usb
* @{
* @}
*/

/**
* @defgroup usb_hid_types USB HID types and values
* @ingroup usb_hid_definitions
* @name USB HID types and values
* @{
*/

Expand Down Expand Up @@ -168,7 +167,6 @@ extern "C" {

/**
* @defgroup usb_hid_items USB HID Item helpers
* @ingroup usb_hid_definitions
* @{
*/

Expand Down Expand Up @@ -419,7 +417,6 @@ extern "C" {

/**
* @defgroup usb_hid_mk_report_desc Mouse and keyboard report descriptors
* @ingroup usb_hid_definitions
* @{
*/

Expand Down Expand Up @@ -640,6 +637,10 @@ enum hid_kbd_led {
HID_KBD_LED_KANA = 0x10,
};

/**
* @}
*/

/**
* @}
*/
Expand Down
7 changes: 5 additions & 2 deletions include/zephyr/usb/class/usb_hid.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ extern "C" {
/**
* @brief usb_hid.h API
* @defgroup usb_hid_class USB HID class API
* @ingroup usb
* @{
* @}
*/

/**
* @defgroup usb_hid_device_api HID class USB specific definitions
* @ingroup usb_hid_class
* @{
*/

Expand Down Expand Up @@ -125,6 +124,10 @@ int usb_hid_set_proto_code(const struct device *dev, uint8_t proto_code);
*/
int usb_hid_init(const struct device *dev);

/**
* @}
*/

/**
* @}
*/
Expand Down
14 changes: 7 additions & 7 deletions include/zephyr/usb/usbd.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
extern "C" {
#endif

/**
* @brief New USB device stack core API
* @defgroup usbd_api USB device core API
* @ingroup usb
* @{
*/

/*
* The USB Unicode bString is encoded in UTF16LE, which means it takes up
* twice the amount of bytes than the same string encoded in ASCII7.
Expand Down Expand Up @@ -271,13 +278,6 @@ struct usbd_class_node {
struct usbd_class_data *data;
};

/**
* @brief New USB device stack core API
* @defgroup usbd_api USB device core API
* @ingroup usb
* @{
*/

#define USBD_DEVICE_DEFINE(device_name, uhc_dev, vid, pid) \
static struct usb_device_descriptor \
desc_##device_name = { \
Expand Down
3 changes: 2 additions & 1 deletion include/zephyr/usb/usbh.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ extern "C" {

/**
* @brief USB HOST Core Layer API
* @defgroup _usb_host_core_api USB Host Core API
* @defgroup usb_host_core_api USB Host Core API
* @ingroup usb
* @{
*/

Expand Down

0 comments on commit 30946d4

Please sign in to comment.