CubeMx Code generation of Timer Config -- Prescaler Bug with LL
Hello everyone,
When configuring the timers via the MxGenerator, I noticed the following strange behavior.
If you use the LL, the code for the prescaler is generated strangely.
When setting Prescaler = 2-1, the correct code is generated when using the HAL. When using the LL, however, a substration is performed between two enums, which makes no sense.
This behavior is shown in the following screenshot.

However, if you set the prescaler to 1 directly in CubeMx and not to 2-1, the code is generated correctly.
I suspect a bug in the code generation.
The following versions are used.
STM32CubeIDE Version: 1.13.1
MCU Reference: STM32H563ZITx
Firmware Package: STM32Cube FW_H5 V1.1.1
I hope for a confirmation of the bug and an adjustment in a next release.
Many thanks in advance!
