feat(cfg): impl static pins (only for promicro)

This commit is contained in:
doryan 2025-04-25 13:38:01 +04:00
parent 57f701e8aa
commit 9f781497d8

View File

@ -21,6 +21,8 @@ pub trait StaticPinOps {
fn set_low(); fn set_low();
fn set_high(); fn set_high();
} }
use arduino_hal::{hal::port::*, pac::*};
use static_pins_macros::impl_static_pin;
#[macro_export] #[macro_export]
macro_rules! impl_static_pins { macro_rules! impl_static_pins {
@ -50,3 +52,9 @@ macro_rules! impl_static_pins {
)+ )+
} }
} }
#[cfg(feature = "sparkfun-promicro")]
impl_static_pins!(
PB0, PB1, PB2, PB3, PB4, PB5, PB6, PB7, PC6, PC7, PD0, PD1, PD2, PD3, PD4, PD5, PD6, PD7, PE2,
PE6, PF0, PF1, PF4, PF5, PF6, PF7
);