Skip to content

Commit f0f408b

Browse files
hugueskambaevedon
authored andcommitted
Upstream PR #11073 review request changes (#11135)
* Modify Doxygen grouping of `drivers` Public/Internal APIs * Correct classification of `mbed_events.h` * Amend name of Doxygen group containing Device Key API * Classify `CallChain.h` as public API and relocate file * Remove Doxygen group from `equeue_platform.h` as it has no Doxygen compliant documentation * Move USB target specific code back to `usb/device/targets`
1 parent 2a9207b commit f0f408b

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

+79
-73
lines changed

drivers/BusIn.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,9 @@
2323
#include "platform/NonCopyable.h"
2424

2525
namespace mbed {
26-
/** \defgroup drivers-public-api-bus Bus
27-
* \ingroup drivers-public-api
28-
*/
29-
3026
/**
3127
* \defgroup drivers_BusIn BusIn class
32-
* \ingroup drivers-public-api-bus
28+
* \ingroup drivers-public-api-gpio
3329
* @{
3430
*/
3531

drivers/BusInOut.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
namespace mbed {
2525
/**
2626
* \defgroup drivers_BusInOut BusInOut class
27-
* \ingroup drivers-public-api-bus
27+
* \ingroup drivers-public-api-gpio
2828
* @{
2929
*/
3030

drivers/BusOut.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
namespace mbed {
2525
/**
2626
* \defgroup drivers_BusOut BusOut class
27-
* \ingroup drivers-public-api-bus
27+
* \ingroup drivers-public-api-gpio
2828
* @{
2929
*/
3030

drivers/Ethernet.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ namespace mbed {
3232
*/
3333

3434
/** An ethernet interface, to use with the ethernet pins.
35+
*
36+
* @deprecated
37+
* EthInterface is now the preferred way to get an Ethernet object.
38+
* Alternatively, use NetworkInterface to get an instance of an appropriate network
39+
* interface (WiFi or Ethernet).
3540
*
3641
* @note Synchronization level: Not protected
3742
*
@@ -72,10 +77,12 @@ class
7277

7378
/** Initialize the ethernet interface.
7479
*/
80+
MBED_DEPRECATED("The class has been deprecated and will be removed in the future.")
7581
Ethernet();
7682

7783
/** Powers the hardware down.
7884
*/
85+
MBED_DEPRECATED("The class has been deprecated and will be removed in the future.")
7986
virtual ~Ethernet();
8087

8188
enum Mode {
@@ -96,6 +103,7 @@ class
96103
* @returns
97104
* The number of written bytes.
98105
*/
106+
MBED_DEPRECATED("The class has been deprecated and will be removed in the future.")
99107
int write(const char *data, int size);
100108

101109
/** Send an outgoing ethernet packet.
@@ -107,6 +115,7 @@ class
107115
* 0 if the sending was failed,
108116
* or the size of the packet successfully sent.
109117
*/
118+
MBED_DEPRECATED("The class has been deprecated and will be removed in the future.")
110119
int send();
111120

112121
/** Receives an arrived ethernet packet.
@@ -119,6 +128,7 @@ class
119128
* 0 if no ethernet packet is arrived,
120129
* or the size of the arrived packet.
121130
*/
131+
MBED_DEPRECATED("The class has been deprecated and will be removed in the future.")
122132
int receive();
123133

124134
/** Read from an received ethernet packet.
@@ -134,12 +144,14 @@ class
134144
* Each time read will start reading after the last read byte before.
135145
*
136146
*/
147+
MBED_DEPRECATED("The class has been deprecated and will be removed in the future.")
137148
int read(char *data, int size);
138149

139150
/** Gives the ethernet address of the mbed.
140151
*
141152
* @param mac Must be a pointer to a 6 byte char array to copy the ethernet address in.
142153
*/
154+
MBED_DEPRECATED("The class has been deprecated and will be removed in the future.")
143155
void address(char *mac);
144156

145157
/** Returns if an ethernet link is present or not. It takes a while after Ethernet initialization to show up.
@@ -165,6 +177,7 @@ class
165177
* }
166178
* @endcode
167179
*/
180+
MBED_DEPRECATED("The class has been deprecated and will be removed in the future.")
168181
int link();
169182

170183
/** Sets the speed and duplex parameters of an ethernet link
@@ -177,6 +190,7 @@ class
177190
*
178191
* @param mode the speed and duplex mode to set the link to:
179192
*/
193+
MBED_DEPRECATED("The class has been deprecated and will be removed in the future.")
180194
void set_link(Mode mode);
181195
};
182196

drivers/InterruptIn.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,9 @@
2929
#include "platform/NonCopyable.h"
3030

3131
namespace mbed {
32-
/** \defgroup drivers-public-api-interrupt Interrupt
33-
* \ingroup drivers-public-api
34-
*/
35-
3632
/**
3733
* \defgroup drivers_InterruptIn InterruptIn class
38-
* \ingroup drivers-public-api-interrupt
34+
* \ingroup drivers-public-api-gpio
3935
* @{
4036
*/
4137

drivers/InterruptManager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
#define MBED_INTERRUPTMANAGER_H
1919

2020
#include "cmsis.h"
21-
#include "platform/internal/CallChain.h"
21+
#include "platform/CallChain.h"
2222
#include "platform/PlatformMutex.h"
2323
#include "platform/NonCopyable.h"
2424
#include <string.h>
2525

2626
namespace mbed {
2727
/**
2828
* \defgroup drivers_InterruptManager InterruptManager class
29-
* \ingroup drivers-public-api-interrupt
29+
* \ingroup drivers-public-api-gpio
3030
* @{
3131
*/
3232

drivers/SerialWireOutput.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
namespace mbed {
2828
/**
2929
* \defgroup drivers_SerialWireOutput SerialWireOutput class
30-
* \ingroup drivers-public-api-uart
30+
* \ingroup drivers-public-api
3131
* @{
3232
*/
3333

drivers/Watchdog.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@
2828
#include <cstdio>
2929

3030
namespace mbed {
31-
/** \ingroup mbed-os-public */
32-
/** \addtogroup drivers-public-api */
33-
/** @{*/
3431
/**
3532
* \defgroup drivers_Watchdog Watchdog class
33+
* \ingroup drivers-public-api
3634
* @{
3735
*/
3836

@@ -154,7 +152,6 @@ class Watchdog : private NonCopyable<Watchdog> {
154152
bool _running;
155153
};
156154

157-
/** @}*/
158155
/** @}*/
159156

160157
} // namespace mbed

drivers/internal/AsyncOp.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,13 @@
3131
* \ingroup mbed-os-internal
3232
*/
3333

34+
/** \defgroup drivers-internal-api-usb USB
35+
* \ingroup drivers-internal-api
36+
*/
37+
3438
/**
3539
* \defgroup drivers_AsyncOp AsyncOp class
36-
* \ingroup drivers-internal-api
40+
* \ingroup drivers-internal-api-usb
3741
* @{
3842
*/
3943
class AsyncOp: public LinkEntry {

drivers/internal/ByteBuffer.h

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

2323
/**
2424
* \defgroup drivers_ByteBuffer ByteBuffer class
25-
* \ingroup drivers-internal-api
25+
* \ingroup drivers-internal-api-usb
2626
* @{
2727
*/
2828
class ByteBuffer {

0 commit comments

Comments
 (0)