-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
samples: usb: move legacy USB code to legacy directory and cleanup samples #80985
Draft
jfischer-no
wants to merge
29
commits into
zephyrproject-rtos:main
Choose a base branch
from
jfischer-no:pr-usb-reorg-samples
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
samples: usb: move legacy USB code to legacy directory and cleanup samples #80985
jfischer-no
wants to merge
29
commits into
zephyrproject-rtos:main
from
jfischer-no:pr-usb-reorg-samples
+2,158
−1,450
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 tasks
jfischer-no
force-pushed
the
pr-usb-reorg-samples
branch
2 times, most recently
from
November 22, 2024 15:09
74cf1f2
to
06022db
Compare
jfischer-no
force-pushed
the
pr-usb-reorg-samples
branch
from
December 10, 2024 14:35
de242a5
to
061240a
Compare
This was referenced Dec 10, 2024
This is similar to the approach implemented for the legacy CDC ACM class commit 0127d00 ("usb: device: cdc_acm: Use ZLP to detect initial host read") but it uses Set Line Coding request to detect client activity on the host side. Signed-off-by: Johann Fischer <[email protected]>
Fix "warning: 'cdc_acm_send_notification' defined but not used" when Kconfig option UART_USE_RUNTIME_CONFIGURE is not used and properly handle enqueue error. Signed-off-by: Johann Fischer <[email protected]>
… boot Allow CDC ACM UART instance and USB device stack to be initialized and enabled at boot time and use it as the default serial backend for logging or shell. This provides a solution for the users of Kconfig option USB_DEVICE_INITIALIZE_AT_BOOT. Signed-off-by: Johann Fischer <[email protected]>
We can use this sample to show how to use Kconfig option CDC_ACM_SERIAL_INITIALIZE_AT_BOOT. Signed-off-by: Johann Fischer <[email protected]>
Use new USB device stack (next) for CDC ACM serial backend. Signed-off-by: Johann Fischer <[email protected]>
Move any sample that demonstrate only legacy device stack functionality to the legacy directory. Signed-off-by: Johann Fischer <[email protected]>
Copy the legacy part of the CDC ACM sample to a separate sample in the legacy directory. Signed-off-by: Johann Fischer <[email protected]>
Copy the legacy part of the HID mouse sample to a separate sample in the legacy directory. Signed-off-by: Johann Fischer <[email protected]>
Remove legacy code and use of legacy HID API. Signed-off-by: Johann Fischer <[email protected]>
Copy the legacy part of the USB MSC sample to a separate sample in the legacy directory. Make it very simple and drop all filesystem dependencies. Signed-off-by: Johann Fischer <[email protected]>
Remove legacy code and use of legacy MSC API. Signed-off-by: Johann Fischer <[email protected]>
Copy the legacy part of the HCI USB sample to a separate sample in the legacy directory. Signed-off-by: Johann Fischer <[email protected]>
Remove legacy code. Signed-off-by: Johann Fischer <[email protected]>
This example demonstrates the "Bluetooth HCI USB transport layer implementation", a function implemented within the USB device support. The sample itself does not contain any Bluetooth specific code. Signed-off-by: Johann Fischer <[email protected]>
Add a sample that covers legacy CDC EEM/ECM and RNDIS functions. Network functionality is limited to ICMP. Signed-off-by: Johann Fischer <[email protected]>
Remove legacy netusb code. Signed-off-by: Johann Fischer <[email protected]>
The legacy sample has already been moved to the legacy directory in the previous commit. Signed-off-by: Johann Fischer <[email protected]>
Use new USB device stack. Signed-off-by: Johann Fischer <[email protected]>
The change only affects board nrf52840dongle_nrf52840. Signed-off-by: Johann Fischer <[email protected]>
Check that uart_irq_update() has not been called by the user IRQ callback and refrain from scheduling any work. Signed-off-by: Johann Fischer <[email protected]>
Use new USB device stack. Signed-off-by: Johann Fischer <[email protected]>
Use new USB device stack. Signed-off-by: Johann Fischer <[email protected]>
Use new USB device stack. Signed-off-by: Johann Fischer <[email protected]>
Remove netusb code and use new USB device stack. Signed-off-by: Johann Fischer <[email protected]>
Remove netusb code, use new USB device stack and CDC NCM implementation. Signed-off-by: Johann Fischer <[email protected]>
Use new USB device stack. Signed-off-by: Johann Fischer <[email protected]>
Use new USB device stack. Signed-off-by: Johann Fischer <[email protected]>
USB device stack is not used in this sample, remove configuration file overlay. Signed-off-by: Johann Fischer <[email protected]>
Use new USB device stack. Signed-off-by: Johann Fischer <[email protected]>
jfischer-no
force-pushed
the
pr-usb-reorg-samples
branch
from
December 17, 2024 15:48
061240a
to
a70d603
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Move legacy USB code to legacy directory and cleanup samples.
WIP
depends on #81308