Sample projects with ChibiOS, mainly for STM32F0xx boards
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
flabbergast 90273f994f Add f072-rawhid example. 7 years ago
..
Makefile Add f072-rawhid example. 7 years ago
README.md Add f072-rawhid example. 7 years ago
chconf.h Add f072-rawhid example. 7 years ago
client.py Add f072-rawhid example. 7 years ago
halconf.h Add f072-rawhid example. 7 years ago
main.c Add f072-rawhid example. 7 years ago
mcuconf.h Add f072-rawhid example. 7 years ago
usb_hid.c Add f072-rawhid example. 7 years ago
usb_hid.h Add f072-rawhid example. 7 years ago

README.md

ChibiOS/rawHID USB example

Originally from: https://github.com/guiduc/usb-hid-chibios-example

Runs on STM32F072B-DISCOVERY board.

Enumerates as a raw HID USB device.

Blue LED blinks once after reset, then should start blinking regularly. Slow blinking (500ms between changes) means USB is not active, fast blinking (250ms between changes) means USB is active, and should be already enumerated by the computer.

Two endpoints, one in, one out, both interrupt. Report size 2 bytes both ways. PC-to-board is (counter, red-led-state), board-to-PC is (counter, button-state).

Example host-side python script included, uses the hidapi module.