CubeIDE 1.18.1 generates wrong code for TIM15
We're using STM32CubeIDE 1.18.1 under Windows. When generating LL_ code for a STM32C092, TIM15 init generates this code:
static void MX_TIM15_Init(void)
{
LL_TIM_InitTypeDef TIM_InitStruct = {0};
/* Peripheral clock enable */
LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_TIM15);
In stm32c0xx_ll_bus.h, the enable clock function redefines the call:
#define LL_APB2_GRP1_EnableClock LL_APB1_GRP2_EnableClock but
LL_APB2_GRP1_PERIPH_TIM15is undefined. It would seem the generated code should be LL_APB1_GRP2_PERIPH_TIM15
for RCC_APBENR2_TIM15EN.
Regards,
Mike
Edited to apply source code formatting - please see How to insert source code for future reference.
