глянь тут https://github.com/suapapa/stm32_lib...t_Examples/HID