Skip to content

Commit c40b790

Browse files
authored
doxygen: add prefix for groups (#9991)
* doxygen: add prefix for groups Add "group_" prefix to doxygen group names. This makes it easier to grep with group name later. This patch only modifies the groups defined in the pathes of INPUT of documentation/Doxyfile: INPUT = . \ ../src \ ../include \ ../components/finsh \ ../components/drivers/include/drivers \ ../components/drivers/clk \ ../components/dfs/dfs_v2/src \ ../components/dfs/dfs_v2/include Other groups are not touched. Signed-off-by: Chen Wang <[email protected]> * ci: fixed error report when run file_check.py Such as: - "please delete extra space at the end of this line." - "the RT-Thread error code should return negative value. e.g. return -RT_ERROR" Signed-off-by: Chen Wang <[email protected]> --------- Signed-off-by: Chen Wang <[email protected]>
1 parent f6f7d91 commit c40b790

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+233
-233
lines changed

components/dfs/dfs_v1/src/dfs.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static struct dfs_fdtable _fdtab;
3838
static int fd_alloc(struct dfs_fdtable *fdt, int startfd);
3939

4040
/**
41-
* @addtogroup DFS
41+
* @addtogroup group_DFS
4242
* @{
4343
*/
4444

@@ -297,7 +297,7 @@ static int fd_alloc(struct dfs_fdtable *fdt, int startfd)
297297
}
298298

299299
/**
300-
* @ingroup Fd
300+
* @ingroup group_Fd
301301
* This function will allocate a file descriptor.
302302
*
303303
* @return -1 on failed or the allocated file descriptor.
@@ -331,7 +331,7 @@ int fd_new(void)
331331
}
332332

333333
/**
334-
* @ingroup Fd
334+
* @ingroup group_Fd
335335
*
336336
* This function will return a file descriptor structure according to file
337337
* descriptor.
@@ -373,7 +373,7 @@ struct dfs_file *fd_get(int fd)
373373
}
374374

375375
/**
376-
* @ingroup Fd
376+
* @ingroup group_Fd
377377
*
378378
* @brief This function will release the file descriptor.
379379
*
@@ -480,7 +480,7 @@ rt_err_t sys_dup(int oldfd)
480480
#endif /* DFS_USING_POSIX */
481481

482482
/**
483-
* @ingroup Fd
483+
* @ingroup group_Fd
484484
*
485485
* This function will return whether this file has been opend.
486486
*

components/dfs/dfs_v1/src/dfs_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static struct dfs_vnode *dfs_vnode_find(const char *path, rt_list_t **hash_head)
141141
}
142142

143143
/**
144-
* @addtogroup FileApi
144+
* @addtogroup group_FileApi
145145
* @{
146146
*/
147147

components/dfs/dfs_v1/src/dfs_fs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "dfs_private.h"
1818

1919
/**
20-
* @addtogroup FsApi
20+
* @addtogroup group_FsApi
2121
* @{
2222
*/
2323

components/dfs/dfs_v1/src/dfs_posix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#endif
2020

2121
/**
22-
* @addtogroup FsPosixApi
22+
* @addtogroup group_FsPosixApi
2323
* @{
2424
*/
2525

components/dfs/dfs_v2/src/dfs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ void dfs_unlock(void)
139139
rt_mutex_release(&fslock);
140140
}
141141

142-
/** @addtogroup DFS
142+
/** @addtogroup group_DFS
143143
*
144144
*
145145
* @{
@@ -218,7 +218,7 @@ void dfs_file_destroy(struct dfs_file *file)
218218
}
219219

220220
/**
221-
* @ingroup Fd
221+
* @ingroup group_Fd
222222
* This function will allocate a file descriptor.
223223
*
224224
* @return -1 on failed or the allocated file descriptor.
@@ -291,7 +291,7 @@ void fdt_fd_release(struct dfs_fdtable *fdt, int fd)
291291
}
292292

293293
/**
294-
* @ingroup Fd
294+
* @ingroup group_Fd
295295
*
296296
* This function will return a file descriptor structure according to file
297297
* descriptor.
@@ -369,7 +369,7 @@ int fd_new(void)
369369
}
370370

371371
/**
372-
* @ingroup Fd
372+
* @ingroup group_Fd
373373
*
374374
* This function will put the file descriptor.
375375
*/

components/dfs/dfs_v2/src/dfs_fs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static struct dfs_filesystem_type *file_systems = NULL;
3131
extern rt_list_t _mnt_list;
3232

3333
/**
34-
* @addtogroup FsApi
34+
* @addtogroup group_FsApi
3535
*/
3636
/*@{*/
3737

components/dfs/dfs_v2/src/dfs_posix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#endif
2323

2424
/**
25-
* @addtogroup FsPosixApi
25+
* @addtogroup group_FsPosixApi
2626
* @{
2727
*/
2828

components/drivers/clk/clk.c

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

1616
/**
17-
* @addtogroup Drivers RTTHREAD Driver
18-
* @defgroup clk clk
17+
* @addtogroup group_Drivers RTTHREAD Driver
18+
* @defgroup group_clk clk
1919
* @brief clk driver api
20-
* @ingroup Drivers
21-
* @addtogroup clk
20+
* @ingroup group_Drivers
21+
* @addtogroup group_clk
2222
* @{
2323
*/
2424

components/drivers/include/drivers/adc.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
#include <rtthread.h>
1717
/**
18-
* @addtogroup Drivers RTTHREAD Driver
19-
* @defgroup ADC ADC
18+
* @addtogroup group_Drivers RTTHREAD Driver
19+
* @defgroup group_ADC ADC
2020
*
2121
* @brief ADC driver api
2222
*
@@ -57,12 +57,12 @@
5757
*
5858
* @endcode
5959
*
60-
* @ingroup Drivers
60+
* @ingroup group_Drivers
6161
*/
6262

6363

6464
/*!
65-
* @addtogroup ADC
65+
* @addtogroup group_ADC
6666
* @{
6767
*/
6868
#define RT_ADC_INTERN_CH_TEMPER (-1)
@@ -105,7 +105,7 @@ typedef enum
105105
* @param ops device ops
106106
* @param user_data device private data
107107
* @return rt_err_t error code
108-
* @ingroup ADC
108+
* @ingroup group_ADC
109109
*/
110110
rt_err_t rt_hw_adc_register(rt_adc_device_t adc,const char *name, const struct rt_adc_ops *ops, const void *user_data);
111111

@@ -114,7 +114,7 @@ rt_err_t rt_hw_adc_register(rt_adc_device_t adc,const char *name, const struct r
114114
* @param dev adc device
115115
* @param channel adc channel
116116
* @return rt_uint32_t adc value
117-
* @ingroup ADC
117+
* @ingroup group_ADC
118118
*/
119119
rt_uint32_t rt_adc_read(rt_adc_device_t dev, rt_int8_t channel);
120120

@@ -123,7 +123,7 @@ rt_uint32_t rt_adc_read(rt_adc_device_t dev, rt_int8_t channel);
123123
* @param dev adc device
124124
* @param channel adc channel
125125
* @return rt_err_t error code
126-
* @ingroup ADC
126+
* @ingroup group_ADC
127127
*/
128128
rt_err_t rt_adc_enable(rt_adc_device_t dev, rt_int8_t channel);
129129

@@ -132,7 +132,7 @@ rt_err_t rt_adc_enable(rt_adc_device_t dev, rt_int8_t channel);
132132
* @param dev adc device
133133
* @param channel adc channel
134134
* @return rt_err_t error code
135-
* @ingroup ADC
135+
* @ingroup group_ADC
136136
*/
137137
rt_err_t rt_adc_disable(rt_adc_device_t dev, rt_int8_t channel);
138138

@@ -141,7 +141,7 @@ rt_err_t rt_adc_disable(rt_adc_device_t dev, rt_int8_t channel);
141141
* @param dev adc device
142142
* @param channel adc channel
143143
* @return rt_int16_t adc resolution
144-
* @ingroup ADC
144+
* @ingroup group_ADC
145145
*/
146146
rt_int16_t rt_adc_voltage(rt_adc_device_t dev, rt_int8_t channel);
147147

components/drivers/include/drivers/blk.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
#include <drivers/classes/block.h>
1818

1919
/**
20-
* @addtogroup Drivers RTTHREAD Driver
21-
* @defgroup blk blk
20+
* @addtogroup group_Drivers RTTHREAD Driver
21+
* @defgroup group_blk blk
2222
* @brief blk driver api
23-
* @ingroup Drivers
24-
* @addtogroup blk
23+
* @ingroup group_Drivers
24+
* @addtogroup group_blk
2525
* @{
2626
*/
2727

0 commit comments

Comments
 (0)