ChibiOS-Contrib/testhal/NUMICRO/NUC123/NUTINY-SDK-NUC123-V2.0/USB_HID
Alex Lewontin 09394a1b1a
NUC123: Added CONFIG0/1 settings, and updated linker script
2021-02-14 14:34:24 -05:00
..
Client NUC123 USB driver CI fixes: add .skip file to darwin client, and revert testhal/USB_HID to RT/6.1 2020-12-14 19:37:27 -05:00
cfg NUC123 USB driver CI fixes: add .skip file to darwin client, and revert testhal/USB_HID to RT/6.1 2020-12-14 19:37:27 -05:00
Makefile NUC123: Added CONFIG0/1 settings, and updated linker script 2021-02-14 14:34:24 -05:00
main.c NUC123 USB driver CI fixes: add .skip file to darwin client, and revert testhal/USB_HID to RT/6.1 2020-12-14 19:37:27 -05:00
readme.txt NUC123 USB Driver rewrite & testhal 2020-12-14 17:35:46 -05:00
usbcfg.c NUC123 change USBEndpointConfig 2020-12-15 15:15:39 +08:00
usbcfg.h NUC123 USB Driver rewrite & testhal 2020-12-14 17:35:46 -05:00

readme.txt

*****************************************************************************
** ChibiOS/HAL - USB driver demo for NUC123.                               **
*****************************************************************************

** TARGET **

The demo runs on a NUTINY-SDK-NUC123-V2.0 board with a NUC123SD4AN0 MCU.

** The Demo **

The application demonstrates the use of the NUC123 USB driver. A successful run of the test
should begin with the on-board LED blinking slowly, then faster when the USB driver initializes.
The host should recognize the board as a USB HID, and when run with the appropriate VID/PID, the
supplied client application should communicate with the board.

** Board Setup **

- None

** Build Procedure **

The demo has been tested using gcc version 9.3.1 (GNU Arm Embedded Toolchain 9-2020-q2-update).
Just modify the TRGT line in the makefile in order to use different GCC ports.

Two versions of the client code are provided. The Linux version uses the kernel's native hidraw API.
The Darwin version uses the hidapi from libusb (https://github.com/libusb/hidapi)

The Darwin client has only been tested using Apple clang version 12.0.0 (clang-1200.0.32.2), on
macOS Catalina 10.15.7. However, it should be easily portable to any platform supported by hidapi.

To build, adjust HIDAPI_HEADER_PATH in Client/darwin/Makefile to the appropriate location.

** Notes **

This test was adapted from Jonathan Struebel's USB_HID test for the KINETIS FRDM-KL25Z. All files 
are copyright their original authors, as indicated in the headers.