drivers: uart: stm32: Enable wakeup source only if supported
LL_USART_EnableInStopMode may not be available on some series. Since PM is not enabled on those series and might never be, use a shortcut for this case. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
310283dad1
commit
6b14c4bdb0
1 changed files with 1 additions and 1 deletions
|
@ -1676,7 +1676,7 @@ static int uart_stm32_init(const struct device *dev)
|
|||
config->irq_config_func(dev);
|
||||
#endif /* CONFIG_PM || CONFIG_UART_INTERRUPT_DRIVEN || CONFIG_UART_ASYNC_API */
|
||||
|
||||
#if defined(CONFIG_PM)
|
||||
#if defined(CONFIG_PM) && defined(IS_UART_WAKEUP_FROMSTOP_INSTANCE)
|
||||
if (config->wakeup_source) {
|
||||
/* Enable ability to wakeup device in Stop mode
|
||||
* Effect depends on CONFIG_PM_DEVICE status:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue