235 Commits

Author SHA1 Message Date
Enmanuel Parache
8d2fbf0e14 Extend set_baudrate implementation to Buffered and RingBuffered structs 2024-12-03 00:34:23 +01:00
Enmanuel Parache
32a1b232cb Fixed build error 2024-12-03 00:34:23 +01:00
Enmanuel Parache
63298e2f7c Reduced code duplication 2024-12-03 00:34:23 +01:00
Enmanuel Parache
def2601558 rustfmt 2024-12-03 00:34:23 +01:00
Enmanuel Parache
6494429a20 stm32/usart: Changing baud rate 2024-12-03 00:34:23 +01:00
Derek Hageman
7d15ec921a stm32/usart: Implement data bit selection
Implement data bit size selection and add 7-bit mode.
2024-12-01 11:00:08 -07:00
Kenneth Knudsen
72109a7bda Split_ref with shortened lifetime. When borrowed skip drop on rx and tx 2024-11-06 10:52:03 +01:00
Kenneth Knudsen
aa453caa79 add split_ref for stm32 uart 2024-11-04 15:08:57 +01:00
dvdsk
43ff5a9b28
stm32/uart fix leftover DmaUnsynced public api 2024-11-02 14:00:27 +01:00
dvdsk
edac7cc630
stm32/uart remove DmaUnsynced from public api
Its an internal error which should never be exposed. It should only
occur with wrong driver implementations. We log to the user and return
an Overrun error since handling DmaUnsynced as an Overrun will resolve it.
2024-10-26 12:38:10 +02:00
dvdsk
be50b62677
stm32/uart impl ReadReady for RingbufferdUart 2024-10-23 21:06:58 +02:00
Lucas Martins
82772e3a8f
📝 fix wrong comment 2024-10-21 17:50:05 -03:00
Lucas Martins
2c9b528edd
fmt 2024-10-21 15:06:06 -03:00
Lucas Martins
c0addc005b
add uart permutations usefull for rs485 2024-10-21 14:48:57 -03:00
Alexandros Liarokapis
f0d2ebdc7e stm32: fix ringbugger overrun errors due to bad dma wrap-around behavior 2024-10-15 12:29:12 +03:00
Роман Кривенков
6862ac56cb Stm32: implement async flush for UART 2024-10-14 13:28:35 +04:00
Dario Nieuwenhuis
2f6273bb5d
Merge pull request #3299 from badrbouslikhin/main
fix(stm32): disable transmitter during during half-duplex flush
2024-10-13 20:10:16 +00:00
Beat Küng
0bf99820f3
stm32: add RX Pull configuration option to USART 2024-10-12 13:47:26 +02:00
Peter Krull
3aeeeb0d78 stm32: Start DMA before clearing, avoid panic in updater ringbuffer impl 2024-09-19 20:07:08 +02:00
Peter Krull
4fcc8e39d6 stm32: Only check errors on running RingBufferedUartRx, reduce number of small one-time functions 2024-09-19 19:21:34 +02:00
Peter Krull
907d55ea82 stm32: Added request_pause to DMA, and use it for RingBufferedUartRx 2024-09-19 18:14:09 +02:00
Dario Nieuwenhuis
609b1b0355
Merge pull request #3286 from trnila/stm32_usart_break
stm32/usart: sending break character
2024-09-10 21:33:27 +00:00
Badr Bouslikhin
ee25f14b20
fix(stm32): reorder dma and idle futures 2024-09-06 18:55:33 +02:00
Badr Bouslikhin
f6d92b7611
fix(stm32): disable transmitter during half-duplex read 2024-08-30 18:52:23 +02:00
Daniel Trnka
22f4459ae2 stm32/usart: sending break character in buffered usart 2024-08-28 21:55:08 +02:00
Daniel Trnka
bea1f34440 stm32/usart: sending break character 2024-08-25 21:49:43 +02:00
Karun
bbc06035c1 make half duplex fn private 2024-08-19 12:15:39 -04:00
Karun
fcf9b3239e remove duplication 2024-08-19 11:27:18 -04:00
Karun
446169b2c1 Add gpio version dependency
Add configurable output type for half-duplex
2024-08-06 11:52:16 -04:00
Karun
a725892720 Convert uart half_duplex to use open-drain pull-up 2024-08-05 15:37:03 -04:00
rafael
d9ea5cb015 stm after cargo fix 2024-07-14 17:56:56 +02:00
rafael
c7f775dc20 stm 2024-07-14 16:42:54 +02:00
Роман Кривенков
a862334dae STM32 Half-Duplex: fix sequential reads and writes 2024-07-02 02:45:06 +02:00
Jan Špaček
94007ce6e0 stm32/gpio: refactor AfType 2024-06-16 21:11:55 +02:00
Jan Špaček
f3703ff6bf stm32/usart: set refcount even if initialization failed 2024-06-03 20:12:33 +02:00
Jan Špaček
664e4a5c03 stm32/usart: move init code to function that's not generic in T 2024-06-01 19:46:39 +02:00
Jan Špaček
44e4a2c9e9 stm32/buffered-usart: use new_pin! and disconnect pins on drop 2024-06-01 19:46:39 +02:00
Jan Špaček
ade27b7f21 stm32/usart: disconnect pins of RingBufferedUartRx on drop 2024-06-01 19:46:39 +02:00
Jan Špaček
081afca3f0 stm32/rcc: replace generated enable/disable code with runtime info 2024-05-25 18:44:55 +02:00
Jan Špaček
183f2f6913 stm32/usart: remove instance generic params 2024-05-23 16:32:15 +02:00
Scott Mabin
94e559eba7 Don't teardown during reconfigure 2024-05-22 22:28:03 +01:00
Роман Кривенков
d5f0bceb7c Clear Receiver enable flag before write in Half-Duplex mode 2024-05-02 15:59:42 +04:00
qwerty19106
c929ad226b
Improve Uart::new_half_duplex docs 2024-04-27 12:22:35 +04:00
Dario Nieuwenhuis
5732ee7ca9 Reduce use of the full futures crate. 2024-04-26 23:22:25 +02:00
Dario Nieuwenhuis
a8401ec94e stm32/usart: remove wildcard import. 2024-04-26 22:59:11 +02:00
Michael de Silva
02bb85a791 Add trace logging for USART 2024-04-24 01:59:00 +05:30
qwerty19106
ce58cd0f1c Allow Uart::new_half_duplex for all usart_vx 2024-04-18 10:34:52 +04:00
Dario Nieuwenhuis
d6b1233f16 stm32/usart: remove DMA generic params. 2024-04-16 02:00:55 +02:00
Dario Nieuwenhuis
d597815c9a stm32: remove last few mod sealed's. 2024-04-05 00:48:46 +02:00
Emilie Burgun
e3ef7cd99f Document why embedded_io::Read cannot be implemented for the base Uart 2024-03-27 11:10:16 +01:00