-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Conversation
@gpsimenos, thank you for your changes. |
There was a problem hiding this 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.
platform/internal/SysTimer.h
Outdated
* @{ | ||
* | ||
* @defgroup mbed_SysTimer SysTimer class | ||
* \defgroup mbed_SysTimer SysTimer class |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
platform/internal/mbed_atomic_impl.h
Outdated
@@ -31,6 +31,12 @@ | |||
extern "C" { | |||
#endif | |||
|
|||
/** |
There was a problem hiding this comment.
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.
As per Kevin's comment, |
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. |
There was a problem hiding this 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
@0xc0170 This should go in 5.14 |
This force push to update absolute paths to the new locations |
@gpsimenos @evedon Do we assume the force push has addressed all the review comments ? |
I believe I have addressed everything. |
The review comments have been addressed and the last commit is fixing absolute paths in greentea tests. |
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
Pull request type
Reviewers
@hugueskamba @evedon @kjbracey-arm