179 Commits

Author SHA1 Message Date
Dario Nieuwenhuis
35f4ae378c stm32/afio: make the A generic param only appear in chips with AFIO. 2025-09-05 23:44:25 +02:00
Fabian Wolter
a6562c4f03 Add STM32F1 AFIO remap 2025-09-05 21:15:46 +02:00
elagil
cf5b1ea9f5 feat: gpdma support (wip) 2025-09-05 14:43:29 +02:00
chemicstry
62b9b03325 Fix stm32 buffered half-duplex uart receive 2025-07-16 20:48:44 +03:00
qwerty19106
e256f1360b Fix impl embedded_hal_nb::serial::Write for embassy_stm32::usart::UartTx 2025-07-03 18:17:01 +04:00
Dario Nieuwenhuis
3ffee5e22b
Merge pull request #3965 from toon23/stm32_usart-pin_config
Stm32 usart: implement pin config for cts, tx, rts and de
2025-04-18 11:10:00 +00:00
Anton Pöhl
94c208b52a Stm32 usart: better names for open drain pin modes 2025-04-16 20:42:51 +02:00
Anton Pöhl
de06406899 Stm32 usart: Remove meaningless pin configurations 2025-04-12 20:56:00 +02:00
Anton Pöhl
eb73cc7cfe Format 2025-04-11 20:58:03 +02:00
Anton Pöhl
a544726be4 Stm32 usart: remove HalfDuplexConfig
The pin parameters of usart::Config are used instead.
2025-04-11 20:58:03 +02:00
Anton Pöhl
e3cec4a246 Stm32 usart: make pin modes of cts, tx, rts and de configurable 2025-04-11 20:58:03 +02:00
Badr Bouslikhin
b0ba604ba5 fix(stm32): handle half-duplex in ringbuffered read 2025-04-06 23:52:39 +02:00
Tobias Naumann
c29fc3532b Merge branch 'main' into fix/ringbuffered-error-handling to resolve merge conflicts 2025-03-31 16:48:13 +02:00
Dario Nieuwenhuis
d41eeeae79 Remove Peripheral trait, rename PeripheralRef->Peri. 2025-03-27 15:18:06 +01:00
Tobias Naumann
14d079ae84 Cleanup stm32_metapac register usage in usart module 2025-03-27 12:03:52 +01:00
Tobias Naumann
9e31a45134 Fix unused imports 2025-03-27 11:58:51 +01:00
Rogan Morrow
065071b467 add separate tx waker 2025-02-28 12:30:23 +11:00
Guy Marino
27709df94a
Implement core::error::Error for STM32 Serial Devices 2025-02-26 14:14:16 -08:00
Daniel Trnka
7b7ac1bd3e stm32/usart: disabling receiver before write in half-duplex moved to a new function 2024-12-22 17:53:33 +01:00
Daniel Trnka
2ec81419fa stm32/usart: configurable readback in half-duplex mode 2024-12-22 17:50:46 +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
aa453caa79 add split_ref for stm32 uart 2024-11-04 15:08:57 +01: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
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
Роман Кривенков
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
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
Роман Кривенков
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