Skip to content

Commit fbd9e7e

Browse files
authored
Merge pull request #5372 from SenRamakri/sen_PlatformDoxygenUpdates
Doxygen comments fixes
2 parents c45dd26 + 1ba418e commit fbd9e7e

Some content is hidden

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

49 files changed

+405
-81
lines changed

doxyfile_options

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ DOXYFILE_ENCODING = UTF-8
3232
# title of most generated pages and in a few other places.
3333
# The default value is: My Project.
3434

35-
PROJECT_NAME = "My Project"
35+
PROJECT_NAME = "Mbed OS Reference"
3636

3737
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
3838
# could be handy for archiving the generated documentation or if some version

doxygen_options.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"PROJECT_NAME": "Mbed OS Reference",
23
"ENABLE_PREPROCESSING": "YES",
34
"MACRO_EXPANSION": "YES",
45
"EXPAND_ONLY_PREDEF": "NO",

drivers/UARTSerial.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@
3939

4040
namespace mbed {
4141

42+
/** \addtogroup drivers */
43+
44+
/** Class providing buffered UART communication functionality using separate circular buffer for send and receive channels
45+
*
46+
* @ingroup drivers
47+
*/
48+
4249
class UARTSerial : private SerialBase, public FileHandle, private NonCopyable<UARTSerial> {
4350

4451
public:

platform/ATCmdParser.h

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@
2424
#include <cstdarg>
2525
#include "Callback.h"
2626

27+
namespace mbed {
28+
29+
/** \addtogroup platform */
30+
/** @{*/
31+
/**
32+
* \defgroup platform_ATCmdParser ATCmdParser class
33+
* @{
34+
*/
35+
2736
/**
2837
* Parser class for parsing AT commands
2938
*
@@ -43,8 +52,6 @@
4352
* @endcode
4453
*/
4554

46-
namespace mbed {
47-
4855
class ATCmdParser : private NonCopyable<ATCmdParser>
4956
{
5057
private:
@@ -299,6 +306,11 @@ class ATCmdParser : private NonCopyable<ATCmdParser>
299306
*/
300307
bool process_oob(void);
301308
};
309+
310+
/**@}*/
311+
312+
/**@}*/
313+
302314
} //namespace mbed
303315

304316
#endif //MBED_ATCMDPARSER_H

platform/CThunk.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11

22
/** \addtogroup platform */
33
/** @{*/
4+
/**
5+
* \defgroup platform_CThunk CThunk class
6+
* @{
7+
*/
48
/* General C++ Object Thunking class
59
*
610
* - allows direct callbacks to non-static C++ class functions
@@ -73,13 +77,11 @@
7377

7478
/* IRQ/Exception compatible thunk entry function */
7579
typedef void (*CThunkEntry)(void);
76-
/** @}*/
7780

7881
/**
7982
* Class for created a pointer with data bound to it
8083
*
8184
* @note Synchronization level: Not protected
82-
* @ingroup platform
8385
*/
8486
template<class T>
8587
class CThunk
@@ -243,5 +245,9 @@ class CThunk
243245
}
244246
};
245247

248+
/**@}*/
249+
250+
/**@}*/
251+
246252
#endif/*__CTHUNK_H__*/
247253

platform/CallChain.h

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,17 @@
2222
#include <string.h>
2323

2424
namespace mbed {
25+
26+
27+
typedef Callback<void()> *pFunctionPointer_t;
28+
class CallChainLink;
29+
2530
/** \addtogroup platform */
31+
/** @{*/
32+
/**
33+
* \defgroup platform_CallChain CallChain class
34+
* @{
35+
*/
2636

2737
/** Group one or more functions in an instance of a CallChain, then call them in
2838
* sequence using CallChain::call(). Used mostly by the interrupt chaining code,
@@ -60,12 +70,7 @@ namespace mbed {
6070
* chain.call();
6171
* }
6272
* @endcode
63-
* @ingroup platform
6473
*/
65-
66-
typedef Callback<void()> *pFunctionPointer_t;
67-
class CallChainLink;
68-
6974
class CallChain : private NonCopyable<CallChain> {
7075
public:
7176
/** Create an empty chain
@@ -209,6 +214,10 @@ class CallChain : private NonCopyable<CallChain> {
209214
CallChainLink *_chain;
210215
};
211216

217+
/**@}*/
218+
219+
/**@}*/
220+
212221
} // namespace mbed
213222

214223
#endif

platform/Callback.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,15 @@
2424

2525
namespace mbed {
2626
/** \addtogroup platform */
27-
27+
/** @{*/
28+
/**
29+
* \defgroup platform_Callback Callback class
30+
* @{
31+
*/
2832

2933
/** Callback class based on template specialization
3034
*
3135
* @note Synchronization level: Not protected
32-
* @ingroup platform
3336
*/
3437
template <typename F>
3538
class Callback;
@@ -67,7 +70,6 @@ namespace detail {
6770
/** Callback class based on template specialization
6871
*
6972
* @note Synchronization level: Not protected
70-
* @ingroup platform
7173
*/
7274
template <typename R>
7375
class Callback<R()> {
@@ -642,7 +644,6 @@ class Callback<R()> {
642644
/** Callback class based on template specialization
643645
*
644646
* @note Synchronization level: Not protected
645-
* @ingroup platform
646647
*/
647648
template <typename R, typename A0>
648649
class Callback<R(A0)> {
@@ -1218,7 +1219,6 @@ class Callback<R(A0)> {
12181219
/** Callback class based on template specialization
12191220
*
12201221
* @note Synchronization level: Not protected
1221-
* @ingroup platform
12221222
*/
12231223
template <typename R, typename A0, typename A1>
12241224
class Callback<R(A0, A1)> {
@@ -1795,7 +1795,6 @@ class Callback<R(A0, A1)> {
17951795
/** Callback class based on template specialization
17961796
*
17971797
* @note Synchronization level: Not protected
1798-
* @ingroup platform
17991798
*/
18001799
template <typename R, typename A0, typename A1, typename A2>
18011800
class Callback<R(A0, A1, A2)> {
@@ -2373,7 +2372,6 @@ class Callback<R(A0, A1, A2)> {
23732372
/** Callback class based on template specialization
23742373
*
23752374
* @note Synchronization level: Not protected
2376-
* @ingroup platform
23772375
*/
23782376
template <typename R, typename A0, typename A1, typename A2, typename A3>
23792377
class Callback<R(A0, A1, A2, A3)> {
@@ -2952,7 +2950,6 @@ class Callback<R(A0, A1, A2, A3)> {
29522950
/** Callback class based on template specialization
29532951
*
29542952
* @note Synchronization level: Not protected
2955-
* @ingroup platform
29562953
*/
29572954
template <typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
29582955
class Callback<R(A0, A1, A2, A3, A4)> {
@@ -4546,6 +4543,9 @@ Callback<R(A0, A1, A2, A3, A4)> callback(const volatile U *obj, R (*func)(const
45464543
return Callback<R(A0, A1, A2, A3, A4)>(func, obj);
45474544
}
45484545

4546+
/**@}*/
4547+
4548+
/**@}*/
45494549

45504550
} // namespace mbed
45514551

platform/CircularBuffer.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,15 @@
2020

2121
namespace mbed {
2222
/** \addtogroup platform */
23+
/** @{*/
24+
/**
25+
* \defgroup platform_CircularBuffer CircularBuffer functions
26+
* @{
27+
*/
2328

2429
/** Templated Circular buffer class
2530
*
2631
* @note Synchronization level: Interrupt safe
27-
* @ingroup platform
2832
*/
2933
template<typename T, uint32_t BufferSize, typename CounterType = uint32_t>
3034
class CircularBuffer {
@@ -112,6 +116,10 @@ class CircularBuffer {
112116
volatile bool _full;
113117
};
114118

119+
/**@}*/
120+
121+
/**@}*/
122+
115123
}
116124

117125
#endif

platform/CriticalSectionLock.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@
2222

2323
namespace mbed {
2424

25+
/** \addtogroup platform */
26+
/** @{*/
27+
/**
28+
* \defgroup platform_CriticalSectionLock CriticalSectionLock functions
29+
* @{
30+
*/
31+
2532
/** RAII object for disabling, then restoring, interrupt state
2633
* Usage:
2734
* @code
@@ -65,6 +72,9 @@ class CriticalSectionLock {
6572
}
6673
};
6774

75+
/**@}*/
76+
77+
/**@}*/
6878

6979
} // namespace mbed
7080

platform/DeepSleepLock.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222

2323
namespace mbed {
2424

25+
/** \addtogroup platform */
26+
/** @{*/
27+
/**
28+
* \defgroup platform_DeepSleepLock DeepSleepLock functions
29+
* @{
30+
*/
2531

2632
/** RAII object for disabling, then restoring the deep sleep mode
2733
* Usage:
@@ -82,6 +88,11 @@ class DeepSleepLock {
8288
}
8389
};
8490

91+
/**@}*/
92+
93+
/**@}*/
94+
95+
8596
}
8697

8798
#endif

0 commit comments

Comments
 (0)