-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bsp/stm32f407-rt-spark/stm32l496zg-st-nucleo] add cherryusb support #9929
Conversation
519f94c
to
a6d907c
Compare
@sakumisu 能麻烦review下吗,谢谢 |
a8db483
to
eb346c3
Compare
初始化那边我是想用 HAL_PCD_MspInit,不知道大佬啥想法? |
好想法要不stm32加个公用的driver 放hal_driver? |
做不了,第一个,因为中断主从共用,不是那种注册的形式,不确定用户是用主还是从,所以没法直接调用 handle。HAL_PCD_MspInit 的话,由于不同的 stm32系列他的regbase可能不一样,所以还是只能按照board来。不然的话我早就加到 glue里面了。 |
看了一下代码,这边cherryUSB没有依赖HAL库,如果要加HAL_PCD_MspInit,需要加 |
这个倒是不需要,定义一个局部变量,我们主要是使用 instance |
finish |
能否支持一下 Host 模式 🤝 |
先合并这个吧,后面有感兴趣的可以PR一下。目前host我用的还不是很多 |
@Rbb666 其他代码先看下吧。 |
+1 |
这里有stm32f407的,也有stm32l496的,这部分在标题,message上是否也多体现出来些? 另外,两边的目录结构也不相同,统一下更好:
|
统一改成 board/cherryusb_port.c 把,与其他的保持一致。 |
3463e53
to
9803f04
Compare
已经统一到stm32f407-rt-spark/board/ports/cherryusb。 |
bsp/stm32/stm32l496-st-nucleo/board/port/cherryusb/cherryusb.c.orig 不需要 |
感谢提醒 |
9803f04
to
0cab7d9
Compare
+1 |
…T-Thread#9929) [bsp/stm32f407-rt-spark/l496zg] add cherryusb support
…T-Thread#9929) [bsp/stm32f407-rt-spark/l496zg] add cherryusb support
拉取/合并请求描述:(PR description)
[
为什么提交这份PR (why to submit this PR)
添加cherryusb相关的文件,方便后面人参考使用,
你的解决方案是什么 (what is your solution)
请提供验证的bsp和config (provide the config and bsp)
]
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0
代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up