WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
serial.c 文件参考
#include <stdbool.h>
#include <string.h>
#include "boot_def.h"
#include "boot_delay.h"
#include "boot_serial.h"
serial.c 的引用(Include)关系图:

宏定义

#define UART_GETC_DELAY_TIME   2
 
#define UART_GETS_DELAY_TIME   2000
 
#define UART_DELAY_TIME   (8 * 1000000)
 
#define HIBURN_UART_RX_BUFFER_SIZE   1
 

函数

void serial_set_mute (void)
 
void serial_cancel_mute (void)
 
void serial_putc (const char c)
 
void serial_puts (const char *s)
 
void serial_put_buf (const char *buffer, int32_t length)
 
uint8_t serial_getc (void)
 
void serial_puthex (uint32_t h, bool print_all)
 
uint32_t serial_getc_timeout (uint32_t timeout_us, uint8_t *ch)
 
void boot_put_errno (uint32_t print_errno)
 
void boot_puthex (uint32_t h, bool print0)
 
void boot_msg0 (const char *s)
 
void boot_msg1 (const char *s, uint32_t h)
 
void boot_msg2 (const char *s, uint32_t h1, uint32_t h2)
 
void boot_msg4 (const char *s, uint32_t h1, uint32_t h2, uint32_t h3, uint32_t h4)
 
void hiburn_uart_init (uart_param_stru uart_param, uart_bus_t uart_bus)
 
void hiburn_uart_deinit (void)
 

变量

uart_bus_t g_hiburn_uart = UART_BUS_NONE
 
bool g_uart_mute = false
 
bool g_hiburn_uart_enabled = false
 

宏定义说明

◆ HIBURN_UART_RX_BUFFER_SIZE

#define HIBURN_UART_RX_BUFFER_SIZE   1

◆ UART_DELAY_TIME

#define UART_DELAY_TIME   (8 * 1000000)

◆ UART_GETC_DELAY_TIME

#define UART_GETC_DELAY_TIME   2

◆ UART_GETS_DELAY_TIME

#define UART_GETS_DELAY_TIME   2000

函数说明

◆ boot_msg0()

void boot_msg0 ( const char *  s)

◆ boot_msg1()

void boot_msg1 ( const char *  s,
uint32_t  h 
)

◆ boot_msg2()

void boot_msg2 ( const char *  s,
uint32_t  h1,
uint32_t  h2 
)

◆ boot_msg4()

void boot_msg4 ( const char *  s,
uint32_t  h1,
uint32_t  h2,
uint32_t  h3,
uint32_t  h4 
)

◆ boot_put_errno()

void boot_put_errno ( uint32_t  print_errno)

◆ boot_puthex()

void boot_puthex ( uint32_t  h,
bool  print0 
)

◆ hiburn_uart_deinit()

void hiburn_uart_deinit ( void  )

◆ hiburn_uart_init()

void hiburn_uart_init ( uart_param_stru  uart_param,
uart_bus_t  uart_bus 
)

◆ serial_cancel_mute()

void serial_cancel_mute ( void  )

◆ serial_getc()

uint8_t serial_getc ( void  )

◆ serial_getc_timeout()

uint32_t serial_getc_timeout ( uint32_t  timeout_us,
uint8_t *  ch 
)

◆ serial_put_buf()

void serial_put_buf ( const char *  buffer,
int32_t  length 
)

◆ serial_putc()

void serial_putc ( const char  c)

◆ serial_puthex()

void serial_puthex ( uint32_t  h,
bool  print_all 
)

◆ serial_puts()

void serial_puts ( const char *  s)

◆ serial_set_mute()

void serial_set_mute ( void  )

变量说明

◆ g_hiburn_uart

uart_bus_t g_hiburn_uart = UART_BUS_NONE

◆ g_hiburn_uart_enabled

bool g_hiburn_uart_enabled = false

◆ g_uart_mute

bool g_uart_mute = false