#include <byteorder.h>
#include <endian.h>
#include <io.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <types.h>
#include <rtc.h>
#include <xformat.h>
◆ dlh
◆ dll
◆ iir
◆ SUNXI_UART0_BASE
| #define SUNXI_UART0_BASE 0x05000000 |
◆ thr
◆ uart_serial_t
◆ printf()
| void printf |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Print message via UART.
This function is used to print formatted message to the terminal via UART serial port.
- Parameters
-
| fmt | Format string describing the format of the message to print. |
| ... | Variable argument list used to fill placeholders in the format string. |
- Note
- This function is typically used in embedded systems for debugging and outputting system status information.
◆ set_timer_count()
Set timer count.
This function is used to set the count value of the timer.
- Note
- Before calling this function, timer-related hardware configuration should be initialized.
Set timer count.
This function calls the frequency detection routine and initializes the timestamp based on the current time in microseconds.
◆ sunxi_serial_init()
| void sunxi_serial_init |
( |
| ) |
|
◆ sunxi_uart_putc()
| void sunxi_uart_putc |
( |
char |
c | ) |
|
◆ uart_log_putchar()
| void uart_log_putchar |
( |
void * |
arg, |
|
|
char |
c |
|
) |
| |
Writes a single character 'c' to the log output.
- Parameters
-
| arg | A pointer to optional arguments. |
| c | The character to be written. |
◆ uart_printf()
| void uart_printf |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Print message via UART.
This function is used to print formatted message to the terminal via UART serial port.
- Parameters
-
| fmt | Format string describing the format of the message to print. |
| ... | Variable argument list used to fill placeholders in the format string. |
- Note
- This function is typically used in embedded systems for debugging and outputting system status information.
◆ init_timestamp
◆ uart_dbg