Files
99_7018_lmx/apps/common/audio/uartPcmSender.h
2025-10-29 13:10:02 +08:00

22 lines
776 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef _UARTPCMSENDER_H_
#define _UARTPCMSENDER_H_
#include "system/includes.h"
#include "app_config.h"
/*
*串口导出数据配置
*注意IO口设置不要和普通log输出uart冲突
*/
#define PCM_UART1_TX_PORT IO_PORT_DM /*数据导出发送IO*/
#define PCM_UART1_RX_PORT -1
#define PCM_UART1_BAUDRATE 2000000 /*数据导出波特率,不用修改,和接收端设置一直*/
#if ((TCFG_UART0_ENABLE == ENABLE_THIS_MOUDLE) && (PCM_UART1_TX_PORT == TCFG_UART0_TX_PORT))
//IO口配置冲突请检查修改
#error "PCM_UART1_TX_PORT conflict with TCFG_UART0_TX_PORT"
#endif/*PCM_UART1_TX_PORT*/
void uartSendInit(); //串口发数初始化
void uartSendData(void *buf, u16 len); //发送数据的接口
#endif /*_UARTPCMSENDER_H_*/