Stm32 usart: Remove meaningless pin configurations

This commit is contained in:
Anton Pöhl 2025-04-12 20:56:00 +02:00
parent eb73cc7cfe
commit de06406899

View File

@ -142,12 +142,6 @@ pub enum HalfDuplexReadback {
pub enum OutputConfig {
/// Push pull allows for faster baudrates, no internal pullup
PushPull,
#[cfg(not(gpio_v1))]
/// Push pull with internal pull up resistor
PushPullPullUp,
#[cfg(not(gpio_v1))]
/// Push pull with internal pull down resistor
PushPullPullDown,
/// Open drain output using external pull down resistor
OpenDrainExternal,
#[cfg(not(gpio_v1))]
@ -159,10 +153,6 @@ impl OutputConfig {
const fn af_type(self) -> AfType {
match self {
OutputConfig::PushPull => AfType::output(OutputType::PushPull, Speed::Medium),
#[cfg(not(gpio_v1))]
OutputConfig::PushPullPullUp => AfType::output_pull(OutputType::OpenDrain, Speed::Medium, Pull::Up),
#[cfg(not(gpio_v1))]
OutputConfig::PushPullPullDown => AfType::output_pull(OutputType::OpenDrain, Speed::Medium, Pull::Down),
OutputConfig::OpenDrainExternal => AfType::output(OutputType::OpenDrain, Speed::Medium),
#[cfg(not(gpio_v1))]
OutputConfig::OpenDrainInternal => AfType::output_pull(OutputType::OpenDrain, Speed::Medium, Pull::Up),