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 {

drivers/internal/EndpointResolver.h

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

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

drivers/internal/LinkEntry.h

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

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

drivers/internal/LinkedList.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,9 @@
2121
#include "LinkEntry.h"
2222
#include "LinkedListBase.h"
2323

24-
/** \defgroup drivers-internal-api-list List
25-
* \ingroup drivers-internal-api
26-
*/
27-
2824
/**
2925
* \defgroup drivers_LinkedList LinkedList class
30-
* \ingroup drivers-internal-api-list
26+
* \ingroup drivers-internal-api-usb
3127
* @{
3228
*/
3329
template<class T>

drivers/internal/LinkedListBase.h

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

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

drivers/internal/MIDIMessage.h

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

4444
/**
4545
* \defgroup drivers_MIDIMessage MIDIMessage class
46-
* \ingroup drivers-internal-api
46+
* \ingroup drivers-internal-usb
4747
* @{
4848
*/
4949

drivers/internal/OperationList.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
#include "OperationListBase.h"
2222
#include "AsyncOp.h"
2323

24+
/**
25+
* \defgroup drivers_OperationList OperationList class
26+
* \ingroup drivers-internal-api-usb
27+
* @{
28+
*/
2429
template<class T>
2530
class OperationList: public OperationListBase {
2631
public:
@@ -84,4 +89,6 @@ class OperationList: public OperationListBase {
8489

8590
};
8691

92+
/** @}*/
93+
8794
#endif

drivers/internal/OperationListBase.h

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

2323
class AsyncOp;
2424

25+
/**
26+
* \defgroup drivers_OperationListBase OperationListBase class
27+
* \ingroup drivers-internal-api-usb
28+
* @{
29+
*/
2530
class OperationListBase {
2631
public:
2732

@@ -93,4 +98,6 @@ class OperationListBase {
9398
LinkedListBase _list;
9499
};
95100

101+
/** @}*/
102+
96103
#endif

drivers/internal/PolledQueue.h

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,9 @@
2222
#include "platform/Callback.h"
2323
#include "LinkedList.h"
2424
namespace events {
25-
/** \addtogroup events-internal-api Events
26-
* \ingroup mbed-os-internal
27-
* @{
28-
*/
29-
30-
3125
/**
32-
* \defgroup events_PolledQueue PolledQueue class
33-
* \ingroup events-internal-api
26+
* \defgroup drivers_PolledQueue PolledQueue class
27+
* \ingroup drivers-internal-api-usb
3428
* @{
3529
*/
3630

@@ -75,7 +69,6 @@ class PolledQueue: public TaskQueue {
7569

7670
};
7771

78-
/** @}*/
7972
/** @}*/
8073

8174
}

drivers/internal/Task.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
#include "platform/Callback.h"
2525

2626
namespace events {
27-
/** \addtogroup events-internal-api
28-
* \ingroup mbed-os-internal
27+
/** \addtogroup drivers-internal-api-usb
2928
* @{
3029
*/
3130

drivers/internal/TaskBase.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ namespace events {
3131
class TaskQueue;
3232

3333
/**
34-
* \defgroup events_TaskBase TaskBase class
35-
* \ingroup events-internal-api
34+
* \defgroup drivers_TaskBase TaskBase class
35+
* \ingroup drivers-internal-api-usb
3636
* @{
3737
*/
3838

drivers/internal/TaskQueue.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
namespace events {
2828

2929
/**
30-
* \defgroup events_TaskQueue TaskQueue class
31-
* \ingroup events-internal-api
30+
* \defgroup drivers_TaskQueue TaskQueue class
31+
* \ingroup drivers-internal-api-usb
3232
* @{
3333
*/
3434

drivers/internal/USBDevice.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@
2323
#include "USBPhy.h"
2424
#include "mbed_critical.h"
2525

26-
/** \ingroup drivers */
27-
/** \addtogroup drivers-internal-api */
28-
/** @{*/
2926
/**
3027
* \defgroup drivers_USBDevice USBDevice class
28+
* \ingroup drivers-internal-api-usb
3129
* @{
3230
*/
3331

@@ -612,7 +610,6 @@ class USBDevice: public USBPhyEvents {
612610
uint32_t _locked;
613611
};
614612

615-
/** @}*/
616613
/** @}*/
617614

618615
#endif

drivers/source/usb/mbed_lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"name": "usb"
2+
"name": "drivers-usb"
33
}

events/internal/equeue_platform.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ extern "C" {
2525
#include <stdbool.h>
2626
#include <stdint.h>
2727

28-
/**
29-
* \addtogroup events-internal-api Events
30-
* \ingroup mbed-os-internal
31-
* @{
32-
*/
33-
3428
// Currently supported platforms
3529
//
3630
// Uncomment to select a supported platform or reimplement this file
@@ -153,8 +147,6 @@ void equeue_sema_destroy(equeue_sema_t *sema);
153147
void equeue_sema_signal(equeue_sema_t *sema);
154148
bool equeue_sema_wait(equeue_sema_t *sema, int ms);
155149

156-
/** @}*/
157-
158150
#ifdef __cplusplus
159151
}
160152
#endif

0 commit comments

Comments
 (0)