Skip to content
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

gd32 usb #32

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

cameled
Copy link
Contributor

@cameled cameled commented Mar 1, 2023

Initial work to add gd32 usb.

Upgrade gd32f4xx firmware library to v3.0.3.

Signed-off-by: HaiLong Yang <[email protected]>
Patch gd32f4xx HAL according to the requirements listed in the
repository README.md file.

Signed-off-by: HaiLong Yang <[email protected]>
gd32 provide a usb implement in hal usb_library directory. Since zephyr
use it's own usb stack, this only import low level register wrapper.

This is not the final sulution, suggestion are welcomed.
Add usb headers support for gd32headers.

Still in develop, test will added if this solution be confirmed.
@cameled
Copy link
Contributor Author

cameled commented Aug 16, 2023

Grouped by usb_ch9_std.h (almost equal):

./GD32F10x_Firmware_Library_V2.2.4/Firmware/GD32F10x_usbfs_library/ustd/common/usb_ch9_std.h
./GD32F30x_Firmware_Library_V2.1.5/Firmware/GD32F30x_usbfs_library/ustd/common/usb_ch9_std.h
./GD32F4xx_Firmware_Library_V3.0.4/Firmware/GD32F4xx_usb_library/ustd/common/usb_ch9_std.h
./GD32E11x_Firmware_Library_V1.1.0/Firmware/GD32E11x_usbfs_library/ustd/common/usb_ch9_std.h
./GD32C10x_Firmware_Library_V1.2.0/Firmware/GD32C10x_usbfs_library/ustd/common/usb_ch9_std.h
./GD32F3x0_Firmware_Library_V2.2.1/Firmware/GD32F3x0_usbfs_library/ustd/common/usb_ch9_std.h
./GD32F403_Firmware_Library_V2.1.5/Firmware/GD32F403_usbfs_library/ustd/common/usb_ch9_std.h
./GD32W51x_Firmware_Library_V1.1.0/Firmware/GD32W51x_usbfs_library/ustd/common/usb_ch9_std.h
./GD32C11x_Firmware_Library_V1.1.0/Firmware/GD32C11x_usbfs_library/ustd/common/usb_ch9_std.h
./GD32F20x_Firmware_Library_V2.5.0/Firmware/GD32F20x_usbfs_library/ustd/common/usb_ch9_std.h
./GD32E10x_Firmware_Library_V1.4.0/Firmware/GD32E10x_usbfs_library/ustd/common/usb_ch9_std.h
./GD32VF103_Firmware_Library_V1.1.5/Firmware/GD32VF103_usbfs_library/ustd/common/usb_ch9_std.h

./GD32E50x_Firmware_Library_v1.3.0/Firmware/GD32E50x_usbhs_library/ustd/common/usb_ch9_std.h
./GD32H7xx_Firmware_Library_V1.1.0/Firmware/GD32H7xx_usbhs_library/ustd/common/usb_ch9_std.h

./GD32L23x_Firmware_Library_V1.1.0/Firmware/GD32L23x_usbd_library/device/Include/usb_ch9_std.h
./GD32F1x0_Firmware_Library_V3.4.0/Firmware/GD32F1x0_usbd_library/device/Include/usb_ch9_std.h

@cameled
Copy link
Contributor Author

cameled commented Aug 16, 2023

Grouped by drv_usb_core.h (same API):

./GD32F10x_Firmware_Library_V2.2.4/Firmware/GD32F10x_usbfs_library/driver/Include/drv_usb_core.h
./GD32F30x_Firmware_Library_V2.1.5/Firmware/GD32F30x_usbfs_library/driver/Include/drv_usb_core.h
./GD32F4xx_Firmware_Library_V3.0.4/Firmware/GD32F4xx_usb_library/driver/Include/drv_usb_core.h
./GD32E11x_Firmware_Library_V1.1.0/Firmware/GD32E11x_usbfs_library/driver/Include/drv_usb_core.h
./GD32C10x_Firmware_Library_V1.2.0/Firmware/GD32C10x_usbfs_library/driver/Include/drv_usb_core.h
./GD32F3x0_Firmware_Library_V2.2.1/Firmware/GD32F3x0_usbfs_library/driver/Include/drv_usb_core.h
./GD32F403_Firmware_Library_V2.1.5/Firmware/GD32F403_usbfs_library/driver/Include/drv_usb_core.h
./GD32C11x_Firmware_Library_V1.1.0/Firmware/GD32C11x_usbfs_library/driver/Include/drv_usb_core.h
./GD32F20x_Firmware_Library_V2.5.0/Firmware/GD32F20x_usbfs_library/driver/Include/drv_usb_core.h
./GD32E10x_Firmware_Library_V1.4.0/Firmware/GD32E10x_usbfs_library/driver/Include/drv_usb_core.h
./GD32VF103_Firmware_Library_V1.1.5/Firmware/GD32VF103_usbfs_library/driver/Include/drv_usb_core.h

./GD32E50x_Firmware_Library_v1.3.0/Firmware/GD32E50x_usbhs_library/driver/Include/drv_usb_core.h
./GD32W51x_Firmware_Library_V1.1.0/Firmware/GD32W51x_usbfs_library/driver/Include/drv_usb_core.h

./GD32H7xx_Firmware_Library_V1.1.0/Firmware/GD32H7xx_usbhs_library/driver/Include/drv_usb_core.h

@cameled
Copy link
Contributor Author

cameled commented Aug 16, 2023

Grouped by drv_usb_dev.h (same API):

./GD32F10x_Firmware_Library_V2.2.4/Firmware/GD32F10x_usbfs_library/driver/Include/drv_usb_dev.h
./GD32F30x_Firmware_Library_V2.1.5/Firmware/GD32F30x_usbfs_library/driver/Include/drv_usb_dev.h
./GD32F4xx_Firmware_Library_V3.0.4/Firmware/GD32F4xx_usb_library/driver/Include/drv_usb_dev.h
./GD32E11x_Firmware_Library_V1.1.0/Firmware/GD32E11x_usbfs_library/driver/Include/drv_usb_dev.h
./GD32C10x_Firmware_Library_V1.2.0/Firmware/GD32C10x_usbfs_library/driver/Include/drv_usb_dev.h
./GD32F3x0_Firmware_Library_V2.2.1/Firmware/GD32F3x0_usbfs_library/driver/Include/drv_usb_dev.h
./GD32F403_Firmware_Library_V2.1.5/Firmware/GD32F403_usbfs_library/driver/Include/drv_usb_dev.h
./GD32W51x_Firmware_Library_V1.1.0/Firmware/GD32W51x_usbfs_library/driver/Include/drv_usb_dev.h
./GD32C11x_Firmware_Library_V1.1.0/Firmware/GD32C11x_usbfs_library/driver/Include/drv_usb_dev.h
./GD32F20x_Firmware_Library_V2.5.0/Firmware/GD32F20x_usbfs_library/driver/Include/drv_usb_dev.h
./GD32E10x_Firmware_Library_V1.4.0/Firmware/GD32E10x_usbfs_library/driver/Include/drv_usb_dev.h
./GD32VF103_Firmware_Library_V1.1.5/Firmware/GD32VF103_usbfs_library/driver/Include/drv_usb_dev.h

-- extra usbd_bcd_detect()
./GD32E50x_Firmware_Library_v1.3.0/Firmware/GD32E50x_usbhs_library/driver/Include/drv_usb_dev.h
./GD32H7xx_Firmware_Library_V1.1.0/Firmware/GD32H7xx_usbhs_library/driver/Include/drv_usb_dev.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant