Dear support,
We need to disable the UART20 runtime. Currently it is configured as follows:
Dear support,
We need to disable the UART20 runtime. Currently it is configured as follows:
Hello,
Conceptually (not tested) it should be done like below:
Zephyr provides a power management API to suspend and resume devices, including UART.
Suspend UART
#include <zephyr/pm/device.h>
const struct device *uart_dev = DEVICE_DT_GET(DT_NODELABEL(uart0)); // or uart1, etc.
if (device_is_ready(uart_dev)) {
pm_device_action_run(uart_dev, PM_DEVICE_ACTION_SUSPEND);
}
Resume UART
if (device_is_ready(uart_dev)) {
pm_device_action_run(uart_dev, PM_DEVICE_ACTION_RESUME);
}
In your prj.conf:
CONFIG_PM=y
CONFIG_PM_DEVICE=y
Hope that helps,
Kenneth
Hello,
Conceptually (not tested) it should be done like below:
Zephyr provides a power management API to suspend and resume devices, including UART.
Suspend UART
#include <zephyr/pm/device.h>
const struct device *uart_dev = DEVICE_DT_GET(DT_NODELABEL(uart0)); // or uart1, etc.
if (device_is_ready(uart_dev)) {
pm_device_action_run(uart_dev, PM_DEVICE_ACTION_SUSPEND);
}
Resume UART
if (device_is_ready(uart_dev)) {
pm_device_action_run(uart_dev, PM_DEVICE_ACTION_RESUME);
}
In your prj.conf:
CONFIG_PM=y
CONFIG_PM_DEVICE=y
Hope that helps,
Kenneth