This website requires JavaScript.
Explore
Help
Register
Sign In
yemai
/
CherryUSB
Watch
1
Star
0
Fork
0
You've already forked CherryUSB
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
0dd1c3b3fb19b2cddb66d3c3d2f5e461afcf9102
CherryUSB
/
port
/
stm32
History
sakumisu
a8d919fe4d
complete fsdev and synopsys usb otg ip dcd portinng
2021-12-12 15:21:39 +08:00
..
README.md
complete fsdev and synopsys usb otg ip dcd portinng
2021-12-12 15:21:39 +08:00
usb_dc_hal.c
complete fsdev and synopsys usb otg ip dcd portinng
2021-12-12 15:21:39 +08:00
usb_dc_nohal.c
add usb config for stm32
2021-12-04 14:40:32 +08:00
usbd_config.h
add usb config for stm32
2021-12-04 14:40:32 +08:00
README.md
Unescape
Escape
基本工程生成
首先使用 stm32cubemx 使能系统时钟、USB时钟、USB引脚
,
勾选 USB外设、使能 USB 中断,然后产生基本工程。
如果使用的是 usb_dc_nohal.c
,
需要注释掉 MX_USB_PCD_Init 函数
,
USB 中断中调用 USBD_IRQHandler 替代 HAL_PCD_IRQHandler 函数
,
HAL_PCD_MspInit 函数保留
如果使用的是 usb_dc_hal.c 则上条不需要
推荐使用 nohal 版本,极简代码
该目录下porting可以不再使用
,
选择 fsdev 或者 synopsys下的porting接口
Reference in New Issue
View Git Blame
Copy Permalink