summaryrefslogtreecommitdiff
path: root/bsp/nrf5x/libraries/drivers/drv_uarte.h
blob: f08c975b1f4d74995f60f36851ffce56eb1c3b2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Copyright (c) 2006-2025, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2020-04-28     xckhmf       Modify for <nrfx>
 * 2020-10-31     xckhmf       Support for UART1
 *
 */
#ifndef __DRV_UART_H__
#define __DRV_UART_H__

#ifdef __cplusplus
extern "C" {
#endif

#define RT_DEVICE_CTRL_CUSTOM   0x20
#define RT_DEVICE_CTRL_PIN      0x21
#define RT_DEVICE_POWERSAVE     0x22
#define RT_DEVICE_WAKEUP        0x23

#define UART_CONFIG_BAUD_RATE_9600      1
#define UART_CONFIG_BAUD_RATE_115200    2

void rt_hw_uart_init(void);

#ifdef __cplusplus
}
#endif

#endif /* __DRV_UART_H__ */