[riot-notifications] [RIOT-OS/RIOT] usbus/hid_io: add missing header file, add RX callback function (#16689)

Peter Kietzmann notifications at github.com
Thu Jul 29 13:11:54 CEST 2021


@PeterKietzmann commented on this pull request.

The changes seem fine. Still works as expected (see below). 

<details>
  <summary>host</summary>

```
[67577.318364] usb 5-3: new full-speed USB device number 6 using xhci_hcd
[67599.380319] usb 5-3: new full-speed USB device number 7 using xhci_hcd
[67599.530359] usb 5-3: New USB device found, idVendor=1209, idProduct=7d01, bcdDevice= 0.00
[67599.530364] usb 5-3: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[67599.530368] usb 5-3: Product: USB device
[67599.530371] usb 5-3: Manufacturer: RIOT-os.org
[67599.530373] usb 5-3: SerialNumber: 6B64081122F6AFDA
[67599.538009] hid-generic 0003:1209:7D01.001F: hiddev3,hidraw7: USB HID v1.10 Device [RIOT-os.org USB device] on usb-0000:0d:00.0-3/input0
abc at def:~$ echo "Katze" > /dev/hidraw7

```
</details>

<details>
  <summary>tests/usbus_hid on nrf52840dk</summary>

```
2021-07-29 10:25:36,370 # RIOT USB HID echo test
2021-07-29 10:25:36,377 # Write input to the hidraw device under /dev/hidrawX, and see if it gets echoed here
2021-07-29 10:25:38,405 # main(): This is RIOT! (Version: 2021.01-devel-4060-g8d5d3b-HEAD)
2021-07-29 10:25:41,387 # RIOT USB HID echo test
2021-07-29 10:25:41,394 # Write input to the hidraw device under /dev/hidrawX, and see if it gets echoed here
2021-07-29 10:26:37,302 # USB HID rx cb called
2021-07-29 10:26:37,305 # Msg received via USB HID: 
2021-07-29 10:26:37,305 # Katze
2021-07-29 10:26:37,305 # 
2021-07-29 10:30:57,439 # USB HID rx cb called
2021-07-29 10:30:57,441 # Msg received via USB HID: 
2021-07-29 10:30:57,442 # Katze

```
</details>



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16689#pullrequestreview-717966629
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210729/51941e10/attachment.htm>


More information about the notifications mailing list