Problems with LL_USART_Setbaudrate and ATOMIC access
I'm porting some code over from an STM32F407 processor to an STM32F072 processor. The code uses the low-level driver to change the baudrate. It all works on the 407 but with the 072 I get the following error:
In file included from ../Core/Src/main.c:24:
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_usart.h: In function 'LL_USART_EnableInStopMode':
../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_usart.h:619:3: warning: implicit declaration of function 'ATOMIC_SET_BIT' [-Wimplicit-function-declaration]
619 | ATOMIC_SET_BIT(USARTx->CR1, USART_CR1_UESM);
There are several similar errors, the compiler does not seem to be able find the header for the ATOMIC macros. How do I include those without changing any of the files in the HAL? The HAL version that I have is STM32Cube_FW_F0_V1.11.5.
