Files
AC7911BB_JL-AIBT-SoundBox/radar/radar_uart.h
T

18 lines
475 B
C

#ifndef RADAR_UART_H
#define RADAR_UART_H
#include "device/uart.h" //串口驱动头文件
#include "asm/includes.h" //芯片引脚定义
#include "typedef.h"
#define RADAR_UART_NAME "uart1"
#define RADAR_UART_BAUDRATE 115200
#define RADAR_UART_RX_BUF_SIZE 1024
#define RADAR_UART_RX_TIMEOUT_MS 500
int radar_uart_init(void);
int radar_uart_read(u8 *buf, u32 len);
int radar_uart_write(const u8 *data, u32 len);
int radar_uart_flush(void);
#endif