-
Notifications
You must be signed in to change notification settings - Fork 3k
Moving around a few items within \rtos #13264
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
|
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.
Thanks @ashok-rao, it looks totally good to me.
One thing completely unrelated to this PR: Currently rtos_idle.h
is in source/
but its rtos_attach_idle_hook()
is a semi-public API to override the default idle task. It's used by a couple of targets (if we grep targets
for it). In my opinion it should be either a public header or in internal
, depending on whether we allow applications to use it.
Update: Okay, it's the C version (and underlying implementation) of Kernel::attach_idle_hook()
which is public and C++. But target drivers are written in C mostly.
Anyway this shouldn't block the PR in my opinion.
@ashok-rao, thank you for your changes. |
The concept was that headers in
Confusion over application versus target hook there. It's documented as an application hook, which means targets should not be using it. |
@kjbracey-arm Totally agreed.
Idle hooks are used by (or, present in the code bases of) a few targets. I should've raised an issue earlier, and now it's time to do it. In this case this PR looks totally good to me. |
@kjbracey-arm |
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.
In mbed_rtos_types.h, osThreadFlagsSet is declared as a public API. This is used in the bare metal profile to set flags on the main thread (flags can be set from IRQ). Perhaps this function should be declared in a different header, for example ThisThread.h. And you need to udate the doxygen comment in mbed_rtos_types.h.
Alternatively, I would not move the three headers to rtos/internal
in this PR and do this separately.
It seems that our build tools don't support this and require a parent directory under TESTS so we don't do this now. |
@ashok-rao Before we run CI, can you extend the first commit message - add a reason why are we moving ? Copy-paste from PR description would be good. |
CI started |
Test run: FAILEDSummary: 1 of 3 test jobs failed Failed test jobs:
|
CI restarted |
Test run: SUCCESSSummary: 6 of 6 test jobs passed |
Summary of changes
Refactoring \rtos as per directory structure proposal.
Mbed OS will soon be changing directory structure to the below:
This PR implements the above new directory structure for the current
\rtos
directory.Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Successfully compiled all MBED-OS-RTOS-TESTS-TESTS-MBEDMICRO-RTOS-MBED-* tests for NUCLEO_F429ZI using ARMC6 and GCC.
Reviewers
@0xc0170 @LDong-Arm @rajkan01