Loading...
Searching...
No Matches
uart_arch.h File Reference

Architecture specific UART functions for ESP32. More...

Detailed Description

Architecture specific UART functions for ESP32.

Author
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

Definition in file uart_arch.h.

#include <stdint.h>
#include "periph/uart.h"
+ Include dependency graph for uart_arch.h:

Go to the source code of this file.

void esp_uart_set_wakeup_threshold (uart_t uart, uint32_t threshold)
 Set the wake-up threshold of a UART for light sleep.
 

Function Documentation

◆ esp_uart_set_wakeup_threshold()

void esp_uart_set_wakeup_threshold ( uart_t uart,
uint32_t threshold )

Set the wake-up threshold of a UART for light sleep.

The UART wakes up the system from light sleep if the number of positive edges on its RxD signal is equal to or greater than the given threshold. This function replaces the ESP-IDF function uart_set_wakeup_threshold.

Parameters
[in]uartUART device
[in]thresholdnumber of positive edges on the RxD signal required for wake-up