1
2
7
8
9
10
11
12
13
14
15
16
17
22
23
24
25
30
31
32
35
36
37
38
39
40
41
/* ... */
#ifndef _UART_SELECT_H_
#define _UART_SELECT_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "driver/uart.h"
typedef enum {
UART_SELECT_READ_NOTIF,
UART_SELECT_WRITE_NOTIF,
UART_SELECT_ERROR_NOTIF,
}{ ... } uart_select_notif_t;
typedef void (*uart_select_notif_callback_t)(uart_port_t uart_num, uart_select_notif_t uart_select_notif, BaseType_t *task_woken);
/* ... */
void uart_set_select_notif_callback(uart_port_t uart_num, uart_select_notif_callback_t uart_select_notif_callback);
/* ... */
portMUX_TYPE *uart_get_selectlock(void);
#ifdef __cplusplus
}{...}
#endif
/* ... */
#endif