Skip to content

Commit 07ea79c

Browse files
SenRamakriadbridge
authored andcommitted
Fix doxygen comments to reflect the deprecated functions
1 parent 5b7e67e commit 07ea79c

File tree

5 files changed

+60
-0
lines changed

5 files changed

+60
-0
lines changed

drivers/InterruptManager.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ namespace mbed {
2626
/** \addtogroup drivers */
2727

2828
/** Use this singleton if you need to chain interrupt handlers.
29+
* @deprecated Do not use this class. This class is not part of the public API of mbed-os and is being removed in the future.
2930
*
3031
* @note Synchronization level: Thread safe
3132
*
@@ -57,6 +58,8 @@ namespace mbed {
5758
class InterruptManager : private NonCopyable<InterruptManager> {
5859
public:
5960
/** Get the instance of InterruptManager Class
61+
* @deprecated
62+
* Do not use this function, this class is not part of the public API of mbed-os and is being removed in the future.
6063
*
6164
* @return the only instance of this class
6265
*/
@@ -65,12 +68,17 @@ class InterruptManager : private NonCopyable<InterruptManager> {
6568
static InterruptManager* get();
6669

6770
/** Destroy the current instance of the interrupt manager
71+
* @deprecated
72+
* Do not use this function, this class is not part of the public API of mbed-os and is being removed in the future.
73+
*
6874
*/
6975
MBED_DEPRECATED_SINCE("mbed-os-5.6", "This class is not part of the "
7076
"public API of mbed-os and is being removed in the future.")
7177
static void destroy();
7278

7379
/** Add a handler for an interrupt at the end of the handler list
80+
* @deprecated
81+
* Do not use this function, this class is not part of the public API of mbed-os and is being removed in the future.
7482
*
7583
* @param function the handler to add
7684
* @param irq interrupt number
@@ -86,6 +94,8 @@ class InterruptManager : private NonCopyable<InterruptManager> {
8694
}
8795

8896
/** Add a handler for an interrupt at the beginning of the handler list
97+
* @deprecated
98+
* Do not use this function, this class is not part of the public API of mbed-os and is being removed in the future.
8999
*
90100
* @param function the handler to add
91101
* @param irq interrupt number
@@ -101,6 +111,8 @@ class InterruptManager : private NonCopyable<InterruptManager> {
101111
}
102112

103113
/** Add a handler for an interrupt at the end of the handler list
114+
* @deprecated
115+
* Do not use this function, this class is not part of the public API of mbed-os and is being removed in the future.
104116
*
105117
* @param tptr pointer to the object that has the handler function
106118
* @param mptr pointer to the actual handler function
@@ -118,6 +130,8 @@ class InterruptManager : private NonCopyable<InterruptManager> {
118130
}
119131

120132
/** Add a handler for an interrupt at the beginning of the handler list
133+
* @deprecated
134+
* Do not use this function, this class is not part of the public API of mbed-os and is being removed in the future.
121135
*
122136
* @param tptr pointer to the object that has the handler function
123137
* @param mptr pointer to the actual handler function
@@ -135,6 +149,8 @@ class InterruptManager : private NonCopyable<InterruptManager> {
135149
}
136150

137151
/** Remove a handler from an interrupt
152+
* @deprecated
153+
* Do not use this function, this class is not part of the public API of mbed-os and is being removed in the future.
138154
*
139155
* @param handler the function object for the handler to remove
140156
* @param irq the interrupt number

platform/ATCmdParser.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ class ATCmdParser : private NonCopyable<ATCmdParser>
124124

125125
/**
126126
* For backwards compatibility.
127+
* @deprecated Do not use this function. This function has been replaced with set_timeout for consistency.
127128
*
128129
* Please use set_timeout(int) API only from now on.
129130
* Allows timeout to be changed between commands
@@ -149,6 +150,7 @@ class ATCmdParser : private NonCopyable<ATCmdParser>
149150

150151
/**
151152
* For backwards compatibility.
153+
* @deprecated Do not use this function. This function has been replaced with set_delimiter for consistency.
152154
*
153155
* Please use set_delimiter(const char *) API only from now on.
154156
* Sets string of characters to use as line delimiters
@@ -173,6 +175,7 @@ class ATCmdParser : private NonCopyable<ATCmdParser>
173175

174176
/**
175177
* For backwards compatibility.
178+
* @deprecated Do not use this function. This function has been replaced with debug_on for consistency.
176179
*
177180
* Allows traces from modem to be turned on or off
178181
*

platform/CallChain.h

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class CallChainLink;
3838
* sequence using CallChain::call(). Used mostly by the interrupt chaining code,
3939
* but can be used for other purposes.
4040
*
41+
* @deprecated Do not use this class. This class is not part of the public API of mbed-os and is being removed in the future.
4142
* @note Synchronization level: Not protected
4243
*
4344
* Example:
@@ -74,18 +75,27 @@ class CallChainLink;
7475
class CallChain : private NonCopyable<CallChain> {
7576
public:
7677
/** Create an empty chain
78+
* @deprecated
79+
* Do not use this function, this class is not part of the public API of mbed-os and is being removed in the future.
7780
*
7881
* @param size (optional) Initial size of the chain
7982
*/
8083
MBED_DEPRECATED_SINCE("mbed-os-5.6", "This class is not part of the "
8184
"public API of mbed-os and is being removed in the future.")
8285
CallChain(int size = 4);
8386

87+
/** Create an empty chain
88+
* @deprecated
89+
* Do not use this function, this class is not part of the public API of mbed-os and is being removed in the future.
90+
*/
8491
MBED_DEPRECATED_SINCE("mbed-os-5.6", "This class is not part of the "
8592
"public API of mbed-os and is being removed in the future.")
8693
virtual ~CallChain();
8794

8895
/** Add a function at the end of the chain
96+
*
97+
* @deprecated
98+
* Do not use this function, this class is not part of the public API of mbed-os and is being removed in the future.
8999
*
90100
* @param func A pointer to a void function
91101
*
@@ -117,6 +127,9 @@ class CallChain : private NonCopyable<CallChain> {
117127
}
118128

119129
/** Add a function at the beginning of the chain
130+
* @deprecated
131+
* Do not use this function, this class is not part of the public API of mbed-os and is being removed in the future.
132+
*
120133
*
121134
* @param func A pointer to a void function
122135
*
@@ -148,12 +161,17 @@ class CallChain : private NonCopyable<CallChain> {
148161
}
149162

150163
/** Get the number of functions in the chain
164+
* @deprecated
165+
* Do not use this function, this class is not part of the public API of mbed-os and is being removed in the future.
166+
*
151167
*/
152168
MBED_DEPRECATED_SINCE("mbed-os-5.6", "This class is not part of the "
153169
"public API of mbed-os and is being removed in the future.")
154170
int size() const;
155171

156172
/** Get a function object from the chain
173+
* @deprecated
174+
* Do not use this function, this class is not part of the public API of mbed-os and is being removed in the future.
157175
*
158176
* @param i function object index
159177
*
@@ -165,6 +183,8 @@ class CallChain : private NonCopyable<CallChain> {
165183
pFunctionPointer_t get(int i) const;
166184

167185
/** Look for a function object in the call chain
186+
* @deprecated
187+
* Do not use this function, this class is not part of the public API of mbed-os and is being removed in the future.
168188
*
169189
* @param f the function object to search
170190
*
@@ -176,12 +196,15 @@ class CallChain : private NonCopyable<CallChain> {
176196
int find(pFunctionPointer_t f) const;
177197

178198
/** Clear the call chain (remove all functions in the chain).
199+
* @deprecated Do not use this function. This class is not part of the public API of mbed-os and is being removed in the future.
179200
*/
180201
MBED_DEPRECATED_SINCE("mbed-os-5.6", "This class is not part of the "
181202
"public API of mbed-os and is being removed in the future.")
182203
void clear();
183204

184205
/** Remove a function object from the chain
206+
* @deprecated
207+
* Do not use this function, this class is not part of the public API of mbed-os and is being removed in the future.
185208
*
186209
* @arg f the function object to remove
187210
*
@@ -193,17 +216,30 @@ class CallChain : private NonCopyable<CallChain> {
193216
bool remove(pFunctionPointer_t f);
194217

195218
/** Call all the functions in the chain in sequence
219+
* @deprecated
220+
* Do not use this function, this class is not part of the public API of mbed-os and is being removed in the future.
221+
*
196222
*/
197223
MBED_DEPRECATED_SINCE("mbed-os-5.6", "This class is not part of the "
198224
"public API of mbed-os and is being removed in the future.")
199225
void call();
200226

227+
/**
228+
* @deprecated
229+
* Do not use this function, this class is not part of the public API of mbed-os and is being removed in the future.
230+
*
231+
*/
201232
MBED_DEPRECATED_SINCE("mbed-os-5.6", "This class is not part of the "
202233
"public API of mbed-os and is being removed in the future.")
203234
void operator ()(void) {
204235
call();
205236
}
206237

238+
/**
239+
* @deprecated
240+
* Do not use this function, this class is not part of the public API of mbed-os and is being removed in the future.
241+
*
242+
*/
207243
MBED_DEPRECATED_SINCE("mbed-os-5.6", "This class is not part of the "
208244
"public API of mbed-os and is being removed in the future.")
209245
pFunctionPointer_t operator [](int i) const {

platform/CriticalSectionLock.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class CriticalSectionLock {
6868
}
6969

7070
/** Mark the start of a critical section
71+
* @deprecated This function is inconsistent with RAII and is being removed in the future. Replaced by static function CriticalSectionLock::enable.
7172
*
7273
*/
7374
MBED_DEPRECATED_SINCE("mbed-os-5.8",
@@ -79,6 +80,7 @@ class CriticalSectionLock {
7980
}
8081

8182
/** Mark the end of a critical section
83+
* @deprecated This function is inconsistent with RAII and is being removed in the future. Replaced by static function CriticalSectionLock::enable.
8284
*
8385
*/
8486
MBED_DEPRECATED_SINCE("mbed-os-5.8",

platform/mbed_power_mgmt.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ static inline void sleep(void)
167167
}
168168

169169
/** Send the microcontroller to deep sleep
170+
*
171+
* @deprecated
172+
* Do not use this function. Applications should use sleep() API which puts the system in deepsleep mode if supported.
170173
*
171174
* @note This function can be a noop if not implemented by the platform.
172175
* @note This function will be a noop in debug mode (debug build profile when MBED_DEBUG is defined)

0 commit comments

Comments
 (0)