jefftenney / LPTIM-Tick-U5

FreeRTOS Tick/Tickless via LPTIM for STM32U
3 stars 3 forks source link

'RCC_CSR_LSIRDY' undeclared (first use in this function) #7

Closed RotemShechterN closed 2 months ago

RotemShechterN commented 2 months ago

When trying to compile with LSI clock on STM32U585 the following error occurs: 'RCC_CSR_LSIRDY' undeclared (first use in this function)

129#ifdef configTICK_USES_LSI
130  #define LPTIMSEL_Val 1 // LSI
131   #define IS_REF_CLOCK_READY() (RCC->CSR & RCC_CSR_LSIRDY)

looking up for STM32U5 reference design seems like there is no such a bit.

jefftenney commented 2 months ago

Good catch thank you. I will push a fix in a few minutes. It is supposed to look at RCC->BDCR for RCC_BDCR_LSIRDY.

jefftenney commented 2 months ago

Fixed in 5222d64. Thanks @RotemShechterN!