STM32F4 disco HID demo

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: RoccoMarco, barthess

dflogeras
Posts: 212
Joined: Tue Sep 03, 2013 8:16 pm
Has thanked: 7 times
Been thanked: 19 times

STM32F4 disco HID demo

Postby dflogeras » Wed May 29, 2019 9:58 pm

Hi Giovanni,

Please have a look at this example I threw together. It simply enumerates as a HID gamepad, then cycles through pressing each button and joystick direction on a timer. See readme for how to view the gamepad on the host OS.

It is derived from the current 19.1.2 release. I fashioned it like other programs in testhal/STM32/STM32F4xx/. If acceptable to you, please feel free to include it with future releases to help others (and future me). I relinquish all ownership/copyright/claims whatever to ChibiOS (most of the code was just copy/pasted from other demos anyhow :)

You'll need adjust the CHIBIOS directive in the Makefile to wherever you place it in the tree. Also please double check that the CH_DBG_XYZ and compiler options fit in.

USB_HID.zip
USB HID example for F4 discovery
(16.49 KiB) Downloaded 227 times


Best,
Dave

Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 53 guests