Skip to content

Organize source files and add Doxygen labels #11441

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

Merged
merged 1 commit into from
Sep 11, 2019
Merged

Organize source files and add Doxygen labels #11441

merged 1 commit into from
Sep 11, 2019

Conversation

gpsimenos
Copy link
Contributor

Description

  • Move source files from mbed-os/platform to mbed-os/platform/source
  • Move internal header files from mbed-os/platform to mbed-os/platform/internal
  • Add Doxygen groups to header files

Pull request type

[ ] Fix
[X] Refactor
[ ] Target update
[ ] Functionality change
[X] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@hugueskamba @evedon @kjbracey-arm

@ciarmcom ciarmcom requested review from evedon, hugueskamba, kjbracey and a team September 9, 2019 13:00
@ciarmcom
Copy link
Member

ciarmcom commented Sep 9, 2019

@gpsimenos, thank you for your changes.
@kjbracey-arm @hugueskamba @evedon @ARMmbed/mbed-os-core @ARMmbed/mbed-os-maintainers please review.

Copy link
Contributor

@evedon evedon left a comment

Choose a reason for hiding this comment

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

Doxygen is missing from mbed_os_timer.h. It would be useful to add.

@gpsimenos
Copy link
Contributor Author

Doxygen is missing from mbed_os_timer.h. It would be useful to add.

Doxygen is not generating any output for this file when added to a group:

Screen Shot 2019-09-09 at 15 37 01

@gpsimenos gpsimenos requested a review from evedon September 9, 2019 14:44
* @{
*
* @defgroup mbed_SysTimer SysTimer class
* \defgroup mbed_SysTimer SysTimer class
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this file is not included by any public header, so can go into source. (The logic being that the source directory contains all source and headers that could be removed from a binary-only distribution, or not be on the include path at all for stuff outside the Mbed OS "source" directories).

Same for mbed_os_timer.h

Except in both cases they're being accessed from a different source directory to this one. Not sure if that forces them to be outside this source directory. Depends how we imagine future path configuration would look.

Copy link
Contributor

Choose a reason for hiding this comment

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

SysTimer.h is included by mbed_os_timer.cpp & mbed_os_timer.cpp - both in platform so no problem at all to move to platform/source

mbed_os_timer.h is not included by any public header but by a few source files in rtos and platform. I would move it under platform/source for now but indeed, we might have to consolidate platform & rtos in the future or decide if headers accessed by different source directories should be moved to internal

Copy link
Contributor

Choose a reason for hiding this comment

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

I thought I saw one reference over in events.

If this was Yotta, then cross-component API would have to be in platform/internal, but we can figure out if we need that restriction later as you say.

@@ -31,6 +31,12 @@
extern "C" {
#endif

/**
Copy link
Contributor

Choose a reason for hiding this comment

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

This is all implementation, so shouldn't need any Doxygen marking, I think. It's implementing stuff declared in "mbed_atomic.h", which should have Doxygen bits.

@evedon
Copy link
Contributor

evedon commented Sep 10, 2019

Doxygen is missing from mbed_os_timer.h. It would be useful to add.

As per Kevin's comment, mbed_os_timer.h will be moved to source so we do not have to add doxygen.

@gpsimenos
Copy link
Contributor Author

This force push addresses above comments. SysTimer.h and mbed_os_timer.h moved to source, Doxygen removed from mbed_os_timer.h and mbed_atomic_impl.h.

Copy link
Contributor

@evedon evedon left a comment

Choose a reason for hiding this comment

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

As noted, we'll have to revisit later if platform/source/mbed_os_timer.h should move to platform/internal

@evedon
Copy link
Contributor

evedon commented Sep 10, 2019

@0xc0170 This should go in 5.14

@0xc0170
Copy link
Contributor

0xc0170 commented Sep 10, 2019

@0xc0170 This should go in 5.14

5.14.0 to be specific? I tagged it to 5.14.0-rc2 , cc @adbridge

@gpsimenos
Copy link
Contributor Author

This force push to update absolute paths to the new locations

@adbridge
Copy link
Contributor

@gpsimenos @evedon Do we assume the force push has addressed all the review comments ?
@kjbracey-arm could you re-review please ?

@gpsimenos
Copy link
Contributor Author

@gpsimenos @evedon Do we assume the force push has addressed all the review comments ?
@kjbracey-arm could you re-review please ?

I believe I have addressed everything.

@evedon
Copy link
Contributor

evedon commented Sep 10, 2019

The review comments have been addressed and the last commit is fixing absolute paths in greentea tests.

@0xc0170
Copy link
Contributor

0xc0170 commented Sep 10, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Sep 10, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

@0xc0170 0xc0170 merged commit 5e69377 into ARMmbed:master Sep 11, 2019
@adbridge adbridge removed the risk: A label Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants