-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Kconfig: Expose USB configurations #12936
Kconfig: Expose USB configurations #12936
Conversation
8c391a1
to
1381485
Compare
Rebased to master, this has no dependencies now. |
I'm not confident in reviewing the modifications to the minimal usbus example, maybe somebody else could look into that |
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 option naming nitpicks.
Is there a consensus (or a rough idea) on a option naming scheme?
Maybe @cgundogan can take a look? |
the changes to the usbus example app are small .. IMO they look fine. I will run a test today and return with my results. |
I did a small test using a samr21 board and changed the configurations with |
@cgundogan @bergzand is this ok to squash? |
Ping @bergzand @cgundogan |
I'm fine with the changes here. I don't have the time at the moment to put this through a test, I have to leave that to the next reviewer :( |
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.
Also OK to squash from my side!
Macros that changed: USB_CONFIG_VID -> CONFIG_USB_VID USB_CONFIG_PID -> CONFIG_USB_PID USB_CONFIG_MANUF_STR -> CONFIG_USB_MANUF_STR USB_CONFIG_PRODUCT_STR -> CONFIG_USB_PRODUCT_STR USB_CONFIG_CONFIGURATION_STR -> CONFIG_USB_CONFIGURATION_STR USB_CONFIG_PRODUCT_BCDVERSION -> CONFIG_USB_PRODUCT_BCDVERSION USB_CONFIG_SPEC_BCDVERSION -> CONFIG_USB_SPEC_BCDVERSION USB_CONFIG_SELF_POWERED -> CONFIG_USB_SELF_POWERED USB_CONFIG_MAX_POWER -> CONFIG_USB_MAX_POWER USB_CONFIG_DEFAULT_LANGID -> CONFIG_USB_DEFAULT_LANGID
9a5390f
to
903909f
Compare
@cgundogan squashed |
Contribution description
This PR moves configuration macros of USB to the
CONFIG_
name space and exposes them to Kconfig.I also added a Kconfig to
examples/usb_minimal
to have VID/PID defaults only for that application.Currently the PR depends on #12913 (97065a8), becauseI added a check in the application's Makefile to not set the VID/PID via CFLAGS when Kconfig is already being used for that.Testing procedure
examples/usb_minimal
should use all the default configurations as always.make menuconfig
should allow to configure USB. When ran inexamples/usb_minimal
VID/PID should have default values. If the default values are changed the warning message should not appear.Issues/PRs references
Depends on #12913Part of #12888