PER Firmware
Loading...
Searching...
No Matches
usb_test.c File Reference

Minimal vendor bulk-echo device using the STM32G4 USB HAL. More...

#include "g4_testing.h"
Include dependency graph for usb_test.c:

Detailed Description

Minimal vendor bulk-echo device using the STM32G4 USB HAL.

The HAL owns clocks, pins, packet memory, endpoint configuration, and USB interrupts. The application supplies descriptors and handles the standard control requests needed for enumeration in PHAL_USB_callback(). Once the host selects the configuration, endpoint one echoes one bulk packet at a time.