feat: remove interrupt configuration in constructor

This commit is contained in:
doryan 2025-04-24 22:40:41 +04:00
parent 52de979023
commit b5e0708b09

View File

@ -4,7 +4,6 @@ use core::marker::PhantomData;
use arduino_hal::{
delay_us,
pac::EXINT,
port::{
mode::{Input, PullUp},
Pin, PinOps,
@ -42,10 +41,7 @@ where
P: PinOps + StaticPinOps,
{
#[inline]
pub fn new(_pin: Pin<Input<PullUp>, P>, exint: &EXINT) -> Self {
exint.eimsk.write(|w| w.bits(1 << 1));
exint.eicra.write(|w| unsafe { w.bits(!(1 << 3 | 1 << 2)) });
pub fn new(_pin: Pin<Input<PullUp>, P>) -> Self {
Self {
_pin: PhantomData {},
}