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
USB public APIs cleanup #11034
USB public APIs cleanup #11034
Conversation
@gpsimenos, thank you for your changes. |
@gpsimenos ResetReason.cpp needs to move to |
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.
Some rework needed.
In drivers/internal/Task.h, there is #include "events/TaskBase.h"
TaskBase.h
is under drivers/source/usb/device/utilities/events/. It should be in drivers/internal
Same for TaskQueue.h AsyncOp.h etc.
@gpsimenos The incorrect words are:
You can fix the issue by replacing the first six words with:
Note: You cannot just do a replace all as it might change content that is not part of the Doxygen comments (i.e For
So add |
That's not part of USB. Should I move it regardless? |
Hugues already did it. Rebase your PR to pick up the change. |
Fixed |
@gpsimenos
|
The unit tests fails with the following error:
Basically there is still references to
|
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.
Please make sure that all greentea tests are passing.
And check with tools team if they need some refactoring due to removal of usb/mbed_lib.json file.
Other than that I am okay with the PR.
The Greentea tests are failing. |
The copyright year for modified files need to be updated. |
9f60f9f
to
1a6fa7c
Compare
* Separate internal APIs from public APIs * Move source files to source subdirs * Move internal headers to internal subdirs * Add Doxygen comments for documenting internal and public APIs
The contents of the usb directory were moved to appropriate locations and the usb directory removed. * Public USB headers moved under drivers/ * Internal USB headers moved under drivers/internal/ * USB Source code moved under drivers/source/usb/ * Moved usb/device/hal/ under hal/usb/ * Moved usb/device/USBPhy/ under hal/usb/ * Merged usb/device/targets/ into targets/ * Separated public and private USB API documentation under Doxygen groups drivers-public-api and drivers-internal-api.
The contents of the usb directory were moved to appropriate locations and the usb directory removed. * Public USB headers moved under drivers/ * Internal USB headers moved under drivers/internal/ * USB Source code moved under drivers/source/usb/ * Moved usb/device/hal/ under hal/usb/ * Moved usb/device/USBPhy/ under hal/usb/ * Merged usb/device/targets/ into targets/ * Separated public and private USB API documentation under Doxygen groups drivers-public-api and drivers-internal-api.
Looks like there are some issues with tools/tests.py at least: the USB tests at line 672- in this file refer to a directory TESTS/usb/device/... but this seems to be TESTS/usb_device/... However, this change does not appear to have been introduced here, so I question the testing... |
@jamesbeyond Any comment? |
The contents of the usb directory were moved to appropriate locations and the usb directory removed. * Public USB headers moved under drivers/ * Internal USB headers moved under drivers/internal/ * USB Source code moved under drivers/source/usb/ * Moved usb/device/hal/ under hal/usb/ * Moved usb/device/USBPhy/ under hal/usb/ * Merged usb/device/targets/ into targets/ * Separated public and private USB API documentation under Doxygen groups drivers-public-api and drivers-internal-api.
The contents of the usb directory were moved to appropriate locations and the usb directory removed. * Public USB headers moved under drivers/ * Internal USB headers moved under drivers/internal/ * USB Source code moved under drivers/source/usb/ * Moved usb/device/hal/ under hal/usb/ * Moved usb/device/USBPhy/ under hal/usb/ * Merged usb/device/targets/ into targets/ * Separated public and private USB API documentation under Doxygen groups drivers-public-api and drivers-internal-api.
Description
This PR refactors the usb directory according to https://jira.arm.com/browse/IOTCLOUDPR-3296.
Pull request type
Reviewers
@evedon
@hugueskamba