Overall, this makes the sample code much simpler and smaller.
Whit the changes introduced in commit commit 57e0da4d80
("boards: add zephyr,code properties to the various gpio-keys nodes")'
this example will work out of the box with any board that has at least
zephyr,code = <INPUT_KEY_0>; in its devicetree.
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
13 lines
282 B
Plaintext
13 lines
282 B
Plaintext
CONFIG_USB_DEVICE_STACK=y
|
|
CONFIG_USB_DEVICE_HID=y
|
|
CONFIG_USB_DEVICE_PRODUCT="Zephyr HID mouse sample"
|
|
CONFIG_USB_DEVICE_PID=0x0007
|
|
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
|
|
|
|
CONFIG_LOG=y
|
|
CONFIG_USB_DRIVER_LOG_LEVEL_ERR=y
|
|
CONFIG_USB_DEVICE_LOG_LEVEL_ERR=y
|
|
|
|
CONFIG_GPIO=y
|
|
CONFIG_INPUT=y
|