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 |
bergzand
left a comment
There was a problem hiding this comment.
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 :( |
cgundogan
left a comment
There was a problem hiding this comment.
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_minimalto 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_minimalshould use all the default configurations as always.make menuconfigshould allow to configure USB. When ran inexamples/usb_minimalVID/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