Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream PR #11073 review request changes #11135

Merged
6 changes: 1 addition & 5 deletions drivers/BusIn.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,9 @@
#include "platform/NonCopyable.h"

namespace mbed {
/** \defgroup drivers-public-api-bus Bus
* \ingroup drivers-public-api
*/

/**
* \defgroup drivers_BusIn BusIn class
* \ingroup drivers-public-api-bus
* \ingroup drivers-public-api-gpio
* @{
*/

Expand Down
2 changes: 1 addition & 1 deletion drivers/BusInOut.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
namespace mbed {
/**
* \defgroup drivers_BusInOut BusInOut class
* \ingroup drivers-public-api-bus
* \ingroup drivers-public-api-gpio
* @{
*/

Expand Down
2 changes: 1 addition & 1 deletion drivers/BusOut.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
namespace mbed {
/**
* \defgroup drivers_BusOut BusOut class
* \ingroup drivers-public-api-bus
* \ingroup drivers-public-api-gpio
* @{
*/

Expand Down
6 changes: 6 additions & 0 deletions drivers/Ethernet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#ifndef MBED_ETHERNET_H
#define MBED_ETHERNET_H

#warning Ethernet.h has been replaced by EthInterface.h, please update to EthInterface.h (or NetworkInterface.h to get an instance of an appropriate network interface (WiFi or Ethernet))
evedon marked this conversation as resolved.
Show resolved Hide resolved
#include "platform/platform.h"
#include "platform/NonCopyable.h"

Expand All @@ -33,6 +34,11 @@ namespace mbed {

/** An ethernet interface, to use with the ethernet pins.
*
* @warning
evedon marked this conversation as resolved.
Show resolved Hide resolved
* EthInterface is now the preferred way to get an Ethernet object.
* Alternatively, use NetworkInterface to get an instance of an appropriate network
* interface (WiFi or Ethernet).
*
* @note Synchronization level: Not protected
*
* Example:
Expand Down
6 changes: 1 addition & 5 deletions drivers/InterruptIn.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,9 @@
#include "platform/NonCopyable.h"

namespace mbed {
/** \defgroup drivers-public-api-interrupt Interrupt
* \ingroup drivers-public-api
*/

/**
* \defgroup drivers_InterruptIn InterruptIn class
* \ingroup drivers-public-api-interrupt
* \ingroup drivers-public-api-gpio
* @{
*/

Expand Down
4 changes: 2 additions & 2 deletions drivers/InterruptManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
#define MBED_INTERRUPTMANAGER_H

#include "cmsis.h"
#include "platform/internal/CallChain.h"
#include "platform/CallChain.h"
#include "platform/PlatformMutex.h"
#include "platform/NonCopyable.h"
#include <string.h>

namespace mbed {
/**
* \defgroup drivers_InterruptManager InterruptManager class
* \ingroup drivers-public-api-interrupt
* \ingroup drivers-public-api-gpio
* @{
*/

Expand Down
2 changes: 1 addition & 1 deletion drivers/SerialWireOutput.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
namespace mbed {
/**
* \defgroup drivers_SerialWireOutput SerialWireOutput class
* \ingroup drivers-public-api-uart
* \ingroup drivers-public-api
* @{
*/

Expand Down
5 changes: 1 addition & 4 deletions drivers/Watchdog.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@
#include <cstdio>

namespace mbed {
/** \ingroup mbed-os-public */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we drop the public?

Copy link
Collaborator Author

@hugueskamba hugueskamba Aug 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is still in the Public API. See line 33. If you are able to, have a look at the generated Doxygen output.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah but why change of groups? We used to have the
Public -> [Drivers, RTOS, ...]
Private -> [...]
is this change affecting the group tree?

Copy link
Collaborator Author

@hugueskamba hugueskamba Aug 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The generated Doxygen ouptut has not changed. This change simply makes the Doxygen comment of this file in line with other files under drivers.
drivers-public-api is defined as being in Public API->Drivers on the Doxygen output.

/** \addtogroup drivers-public-api */
/** @{*/
/**
* \defgroup drivers_Watchdog Watchdog class
* \ingroup drivers-public-api
* @{
*/

Expand Down Expand Up @@ -154,7 +152,6 @@ class Watchdog : private NonCopyable<Watchdog> {
bool _running;
};

/** @}*/
/** @}*/

} // namespace mbed
Expand Down
6 changes: 5 additions & 1 deletion drivers/internal/AsyncOp.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@
* \ingroup mbed-os-internal
*/

/** \defgroup drivers-internal-api-usb USB
* \ingroup drivers-internal-api
*/

/**
* \defgroup drivers_AsyncOp AsyncOp class
* \ingroup drivers-internal-api
* \ingroup drivers-internal-api-usb
* @{
*/
class AsyncOp: public LinkEntry {
Expand Down
2 changes: 1 addition & 1 deletion drivers/internal/ByteBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

/**
* \defgroup drivers_ByteBuffer ByteBuffer class
* \ingroup drivers-internal-api
* \ingroup drivers-internal-api-usb
* @{
*/
class ByteBuffer {
Expand Down
2 changes: 1 addition & 1 deletion drivers/internal/EndpointResolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

/**
* \defgroup drivers_EndpointResolver EndpointResolver class
* \ingroup drivers-internal-api
* \ingroup drivers-internal-api-usb
* @{
*/

Expand Down
2 changes: 1 addition & 1 deletion drivers/internal/LinkEntry.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

/**
* \defgroup drivers_LinkEntry LinkEntry class
* \ingroup drivers-internal-api-list
* \ingroup drivers-internal-api-usb
* @{
*/
class LinkEntry {
Expand Down
6 changes: 1 addition & 5 deletions drivers/internal/LinkedList.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,9 @@
#include "LinkEntry.h"
#include "LinkedListBase.h"

/** \defgroup drivers-internal-api-list List
* \ingroup drivers-internal-api
*/

/**
* \defgroup drivers_LinkedList LinkedList class
* \ingroup drivers-internal-api-list
* \ingroup drivers-internal-api-usb
* @{
*/
template<class T>
Expand Down
2 changes: 1 addition & 1 deletion drivers/internal/LinkedListBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

/**
* \defgroup drivers_LinkedListBase LinkedListBase class
* \ingroup drivers-internal-api-list
* \ingroup drivers-internal-api-usb
* @{
*/
class LinkedListBase {
Expand Down
2 changes: 1 addition & 1 deletion drivers/internal/MIDIMessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

/**
* \defgroup drivers_MIDIMessage MIDIMessage class
* \ingroup drivers-internal-api
* \ingroup drivers-internal-usb
* @{
*/

Expand Down
7 changes: 7 additions & 0 deletions drivers/internal/OperationList.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
#include "OperationListBase.h"
#include "AsyncOp.h"

/**
* \defgroup drivers_OperationList OperationList class
* \ingroup drivers-internal-api-usb
* @{
*/
template<class T>
class OperationList: public OperationListBase {
public:
Expand Down Expand Up @@ -84,4 +89,6 @@ class OperationList: public OperationListBase {

};

/** @}*/

#endif
7 changes: 7 additions & 0 deletions drivers/internal/OperationListBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@

class AsyncOp;

/**
* \defgroup drivers_OperationListBase OperationListBase class
* \ingroup drivers-internal-api-usb
* @{
*/
class OperationListBase {
public:

Expand Down Expand Up @@ -93,4 +98,6 @@ class OperationListBase {
LinkedListBase _list;
};

/** @}*/

#endif
11 changes: 2 additions & 9 deletions drivers/internal/PolledQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,9 @@
#include "platform/Callback.h"
#include "LinkedList.h"
namespace events {
/** \addtogroup events-internal-api Events
* \ingroup mbed-os-internal
* @{
*/


/**
* \defgroup events_PolledQueue PolledQueue class
* \ingroup events-internal-api
* \defgroup drivers_PolledQueue PolledQueue class
* \ingroup drivers-internal-api-usb
* @{
*/

Expand Down Expand Up @@ -75,7 +69,6 @@ class PolledQueue: public TaskQueue {

};

/** @}*/
/** @}*/

}
Expand Down
3 changes: 1 addition & 2 deletions drivers/internal/Task.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
#include "platform/Callback.h"

namespace events {
/** \addtogroup events-internal-api
* \ingroup mbed-os-internal
/** \addtogroup drivers-internal-api-usb
* @{
*/

Expand Down
4 changes: 2 additions & 2 deletions drivers/internal/TaskBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ namespace events {
class TaskQueue;

/**
* \defgroup events_TaskBase TaskBase class
* \ingroup events-internal-api
* \defgroup drivers_TaskBase TaskBase class
* \ingroup drivers-internal-api-usb
* @{
*/

Expand Down
4 changes: 2 additions & 2 deletions drivers/internal/TaskQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
namespace events {

/**
* \defgroup events_TaskQueue TaskQueue class
* \ingroup events-internal-api
* \defgroup drivers_TaskQueue TaskQueue class
* \ingroup drivers-internal-api-usb
* @{
*/

Expand Down
5 changes: 1 addition & 4 deletions drivers/internal/USBDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@
#include "USBPhy.h"
#include "mbed_critical.h"

/** \ingroup drivers */
/** \addtogroup drivers-internal-api */
/** @{*/
/**
* \defgroup drivers_USBDevice USBDevice class
* \ingroup drivers-internal-api-usb
* @{
*/

Expand Down Expand Up @@ -612,7 +610,6 @@ class USBDevice: public USBPhyEvents {
uint32_t _locked;
};

/** @}*/
/** @}*/

#endif
2 changes: 1 addition & 1 deletion drivers/source/usb/mbed_lib.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"name": "usb"
"name": "drivers-usb"
evedon marked this conversation as resolved.
Show resolved Hide resolved
}
8 changes: 0 additions & 8 deletions events/internal/equeue_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ extern "C" {
#include <stdbool.h>
#include <stdint.h>

/**
* \addtogroup events-internal-api Events
* \ingroup mbed-os-internal
* @{
*/

// Currently supported platforms
//
// Uncomment to select a supported platform or reimplement this file
Expand Down Expand Up @@ -153,8 +147,6 @@ void equeue_sema_destroy(equeue_sema_t *sema);
void equeue_sema_signal(equeue_sema_t *sema);
bool equeue_sema_wait(equeue_sema_t *sema, int ms);

/** @}*/

#ifdef __cplusplus
}
#endif
Expand Down
3 changes: 1 addition & 2 deletions events/mbed_events.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@

#include "events/mbed_shared_queues.h"

/** \ingroup mbed-os-internal */
/** \addtogroup events-internal-api */
/** \addtogroup events-public-api */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's 180deg change, why?

Copy link
Collaborator Author

@hugueskamba hugueskamba Aug 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file is not in mbed-os/events/internal but mbed-os/events/ that's where the events Public headers are located.

/** @{*/
#ifndef MBED_NO_GLOBAL_USING_DIRECTIVE
using namespace events;
Expand Down
14 changes: 12 additions & 2 deletions features/device_key/source/DeviceKey.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@
#if (DEVICEKEY_ENABLED) || defined(DOXYGEN_ONLY)

namespace mbed {
/** \addtogroup device-key Device Key */
/** \addtogroup device-security Device Key
* \ingroup mbed-os-public
* @{
*/


#define DEVICE_KEY_16BYTE 16
#define DEVICE_KEY_32BYTE 32
Expand All @@ -58,7 +62,11 @@ enum DeviceKeyStatus {
* @note Synchronization level: Thread safe
* @ingroup device-key
*/

/**
* \defgroup device-security_DeviceKey DeviceKey class
* \addtogroup device-security
* @{
*/
class DeviceKey : private mbed::NonCopyable<DeviceKey> {
public:

Expand Down Expand Up @@ -143,6 +151,8 @@ class DeviceKey : private mbed::NonCopyable<DeviceKey> {
int generate_key_by_random(uint32_t *output, size_t size);

};

/** @}*/
/** @}*/

}
Expand Down
Loading