summaryrefslogtreecommitdiff
path: root/bsp/renesas/libraries/HAL_Drivers/drivers/config/raw/ra6w1/uart_config.h
blob: d201a81e3c13b2905d0f8fc95a7ef1837d341552 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
 * Copyright (c) 2006-2026, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author            Notes
 * 2026-07-29     rcitach      first version
 */

#ifndef __RAW61_UART_CONFIG_H__
#define __RAW61_UART_CONFIG_H__

#include <rtthread.h>
#include "hal_data.h"

#ifdef __cplusplus
extern "C" {
#endif

#if defined(BSP_USING_UART0)
#ifndef UART0_CONFIG
#define UART0_CONFIG                 \
    {                                \
        .name = "uart0",             \
        .p_api_ctrl = &g_uart0_ctrl, \
        .p_cfg = &g_uart0_cfg,       \
    }
#endif /* UART0_CONFIG */
#endif /* BSP_USING_UART0 */

#if defined(BSP_USING_UART1)
#ifndef UART1_CONFIG
#define UART1_CONFIG                 \
    {                                \
        .name = "uart1",             \
        .p_api_ctrl = &g_uart1_ctrl, \
        .p_cfg = &g_uart1_cfg,       \
    }
#endif /* UART1_CONFIG */
#endif /* BSP_USING_UART1 */

#ifdef BSP_USING_UART2
#ifndef UART2_CONFIG
#define UART2_CONFIG                 \
    {                                \
        .name = "uart2",             \
        .p_api_ctrl = &g_uart2_ctrl, \
        .p_cfg = &g_uart2_cfg,       \
    }
#endif /* UART2_CONFIG */
#endif /* BSP_USING_UART2 */

#ifdef __cplusplus
}
#endif

#endif /* __RAW61_UART_CONFIG_H__ */