Use the message queue to pass the new report from the input callback, and use a semaphore to protect the report buffer until it is transferred to the host. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
14 lines
314 B
Plaintext
14 lines
314 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
|
|
CONFIG_INPUT_MODE_SYNCHRONOUS=y
|