feat(v12): support for HelloRadioSky V12 (#7114)

Co-authored-by: Peter Feerick <5500713+pfeerick@users.noreply.github.com>
Co-authored-by: radiosky <839034809@qq.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
richardclli
2026-08-05 14:57:46 +10:00
committed by GitHub
co-authored by Peter Feerick radiosky Claude Sonnet 5
parent 256dc98917
commit 866ee0a92e
93 changed files with 4582 additions and 406 deletions
@@ -128,13 +128,18 @@ void usbInit()
#endif
gpio_init_af(USB_GPIO_DM, USB_GPIO_AF, GPIO_PIN_SPEED_VERY_HIGH);
gpio_init_af(USB_GPIO_DP, USB_GPIO_AF, GPIO_PIN_SPEED_VERY_HIGH);
#if defined(USB_GPIO_VBUS)
#if defined(USB_GPIO_VBUS_OPEN_DRAIN)
gpio_init(USB_GPIO_VBUS, GPIO_IN_PU, GPIO_PIN_SPEED_LOW);
#else
gpio_init(USB_GPIO_VBUS, GPIO_IN, GPIO_PIN_SPEED_LOW);
#endif
#if defined(USB_GPIO_SEL)
gpio_init(USB_GPIO_SEL, GPIO_OUT, GPIO_PIN_SPEED_LOW);
gpio_set(USB_GPIO_SEL);
#endif
// prime debounce state...
usbPlugged();
#endif