Skip to content

Commit 895b272

Browse files
unicornxRbb666
authored andcommitted
doxygen: fix duplicated defgroup for clock
Problen: Duplicated definition of group_clk in clk.c and clk.h. Solution: Delete the definition in clk.c and keep only the definition in clk.h. Also change the name of group_clk to group_driver_clock to conform to the naming convention of other driver groups. Signed-off-by: Chen Wang <[email protected]>
1 parent 2aebe69 commit 895b272

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

components/drivers/clk/clk.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414
#include <rtdevice.h>
1515

1616
/**
17-
* @defgroup group_clk clk
18-
* @brief clk driver api
19-
* @ingroup group_device_driver
20-
* @addtogroup group_clk
17+
* @addtogroup group_driver_clock
2118
* @{
2219
*/
2320

components/drivers/include/drivers/clk.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@
1818
#include <drivers/ofw.h>
1919

2020
/**
21-
* @defgroup group_clk clk
22-
* @brief clk driver api
21+
* @defgroup group_driver_clock Clock
22+
* @brief Clock driver API
2323
* @ingroup group_device_driver
24-
* @addtogroup group_clk
24+
*/
25+
26+
/**
27+
* @addtogroup group_driver_clock
2528
* @{
2629
*/
2730

0 commit comments

Comments
 (0)