feat: remove interrupt configuration in constructor
This commit is contained in:
parent
52de979023
commit
b5e0708b09
|
@ -4,7 +4,6 @@ use core::marker::PhantomData;
|
||||||
|
|
||||||
use arduino_hal::{
|
use arduino_hal::{
|
||||||
delay_us,
|
delay_us,
|
||||||
pac::EXINT,
|
|
||||||
port::{
|
port::{
|
||||||
mode::{Input, PullUp},
|
mode::{Input, PullUp},
|
||||||
Pin, PinOps,
|
Pin, PinOps,
|
||||||
|
@ -42,10 +41,7 @@ where
|
||||||
P: PinOps + StaticPinOps,
|
P: PinOps + StaticPinOps,
|
||||||
{
|
{
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn new(_pin: Pin<Input<PullUp>, P>, exint: &EXINT) -> Self {
|
pub fn new(_pin: Pin<Input<PullUp>, P>) -> Self {
|
||||||
exint.eimsk.write(|w| w.bits(1 << 1));
|
|
||||||
exint.eicra.write(|w| unsafe { w.bits(!(1 << 3 | 1 << 2)) });
|
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
_pin: PhantomData {},
|
_pin: PhantomData {},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue