STMicroelectronics / STM32CubeG0

STM32Cube MCU Full Package for the STM32G0 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
Other
165 stars 75 forks source link

Strange casts in stm32g0xx_ll_usart.h #21

Closed SHWarema closed 2 years ago

SHWarema commented 3 years ago

In stm32g0xx_ll_usart.h there are three inline functions using the MODIFY_REG() macro that are generating the following warnings when compiled with ARM Compiler 6 (Clang/LLVM): image

I think all of the casts to uint16_t in the following functions should be removed:

ASELSTM commented 3 years ago

ST Internal Reference: 116539

ASELSTM commented 2 years ago

Hi @SHWarema,

Thank you for your contribution. This issue has been fixed in the frame of version v1.5.1 of the STM32CubeWB. Please allow me then to close this thread.

Thank you again for your contribution.

With regards,