Commit Graph

64 Commits

Author SHA1 Message Date
ItsGettingWorse 9c6d8d96ce Update drv_usart.c
修复RX DMA 第一包收不到的bug
2022-10-22 15:11:46 -04:00
Meco Man 97c483fe35 [rtduino][readme] change title 2022-09-28 02:11:35 -04:00
BreederBai 61e1e31ca9
[bsp/stm32] 简化drv_usart中的DMA接收逻辑 (#6357) 2022-09-22 14:13:57 +08:00
winfenggao ae66e67dee bug:
UART_FLAG_TC 不能在中断里CLEAR;
因为函数 static int stm32_putc(struct rt_serial_device *serial, char c)里发送完成后
while 循环等这个标志退出,中断服务函数CLEAR后,此处进入死循环
2022-08-25 10:25:34 -04:00
Meco Man 76885ca908 [stm32][drv_serial] 修复recv_len意外为负(即很大正数)的问题
https://github.com/RT-Thread/rt-thread/issues/6106
https://github.com/RT-Thread/rt-thread/issues/4467#issuecomment-850814143
2022-08-04 22:51:34 -04:00
dongly 3363586cbb
Fix some compilation warning (#5744)
* Fix some compilation warning

* 补充修正一些数据类型的使用错误

Co-authored-by: Meco Man <920369182@qq.com>
2022-08-02 12:09:49 -04:00
breederbai 21003c74ea [bsp][stm32] 增加uart7和uart8的DMA配置 2022-06-08 11:57:23 +08:00
breederbai 429e1cafe6 修复BUG:串口启用DMA接收后,动态修改串口波特率扰乱接收检索
在串口不关闭的情况下,更改波特率后,清空上次数据检索,导致更新写入检索错误,
串口无法读出正确的数据。真实数据的位置和检索值之间总有一定的距离,导致读取
数据的时候会有一定的延时。缓冲区大,延时越长
2022-04-27 21:59:06 +08:00
diskwu 03f46c6694
避免警告,变量可能未初始化就使用 (#5544)
* 避免警告,变量可能未初始化就使用

* 避免警告,变量可能未初始化就使用

* 避免警告,变化可能未初始化就使用。

* Update bsp/stm32/libraries/HAL_Drivers/drv_usart.c

Co-authored-by: guo <guozhanxin@rt-thread.com>

* Update bsp/stm32/libraries/HAL_Drivers/drv_usart_v2.c

Co-authored-by: guo <guozhanxin@rt-thread.com>

Co-authored-by: guo <guozhanxin@rt-thread.com>
2022-01-21 11:06:37 +08:00
liukangcc 5be4d1cc8d [update] ignore_format.yml 2021-11-15 15:31:51 +08:00
liukangcc 1f9eb78d0e [update] add stm32u575-st-nucleo bsp. 2021-11-15 11:23:12 +08:00
LiuKang 84ca6d31ce
Update drv_usart.c 2021-11-01 20:05:59 +08:00
liukangcc bae07bdab1 [add] bsp stm32l552ze-nucleo 2021-11-01 15:05:02 +08:00
guo 20e39f0bf7
Merge pull request #5153 from cndabai/stm32_getchar
修复STM32串口mask问题
2021-10-14 13:40:35 +08:00
mazhiyuan 12b1e74f1c 修复STM32串口mask问题 2021-10-14 10:15:55 +08:00
liukangcc 89446f25c7 [drivers] add uart dma support for stm32l151 2021-10-11 17:03:59 +08:00
Jackistang fca9207517 serial: add CTS/RTS flowcontrol. 2021-09-06 13:27:40 +08:00
YJIE_1998 53a4074f0b i# This is a combination of 3 commits.
【修改】format
2021-08-10 13:06:10 +08:00
YJIE_1998 b5fbaa20b9 【修改】之前因为修改造成的不兼容问题并添加 DMA 支持 2021-08-05 16:00:35 +08:00
YJIE_1998 b98f631580 【添加】stm32f3xx 库文件 2021-07-30 11:38:25 +08:00
Meco Man fc04d828ee [stm32][driver] auto formatted 2021-03-08 22:40:39 +08:00
Bernard Xiong 8afee3092a
Merge pull request #4382 from Sunwancn/stm32-usart-8bits-parity
[drv_usart.c]修复stm32串口开启奇偶校验时字长设置错误
2021-02-26 00:10:14 +08:00
Sunwancn e22f72293e [drv_usart.c]修复stm32串口开启奇偶校验时字长设置错误 2021-02-24 21:11:27 +08:00
forest-rain aa285845f2 add support stm32wl and bsp/stm32wl55jc-st-nucleo(recommit)
update STM32WLxx_HAL to released v1.0.0
2021-01-29 10:28:18 +08:00
thread-liu f691db99b5 [update] uart dma sample. 2021-01-20 15:31:38 +08:00
Dozingfiretruck af1e92e661 stm32wb 2020-10-14 15:03:33 +08:00
thread-liu 0606261b97 [add] stm32mp1 drivers 2020-06-20 14:05:14 +08:00
流光 0a5d7d60eb [upadte] Configure the priority of STM32 uart rx interrupts | 显式配置STM32串口接收中断优先级. 2020-06-04 10:18:57 +08:00
whj4674672 92ddb8b0f3 [bsp/stm32/stm32h743-atk-apollo]support stm32h7 uart dma 2020-05-02 15:09:41 +08:00
SummerGift e5c1183350 [optimize] stm32 uart driver 2020-03-23 15:44:54 +08:00
Bernard Xiong 3e8c03e934
Merge pull request #3421 from ErnestChen1/master
[bsp] fix UART DMA TX
2020-03-10 16:24:38 +08:00
Ernest c1821b85a1 [bsp] fix UART DMA TX 2020-02-29 21:20:54 +08:00
armink f1e5883543 [bsp/stm32] Add DMAMUX support for stm32l4+.
Signed-off-by: armink <armink.ztl@gmail.com>
2019-12-01 15:50:51 +08:00
xuzhuoyi cd267a30e4 [bsp][stm32][stm32g431-st-nucleo] Add stm32g431-st-nucleo bsp 2019-10-03 22:29:13 +08:00
armink fe6cf948d5 [bsp/stm32] Remove the use of device user data on uart driver. 2019-09-21 13:51:04 +08:00
a1012112796 60bda424eb [bsp][stm32] 更新stm32f427-robomaster-a外设驱动配置
1.增加串口1,7,8配置,经实机测试无误
2.增加PWM4 CH1 -- 4, PWM12(BUZZER)配置,因条件有限,仅测试了TIM12 CH1
3.经测试,CAN通信无法正常使用,原因尚未找出,故暂时删去此配置
测试所用编译器: mdk5, IAR
2019-09-10 19:17:38 +08:00
周传福 d548215a3b
Update drv_usart.c 2019-05-22 14:53:49 +08:00
周传福 1e10891f37
Update drv_usart.c
修复dma_config里面rcc的bug。
2019-05-22 09:48:13 +08:00
周传福 56e83fe735
Update drv_usart.c 2019-05-20 10:44:08 +08:00
周传福 893bb72907
Update drv_usart.c 2019-05-20 10:21:00 +08:00
周传福 030b365333
Update drv_usart.c 2019-05-20 09:47:36 +08:00
周传福 81ff374aed
Update drv_usart.c 2019-05-19 22:26:56 +08:00
周传福 24f38acf52
Merge branch 'master' into stm32_uart_tx_dma 2019-05-19 14:37:34 +08:00
周传福 6ebb2c75d9
Update drv_usart.c
添加部分空行
2019-05-17 23:23:14 +08:00
周传福 77daf413be
Update drv_usart.c
添加函数说明
2019-05-16 12:37:25 +08:00
zhouchuanfu d52a412f4c 增加串口DMA发送功能 2019-05-03 20:52:31 +08:00
zhouchuanfu 18d24cfd8d 增加uart的dma半中断接收方式,用来解决连续一次性接收大于dma缓存的数据而不会丢失数据。 2019-05-03 18:16:16 +08:00
guozhanxin cd41b993a7 [bsp][stm32]fix the error when open uart6 alonely! 2019-04-17 11:32:07 +08:00
guozhanxin 6013aafb6b [bsp][stm32]添加 uart6 的支持 2019-04-02 19:16:07 +08:00
whj4674672 6dca889a36 [bsp][stm32]add stm32h743-atk-apollo 2019-03-24 10:43:59 +08:00