Files
Konstantin Sharlaimov c1a4ed1489 machine/stm32: add OTG FS USB driver for F4/F7
STM32F4 and F7 share the same OTG FS IP but have no USB driver in
TinyGo. This adds a full device-mode driver covering CDC, HID, and
MSC with working examples.

- OTG FS has 4 physical EPs (0–3); virtual indices 4–7 fold onto
  them via physEP() so the existing machine/usb API is unchanged
- F4 bypasses VBUS sensing via GCCFG.NOVBUSSENS; F7 uses the USB
  voltage regulator + GOTGCTL B-valid override instead
- STM32F7 PLL_Q changed 2→9 to produce the 48 MHz clock required
  by USB/RNG/SDMMC; CK48MSEL cleared to select main PLL as source
- HID and MSC descriptors remapped at init() to physical endpoint
  addresses (EP2/EP1 for HID, EP2/EP3 for MSC)
- usb-storage example replaced machine.Flash with a FAT12 RAM disk
  so the host mounts without reformatting
- MSC sendCSW sets queuedBytes before state transition to fix a
  missed byte-count on the status phase
2026-07-12 10:45:49 +02:00
..
2025-10-03 15:46:25 +02:00
2026-07-06 21:58:48 +02:00
2025-06-13 14:42:23 +02:00
2025-09-17 05:28:06 -04:00
2026-04-17 10:33:07 +02:00
2026-07-06 21:58:48 +02:00
2025-09-17 05:28:06 -04:00
2026-07-06 21:58:48 +02:00
2026-05-28 19:32:08 +02:00
2026-07-06 21:58:48 +02:00
2026-07-06 21:58:48 +02:00
2026-07-06 21:58:48 +02:00
2025-06-13 14:42:23 +02:00
2026-07-06 21:58:48 +02:00
2025-06-13 14:42:23 +02:00
2024-12-19 15:08:37 +01:00
2026-07-06 21:58:48 +02:00
2026-07-06 21:58:48 +02:00
2025-06-13 14:42:23 +02:00
2025-06-13 14:42:23 +02:00