From 5f077a6df0e4116859108436c0fce4e30a116b76 Mon Sep 17 00:00:00 2001 From: WaterFishJ <1309908437@qq.com> Date: Wed, 8 May 2024 15:18:27 +0800 Subject: [PATCH] =?UTF-8?q?[bsp][at32]=E4=BF=AE=E5=A4=8Dat32=5Ftransmit?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/at32/libraries/rt_drivers/drv_usart_v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/at32/libraries/rt_drivers/drv_usart_v2.c b/bsp/at32/libraries/rt_drivers/drv_usart_v2.c index abd02935d2..57ccb36e11 100644 --- a/bsp/at32/libraries/rt_drivers/drv_usart_v2.c +++ b/bsp/at32/libraries/rt_drivers/drv_usart_v2.c @@ -386,7 +386,7 @@ static void at32_dma_config(struct rt_serial_device *serial, rt_ubase_t flag) } #endif -static rt_size_t at32_transmit(struct rt_serial_device *serial, rt_uint8_t *buf, rt_size_t size, rt_uint32_t tx_flag) +static rt_ssize_t at32_transmit(struct rt_serial_device *serial, rt_uint8_t *buf, rt_size_t size, rt_uint32_t tx_flag) { struct at32_uart *instance;