1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

11 Commits

Author SHA1 Message Date
Leandro Lanzieri
924da3d0c3
examples/usbus_minimal/Makefile: remove unneeded SHOULD_RUN_KCONFIG
This variable is not needed since
250f6fdfa3 removed the Kconfig file for
the application.
2020-11-04 09:35:35 +01:00
chrysn
346093c290 usb: Move Kconfig/Makefile merging into main Makefile.include
This allows the check for test IDs to run independently of the
configuration source, and provides a canonical point for the
configurable (and tested) Makefile variable to enter CFLAGS.
2020-06-30 10:51:37 +02:00
chrysn
250f6fdfa3 usb: Warn on test-ID usage in a unified location
This

* renames DEFAULT_xID to USB_xID_TESTING as it is not really a default
  (if anyting, the 7D00 is, and it's not that)
* moves the check into Makefile
* generalizes the check to all test PID/VID pairs
  * in doing so, fixes the "or" (which would have ruled out warning-free
    use of an allocated pid.codes number), and compares to the actual
    testing PID rather than the RIOT-peripheral PID
* removes all occurrences of duplicated checks in examples or tests,
  leaving definitions only where they are needed
* moves the Kconfig defaults of the usbus_minimal example into the main
  Kconfig, as these are good defaults for all cases when USB is enabled
  manually

Closes: https://github.com/RIOT-OS/RIOT/issues/12273
2020-06-30 10:51:36 +02:00
Leandro Lanzieri
89bea02702
examples/usbus_minimal: Do not run Kconfig by default 2020-04-08 17:37:06 +02:00
Leandro Lanzieri
afba3b1bd2 examples/usbus_minimal: Default to RIOT peripheral PID 2020-01-14 11:22:58 +01:00
Leandro Lanzieri
903909fa4e examples/usbus_minimal: Add default Kconfig PID/VID values 2020-01-14 10:34:53 +01:00
Leandro Lanzieri
84c3676e36 examples/usb_minimal: Set PID/VID if Kconfig is not used 2020-01-14 10:34:53 +01:00
Leandro Lanzieri
15bd4897c1 usb: Move configuration macros to 'CONFIG_' namespace
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
2020-01-14 10:34:53 +01:00
Juan Carrano
8b88666f3d tests,examples/usb: PID, VID warning only when building.
The warning issued when the PID and VID are set to the default values should
not be printed on `make clean` and other targets, only with `make all` and it
should be a proper target.

To do: replace shell echos with proper $(warning ..) calls.
2019-09-02 12:20:32 +02:00
8246b09f10
usbus_minimal: Adapt example to auto_init 2019-06-05 16:17:01 +02:00
537add6deb
USBUS: add minimal working example 2019-06-05 14:51:27 +02:00