I am using STM32CubeMX 4.21.0 with the STM32L4 HAL library version 1.8.1.
It seems that the Src/usb_device.c includes code with customization points (e.g. HAL_PCDEx_BCD_Callback() has a user code comment block) but there are no customization points within the file at global scope for adding things like headers, variables, function declarations or definitions. Is this an oversight?
Please add customization points at global scope in this file.