|
|
8 年 前 | |
|---|---|---|
| demo | 9 年 前 | |
| inc | 8 年 前 | |
| src | 8 年 前 | |
| .gitattributes | 9 年 前 | |
| .gitignore | 8 年 前 | |
| Doxyfile | 9 年 前 | |
| LICENSE | 9 年 前 | |
| Makefile | 8 年 前 | |
| readme.md | 8 年 前 | |
| usb.h | 8 年 前 |
| HW driver | Written on | Endpoints | Features | MCU series |
|---|---|---|---|---|
| usb_stmv0 | GCC C | 8 | Internal S/N, Doublebuffered, BC1.2 | STM32L0x2 STM32L0x3 STM32L4x2 STM32L4x3 STM32F0x2 STM32F0x8 |
| usb_stmv0a | GCC ASM | 8 | Internal S/N, Doublebuffered, BC1.2 | STM32L0x2 STM32L0x3 STM32L4x2 STM32L4x3 STM32F0x2 STM32F0x8 |
| usb_stmv1 | GCC C | 8 | Internal S/N, Doublebuffered | STM32L1xx |
| usb_stmv1a | GCC ASM | 8 | Internal S/N, Doublebuffered | STM32L1xx |
| usb_stmv2 | GCC C | 6 | Internal S/N, Doublebuffered, BC1.2 | STM32L4x5 STM32L4x6 (OTG FS (Device mode)) |
| usb_stmv3 | GCC C | 8 | Internal S/N, Doublebuffered | STM32F303 |
Single physical endpoint can be used to implement
At this moment BULK IN endpoint can use both buffers, but it is not real doublebuffered.
Tested with STM32L052, STM31L100, STM32L476RG, STM32F303CC
to build library module
make module MODULE=path/module.a DEFINES="mcu spcified defines" CFLAGS="cpu cpecified compiler flags"
to build demo
make demo MCU=stm32l100xc
make demo MCU=stm32l052x8
make demo MCU=stm32l476rg
to flash demo using st-flash
make program
| Variable | Default Value | Means |
|---|---|---|
| CMSIS | ../../CMSIS | path to CMSIS root folder |
| MCU | stm32l100xc | MCU selection for demo project |
| CFLAGS | -mcpu=cortex-m3 -mfloat-abi=soft | MCU specified compiler flags |
| DEFINES | STM32L1 STM32L100xC | MCU specified defines |
| INCLUDES | $(CMSIS)/Device/ST $(CMSIS)/Include | path to ST CMSIS includes |