Nuclei-Software / nuclei-sdk

Nuclei RISC-V Software Development Kit
https://doc.nucleisys.com/nuclei_sdk
Apache License 2.0
117 stars 50 forks source link

Added USB interface association descriptor for GD32VF103. #25

Closed michahoiting closed 3 years ago

michahoiting commented 3 years ago

I am working on a private project using the GD32VF103 and implementing an ACM-CDC USB device. This profile needs the USB interface association descriptor to work properly. In this pull request, I have added this descriptor for the GD32VF103 in the folder nuclei-sdk/SoC/gd32vf103/Common/Include/Usb/. See also my use case: https://github.com/michahoiting/rv-link.

Kind regards, Micha

fanghuaqi commented 3 years ago

Hi @michahoiting , did you tested your branch with the changes? Will it affect other target boards?

michahoiting commented 3 years ago

Hi @fanghuaqi, for my project using this branch, I successfully build my application for the GD32VFC-START and Sipeed Longan Nano boards, see also: https://travis-ci.com/github/michahoiting/rv-link. I only have Longan Nano boards, and on that board it runs OK. Also, this PR only brings one new a define and struct typdef, so this is very unlikely to break builds.

fanghuaqi commented 3 years ago

Ok, I will just squash it into 1 commit and merged it

michahoiting commented 3 years ago

I just did a build in the SDK according to the README.md.