Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
Install host dependencies.
Import toolchain and SDK.
Create, configure, build and manage apps.
Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench
I started to reply but must not have hit ‘post.’ The confusing code is in the board support package (BSP) for the discovery board and so is the responsibility of ST. I’m away from the computer at the moment so I cannot provide the file name otherwise I could be of more help. The file name is something like stm32f429i_discovery_ts.c IIRC.