blob: 93f53bc1a9da5faab62f7dac865a451032d1b360 (
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
|
/*
* Copyright (c) 2006-2025, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2025-08-10 Siwei Xu Add i.MX91 SDK
* 2025-09-15 Siwei Xu Fix LPUART driver
*/
#ifndef __UART_H__
#define __UART_H__
#include "board.h"
#include <rtthread.h>
int rt_hw_uart_init(void);
#ifdef BSP_USING_EARLY_CONSOLE
void rt_hw_earlycon_ioremap(void);
void rt_hw_earlycon_putc(char c);
void rt_hw_earlycon_puts(const char *str);
void rt_hw_earlycon_print_hex(const char *str, rt_base_t hex);
#else
static inline void rt_hw_earlycon_ioremap(void) {}
static inline void rt_hw_earlycon_putc(char c) {}
static inline void rt_hw_earlycon_puts(const char *str) {}
static inline void rt_hw_earlycon_print_hex(const char *str, rt_base_t hex) {}
#endif
void rt_hw_console_putc(char c);
void rt_hw_console_output(const char *str);
#endif
|