BLE_DCF_TYQ_CH592F/BSP/inc/bsp_uart.h

36 lines
404 B
C
Raw Normal View History

2024-12-02 17:03:41 +08:00
#ifndef __BSP_UART_H__
#define __BSP_UART_H__
2024-12-12 15:49:10 +08:00
#include "CONFIG.h"
2024-12-02 17:03:41 +08:00
2024-12-12 15:49:10 +08:00
#define UART1_RX_BUFFER_LENGTH 64U
2024-12-12 19:38:57 +08:00
#define UART1_TX_BUFFER_LENGTH 1024U
2024-12-02 17:03:41 +08:00
2024-12-12 15:49:10 +08:00
void BSP_UART1_Init(uint32_t baudrate);
2024-12-02 17:03:41 +08:00
2024-12-12 15:49:10 +08:00
void BSP_UART1_TxLoop(void);
2024-12-02 17:03:41 +08:00
unsigned int BSP_Uart1_Receive_Data(void *buf, unsigned int len);
unsigned int BSP_Uart1_Send_Data(const void *buf, unsigned int len);
2024-12-12 15:49:10 +08:00
// void BSP_Shell_Loop(void);
2024-12-02 17:03:41 +08:00
#endif