stdio_usb improvements #871

Merged
kilograham merged 3 commits from stdio_usb_improvements into develop 2022-06-20 09:51:51 -05:00
kilograham commented 2022-06-17 09:45:55 -05:00 (Migrated from github.com)
  • Use shared IRQ if available to avoid 1ms timer.
  • Allow use of stdio_usb with user's tinyusb setup if it has CDC
* Use shared IRQ if available to avoid 1ms timer. * Allow use of stdio_usb with user's tinyusb setup if it has CDC
kilograham commented 2022-06-17 09:54:20 -05:00 (Migrated from github.com)

fixes #838

fixes #838
Wren6991 (Migrated from github.com) approved these changes 2022-06-20 05:10:02 -05:00
eustas commented 2022-11-04 08:16:18 -05:00 (Migrated from github.com)

Hi. This PR has added a check that callback is executed on the right core... But what is the way to setup default alarm pool to fire on core1? Thanks in advance.

Hi. This PR has added a check that callback is executed on the right core... But what is the way to setup default alarm pool to fire on core1? Thanks in advance.
thewh1teagle commented 2023-12-30 07:28:52 -06:00 (Migrated from github.com)

Hi
How can I use it?
I tried to set

pico_enable_stdio_usb(server 1)

but got the warning

stdio USB was configured along with user use of TinyUSB device mode, but CDC is not enabled

Trying to make the PI as HID + Serial at the same time

Hi How can I use it? I tried to set ``` pico_enable_stdio_usb(server 1) ``` but got the warning ``` stdio USB was configured along with user use of TinyUSB device mode, but CDC is not enabled ``` Trying to make the PI as HID + Serial at the same time
lurch commented 2023-12-30 07:35:19 -06:00 (Migrated from github.com)

All of the Raspberry Pi engineers are currently on holiday, so if none of the examples at https://github.com/raspberrypi/pico-examples/blob/master/README.md#usb-device help, you'll probably get a quicker response from https://forums.raspberrypi.com/

All of the Raspberry Pi engineers are currently on holiday, so if none of the examples at https://github.com/raspberrypi/pico-examples/blob/master/README.md#usb-device help, you'll probably get a quicker response from https://forums.raspberrypi.com/
peterharperuk commented 2023-12-30 10:56:56 -06:00 (Migrated from github.com)

Don't configure stdio to use usb. Use a UART instead

Don't configure stdio to use usb. Use a UART instead
thewh1teagle commented 2023-12-30 11:03:10 -06:00 (Migrated from github.com)

@peterharperuk
But I want to use the same cable for both HID + CDC (for serial) without special tools.

@peterharperuk But I want to use the same cable for both HID + CDC (for serial) without special tools.
thewh1teagle commented 2023-12-30 11:04:27 -06:00 (Migrated from github.com)

I found a way to do that and it works. the PICO act as HID + CDC device and I can read serial output in my PC in the same time.
example here

But I'm still looking for relevant documentation about that and maybe official example

I found a way to do that and it works. the PICO act as HID + CDC device and I can read serial output in my PC in the same time. [example here](https://github.com/thewh1teagle/pico-ble-server/tree/usb-hid-cdc-ble) But I'm still looking for relevant documentation about that and maybe official example
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk!871
No description provided.