aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Pöhl <[email protected]>2025-04-12 20:56:00 +0200
committerAnton Pöhl <[email protected]>2025-04-12 20:56:00 +0200
commitde064068995e6f9041d8c4f8e5bd78aabf80fd27 (patch)
tree20da2591c575c618008cdc5f399fa0df8abfe39b
parenteb73cc7cfe85921ab2d6605addc12edfaa93cef4 (diff)
Stm32 usart: Remove meaningless pin configurations
-rw-r--r--embassy-stm32/src/usart/mod.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/embassy-stm32/src/usart/mod.rs b/embassy-stm32/src/usart/mod.rs
index 6c5d3422b..49f536799 100644
--- a/embassy-stm32/src/usart/mod.rs
+++ b/embassy-stm32/src/usart/mod.rs
@@ -142,12 +142,6 @@ pub enum HalfDuplexReadback {
142pub enum OutputConfig { 142pub enum OutputConfig {
143 /// Push pull allows for faster baudrates, no internal pullup 143 /// Push pull allows for faster baudrates, no internal pullup
144 PushPull, 144 PushPull,
145 #[cfg(not(gpio_v1))]
146 /// Push pull with internal pull up resistor
147 PushPullPullUp,
148 #[cfg(not(gpio_v1))]
149 /// Push pull with internal pull down resistor
150 PushPullPullDown,
151 /// Open drain output using external pull down resistor 145 /// Open drain output using external pull down resistor
152 OpenDrainExternal, 146 OpenDrainExternal,
153 #[cfg(not(gpio_v1))] 147 #[cfg(not(gpio_v1))]
@@ -159,10 +153,6 @@ impl OutputConfig {
159 const fn af_type(self) -> AfType { 153 const fn af_type(self) -> AfType {
160 match self { 154 match self {
161 OutputConfig::PushPull => AfType::output(OutputType::PushPull, Speed::Medium), 155 OutputConfig::PushPull => AfType::output(OutputType::PushPull, Speed::Medium),
162 #[cfg(not(gpio_v1))]
163 OutputConfig::PushPullPullUp => AfType::output_pull(OutputType::OpenDrain, Speed::Medium, Pull::Up),
164 #[cfg(not(gpio_v1))]
165 OutputConfig::PushPullPullDown => AfType::output_pull(OutputType::OpenDrain, Speed::Medium, Pull::Down),
166 OutputConfig::OpenDrainExternal => AfType::output(OutputType::OpenDrain, Speed::Medium), 156 OutputConfig::OpenDrainExternal => AfType::output(OutputType::OpenDrain, Speed::Medium),
167 #[cfg(not(gpio_v1))] 157 #[cfg(not(gpio_v1))]
168 OutputConfig::OpenDrainInternal => AfType::output_pull(OutputType::OpenDrain, Speed::Medium, Pull::Up), 158 OutputConfig::OpenDrainInternal => AfType::output_pull(OutputType::OpenDrain, Speed::Medium, Pull::Up),