mttbx
mttbx
I found in "cortex debug", they do these things automatically: exec-interrupt break-insert exec-continue
I really need a elegent antlr visitor for go. Is anybody fix it? Can you send a PR?
It looks like f105 usbfs, but I can't get it worked.
Here's the error when I try f105 driver: ``` [ 464.507201] usb 1-4: new full-speed USB device number 30 using xhci_hcd [ 469.546739] xhci_hcd 0000:00:14.0: Timeout while waiting for setup...
I can read message from the host. But I can't send message to the host. I stuck at get_descriptor response. The Urb in the host shows protocol error. Any suggestion...
@dmitrystu Yes, gd32f103 works fine. I use gd32e103. It supports otg.
datasheet: https://www.gigadevice.com/zh-hans/datasheet/gd32e103xxxx-datasheet/ manual: https://www.gigadevice.com/zh-hans/manual/gd32e103xxxx-user-manual/
This is important for porting, please merge. @rgwan
我完全不赞同hal的添加,hal是个非常垃圾的库,极大的占用了flash空间,对于一些商业应用而言,说他是垃圾是不过分的。使用LL库或者是寄存器的方法明显要更为优秀,考虑到usb的LL库支持的不充分,因此就应该直接采用寄存器版本。至于移植性个人提出以下建议: 1. 对主流支持usb的stm32芯片在teenyusb内部进行移植,这样外界调用而言已经移植好了。 2. 提供移植接口,就像许多usb栈,他们提供一个结构体,把结构体中的函数指针正确实现,就移植好了。 这样主流芯片予以支持,其他芯片提供接口。就算要新移植一个芯片也很容易,有参考。 我用过opencm3和libusb_stm32的库,他们的实现都是这样的,对我们开发者而言就非常的爽。但是他们对于usb的全面性不够,所以我找到了teenyusb。 不要让自己的缺点掩盖了自己的优点。
@xtoolbox