feat: H7 support (#5738)

Co-authored-by: Richard Li <richard.li@ces.hk>
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
This commit is contained in:
Malte Langermann
2025-01-18 10:08:13 +01:00
committed by GitHub
co-authored by Richard Li philmoz raphaelcoeffic
parent 5a15ffb017
commit 3d25c2a0f8
458 changed files with 441554 additions and 2410 deletions
+8 -3
View File
@@ -33,10 +33,11 @@ enum usbMode {
USB_JOYSTICK_MODE,
USB_MASS_STORAGE_MODE,
USB_SERIAL_MODE,
USB_DFU_MODE,
#if defined(USB_SERIAL)
USB_MAX_MODE=USB_SERIAL_MODE
USB_MAX_MODE=USB_SERIAL_MODE,
#else
USB_MAX_MODE=USB_MASS_STORAGE_MODE
USB_MAX_MODE=USB_MASS_STORAGE_MODE,
#endif
};
@@ -53,11 +54,15 @@ bool usbStarted();
EXTERN_C(int getSelectedUsbMode());
void setSelectedUsbMode(int mode);
// USB CDC
uint32_t usbSerialFreeSpace();
extern const etx_serial_port_t UsbSerialPort;
// USB HID
#if defined(USBJ_EX)
void usbJoystickRestart();
#endif
void usbJoystickUpdate();
extern const etx_serial_port_t UsbSerialPort;
// USB DFU
int usbRegisterDFUMedia(const void* dfu_media);