1 /*
2  * Copyright (c) 2006-2025, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2020-04-28     xckhmf       Modify for <nrfx>
9  * 2020-10-31     xckhmf       Support for UART1
10  *
11  */
12 #ifndef __DRV_UART_H__
13 #define __DRV_UART_H__
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 #define RT_DEVICE_CTRL_CUSTOM   0x20
20 #define RT_DEVICE_CTRL_PIN      0x21
21 #define RT_DEVICE_POWERSAVE     0x22
22 #define RT_DEVICE_WAKEUP        0x23
23 
24 #define UART_CONFIG_BAUD_RATE_9600      1
25 #define UART_CONFIG_BAUD_RATE_115200    2
26 
27 void rt_hw_uart_init(void);
28 
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 #endif /* __DRV_UART_H__ */
34 
35