make half duplex fn private
This commit is contained in:
parent
fcf9b3239e
commit
bbc06035c1
@ -225,7 +225,7 @@ pub enum HalfDuplexConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl HalfDuplexConfig {
|
impl HalfDuplexConfig {
|
||||||
pub fn af_type(self) -> gpio::AfType {
|
fn af_type(self) -> gpio::AfType {
|
||||||
match self {
|
match self {
|
||||||
HalfDuplexConfig::PushPull => AfType::output(OutputType::PushPull, Speed::Medium),
|
HalfDuplexConfig::PushPull => AfType::output(OutputType::PushPull, Speed::Medium),
|
||||||
HalfDuplexConfig::OpenDrainExternal => AfType::output(OutputType::OpenDrain, Speed::Medium),
|
HalfDuplexConfig::OpenDrainExternal => AfType::output(OutputType::OpenDrain, Speed::Medium),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user