Skip to content
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
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

jfischer-no
Copy link
Collaborator

@jfischer-no jfischer-no commented Nov 6, 2024

Move legacy USB code to legacy directory and cleanup samples.
WIP
depends on #81308

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]>
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Samples Samples area: USB Universal Serial Bus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant