mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
make half duplex fn private
This commit is contained in:
parent
fcf9b3239e
commit
bbc06035c1
@ -225,7 +225,7 @@ pub enum HalfDuplexConfig {
|
||||
}
|
||||
|
||||
impl HalfDuplexConfig {
|
||||
pub fn af_type(self) -> gpio::AfType {
|
||||
fn af_type(self) -> gpio::AfType {
|
||||
match self {
|
||||
HalfDuplexConfig::PushPull => AfType::output(OutputType::PushPull, Speed::Medium),
|
||||
HalfDuplexConfig::OpenDrainExternal => AfType::output(OutputType::OpenDrain, Speed::Medium),
|
||||
|
Loading…
Reference in New Issue
Block a user