Skip to content

HAL_UARTEx_(Enable|Disable)ClockStopMode not always defined #280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fpistm opened this issue Jul 24, 2018 · 0 comments
Closed

HAL_UARTEx_(Enable|Disable)ClockStopMode not always defined #280

fpistm opened this issue Jul 24, 2018 · 0 comments
Assignees
Labels
bug 🐛 Something isn't working
Milestone

Comments

@fpistm
Copy link
Member

fpistm commented Jul 24, 2018

Forum user report a warning about HAL_UARTEx_(Enable|Disable)ClockStopMode which are not defined for STM32L4R5ZI, see:
http://stm32duino.com/viewtopic.php?f=48&t=3875&p=47462#p47396

"C:\Users\leigh\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.3.0\cores\arduino\stm32\uart.c: In function 'uart_init':

C:\Users\leigh\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.3.0\cores\arduino\stm32\uart.c:317:7: warning: implicit declaration of function 'HAL_UARTEx_EnableClockStopMode' [-Wimplicit-function-declaration]

HAL_UARTEx_EnableClockStopMode(huart);

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\leigh\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.3.0\cores\arduino\stm32\uart.c:320:7: warning: implicit declaration of function 'HAL_UARTEx_DisableClockStopMode' [-Wimplicit-function-declaration]

HAL_UARTEx_DisableClockStopMode(huart);

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

Those functions are defined only when USART_CR3_UCESM is defined:
https://github.com/stm32duino/Arduino_Core_STM32/blob/master/system/Drivers/STM32L4xx_HAL_Driver/Inc/stm32l4xx_hal_uart_ex.h#L188

@fpistm fpistm added the bug 🐛 Something isn't working label Jul 24, 2018
@fpistm fpistm added this to the 1.3.1 milestone Jul 24, 2018
@fpistm fpistm self-assigned this Jul 24, 2018
@fpistm fpistm closed this as completed in 3c66de7 Jul 24, 2018
@fpistm fpistm mentioned this issue Jul 27, 2018
xC0000005 pushed a commit to xC0000005/Arduino_Core_STM32 that referenced this issue Nov 27, 2018
benwaffle pushed a commit to benwaffle/Arduino_Core_STM32 that referenced this issue Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant