dmitrystu / libusb_stm32

Lightweight USB device Stack for STM32 microcontrollers
Apache License 2.0
721 stars 165 forks source link

Add STM32F042F6 #86

Closed JiriBilek closed 3 years ago

JiriBilek commented 3 years ago

First, thanks for this awesome library. I was looking for something like this library because using HAL USB Library on a MCU with 32K flash is really painful.

The library is said to work for STM32F042F6 but there were a couple of lines of code missing, namely clock configuration, linker script and makefile target. The PR addresses this.

I tested the library (demo application) on STM32F042F6 and the code takes less than 4 KB. Brilliant!