-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat(cherryusb): add cherryusb library #2212
base: develop
Are you sure you want to change the base?
Conversation
ac00f28
to
4fb2ab5
Compare
Stupid question 1: Why does this modify the linker files in Stupid question 2: Can this be used as a complete replacement for TinyUSB? (or would that require a much larger refactoring of the SDK's existing USB code?) |
1, my mistake, fixed |
Could you list or point out which usb code? I can help to match with cherryusb. |
I did a |
a3b8377
to
50f3ab7
Compare
Signed-off-by: sakumisu <1203593632@qq.com>
bool stdio_usb_init(void) | ||
{ |
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 stick to existing code-formatting conventions, rather than moving braces to a new line.
More stupid questions from me:
|
Sorry, you told me refactor stdio_usb before, so i misunderstood to only support one. |
Ahhh, apologies for the confusion! EDIT (to clarify): The Raspberry Pi Pico SDK places a big emphasis on backwards-compatibility, and obviously unconditionally replacing tinyusb with cherryusb would break backwards-compatibility of the SDK for existing projects. So to stay backwards-compatible with all existing projects, |
Signed-off-by: sakumisu <1203593632@qq.com>
Yes, i agree, i have changed. |
* This library also includes (by default) functionality to enable the RP-series microcontroller to be reset over the USB interface. | ||
*/ | ||
|
||
// PICO_CONFIG: PICO_STDIO_USB_DEFAULT_CRLF, Default state of CR/LF translation for USB output, type=bool, default=PICO_STDIO_DEFAULT_CRLF, group=pico_stdio_usb |
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.
The tools/extract_configs.py
script will get upset if the same PICO_CONFIG:
entry appears in multiple different files.
Support usb device and host with cherryusb. Also host hub supports.