bump to v0.3.2, update HAL dependency #4
@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
## [unreleased]
|
## [unreleased]
|
||||||
|
|
||||||
|
## [v0.3.2]
|
||||||
|
|
||||||
|
- Bump HAL dependency to v0.5.0. Changed API, especially for IRQ handling
|
||||||
|
|
||||||
## [v0.3.1]
|
## [v0.3.1]
|
||||||
|
|
||||||
- Updated ADC code and dependency
|
- Updated ADC code and dependency
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "vorago-reb1"
|
name = "vorago-reb1"
|
||||||
version = "0.3.1"
|
version = "0.3.2"
|
||||||
authors = ["Robin Mueller <robin.mueller.m@gmail.com>"]
|
authors = ["Robin Mueller <robin.mueller.m@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Board Support Crate for the Vorago REB1 development board"
|
description = "Board Support Crate for the Vorago REB1 development board"
|
||||||
@ -18,7 +18,7 @@ dummy-pin = "0.1.1"
|
|||||||
max116xx-10bit = "0.2.1"
|
max116xx-10bit = "0.2.1"
|
||||||
|
|
||||||
[dependencies.va108xx-hal]
|
[dependencies.va108xx-hal]
|
||||||
version = "0.4.3"
|
version = "0.5.0"
|
||||||
features = ["rt"]
|
features = ["rt"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
@ -3,11 +3,7 @@
|
|||||||
use cortex_m_rt::entry;
|
use cortex_m_rt::entry;
|
||||||
use panic_rtt_target as _;
|
use panic_rtt_target as _;
|
||||||
use rtt_target::{rprintln, rtt_init_print};
|
use rtt_target::{rprintln, rtt_init_print};
|
||||||
use va108xx_hal::{
|
use va108xx_hal::{pac, prelude::*, timer::set_up_ms_delay_provider};
|
||||||
pac::{self, interrupt},
|
|
||||||
prelude::*,
|
|
||||||
timer::{default_ms_irq_handler, set_up_ms_timer, Delay},
|
|
||||||
};
|
|
||||||
use vorago_reb1::temp_sensor::Adt75TempSensor;
|
use vorago_reb1::temp_sensor::Adt75TempSensor;
|
||||||
|
|
||||||
#[entry]
|
#[entry]
|
||||||
@ -15,14 +11,7 @@ fn main() -> ! {
|
|||||||
rtt_init_print!();
|
rtt_init_print!();
|
||||||
rprintln!("-- Vorago Temperature Sensor and I2C Example --");
|
rprintln!("-- Vorago Temperature Sensor and I2C Example --");
|
||||||
let mut dp = pac::Peripherals::take().unwrap();
|
let mut dp = pac::Peripherals::take().unwrap();
|
||||||
let tim0 = set_up_ms_timer(
|
let mut delay = set_up_ms_delay_provider(&mut dp.SYSCONFIG, 50.mhz(), dp.TIM0);
|
||||||
&mut dp.SYSCONFIG,
|
|
||||||
&mut dp.IRQSEL,
|
|
||||||
50.mhz().into(),
|
|
||||||
dp.TIM0,
|
|
||||||
interrupt::OC0,
|
|
||||||
);
|
|
||||||
let mut delay = Delay::new(tim0);
|
|
||||||
unsafe {
|
unsafe {
|
||||||
cortex_m::peripheral::NVIC::unmask(pac::Interrupt::OC0);
|
cortex_m::peripheral::NVIC::unmask(pac::Interrupt::OC0);
|
||||||
}
|
}
|
||||||
@ -34,11 +23,6 @@ fn main() -> ! {
|
|||||||
.read_temperature()
|
.read_temperature()
|
||||||
.expect("Failed reading temperature");
|
.expect("Failed reading temperature");
|
||||||
rprintln!("Temperature in Celcius: {}", temp);
|
rprintln!("Temperature in Celcius: {}", temp);
|
||||||
delay.delay_ms(500);
|
delay.delay_ms(500_u16);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[interrupt]
|
|
||||||
fn OC0() {
|
|
||||||
default_ms_irq_handler();
|
|
||||||
}
|
|
||||||
|
@ -10,10 +10,10 @@ use panic_rtt_target as _;
|
|||||||
use rtt_target::{rprintln, rtt_init_print};
|
use rtt_target::{rprintln, rtt_init_print};
|
||||||
use va108xx_hal::{
|
use va108xx_hal::{
|
||||||
gpio::PinsA,
|
gpio::PinsA,
|
||||||
pac::{self, interrupt},
|
pac,
|
||||||
prelude::*,
|
prelude::*,
|
||||||
spi::{Spi, SpiConfig, TransferConfig},
|
spi::{Spi, SpiConfig, TransferConfig},
|
||||||
timer::{default_ms_irq_handler, set_up_ms_timer, Delay},
|
timer::set_up_ms_delay_provider,
|
||||||
};
|
};
|
||||||
|
|
||||||
const READ_MASK: u8 = 1 << 7;
|
const READ_MASK: u8 = 1 << 7;
|
||||||
@ -28,18 +28,7 @@ fn main() -> ! {
|
|||||||
rtt_init_print!();
|
rtt_init_print!();
|
||||||
rprintln!("-- Vorago Accelerometer Example --");
|
rprintln!("-- Vorago Accelerometer Example --");
|
||||||
let mut dp = pac::Peripherals::take().unwrap();
|
let mut dp = pac::Peripherals::take().unwrap();
|
||||||
let tim0 = set_up_ms_timer(
|
let mut delay = set_up_ms_delay_provider(&mut dp.SYSCONFIG, 50.mhz(), dp.TIM0);
|
||||||
&mut dp.SYSCONFIG,
|
|
||||||
&mut dp.IRQSEL,
|
|
||||||
50.mhz().into(),
|
|
||||||
dp.TIM0,
|
|
||||||
interrupt::OC0,
|
|
||||||
);
|
|
||||||
let mut delay = Delay::new(tim0);
|
|
||||||
unsafe {
|
|
||||||
cortex_m::peripheral::NVIC::unmask(pac::Interrupt::OC0);
|
|
||||||
}
|
|
||||||
|
|
||||||
let pinsa = PinsA::new(&mut dp.SYSCONFIG, None, dp.PORTA);
|
let pinsa = PinsA::new(&mut dp.SYSCONFIG, None, dp.PORTA);
|
||||||
let spi_cfg = SpiConfig::default();
|
let spi_cfg = SpiConfig::default();
|
||||||
let (sck, mosi, miso) = (
|
let (sck, mosi, miso) = (
|
||||||
@ -78,12 +67,7 @@ fn main() -> ! {
|
|||||||
.expect("Enabling measurement mode failed");
|
.expect("Enabling measurement mode failed");
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
delay.delay_ms(500);
|
delay.delay_ms(500_u16);
|
||||||
unimplemented!("Not implemented for now, is not populated on the board..");
|
unimplemented!("Not implemented for now, is not populated on the board..");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[interrupt]
|
|
||||||
fn OC0() {
|
|
||||||
default_ms_irq_handler();
|
|
||||||
}
|
|
||||||
|
@ -14,7 +14,7 @@ use va108xx_hal::{
|
|||||||
pac::{self, interrupt},
|
pac::{self, interrupt},
|
||||||
prelude::*,
|
prelude::*,
|
||||||
time::Hertz,
|
time::Hertz,
|
||||||
timer::{default_ms_irq_handler, set_up_ms_timer},
|
timer::{default_ms_irq_handler, set_up_ms_timer, IrqCfg},
|
||||||
};
|
};
|
||||||
use vorago_reb1::button::Button;
|
use vorago_reb1::button::Button;
|
||||||
use vorago_reb1::leds::Leds;
|
use vorago_reb1::leds::Leds;
|
||||||
@ -45,9 +45,9 @@ fn main() -> ! {
|
|||||||
// Configure an edge interrupt on the button and route it to interrupt vector 15
|
// Configure an edge interrupt on the button and route it to interrupt vector 15
|
||||||
let mut button = Button::new(pinsa.pa11.into_floating_input()).edge_irq(
|
let mut button = Button::new(pinsa.pa11.into_floating_input()).edge_irq(
|
||||||
edge_irq,
|
edge_irq,
|
||||||
|
IrqCfg::new(pac::interrupt::OC15, true, true),
|
||||||
Some(&mut dp.SYSCONFIG),
|
Some(&mut dp.SYSCONFIG),
|
||||||
&mut dp.IRQSEL,
|
Some(&mut dp.IRQSEL),
|
||||||
pac::interrupt::OC15,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if PRESS_MODE == PressMode::Toggle {
|
if PRESS_MODE == PressMode::Toggle {
|
||||||
@ -61,11 +61,11 @@ fn main() -> ! {
|
|||||||
}
|
}
|
||||||
|
|
||||||
set_up_ms_timer(
|
set_up_ms_timer(
|
||||||
|
IrqCfg::new(pac::Interrupt::OC0, true, true),
|
||||||
&mut dp.SYSCONFIG,
|
&mut dp.SYSCONFIG,
|
||||||
&mut dp.IRQSEL,
|
Some(&mut dp.IRQSEL),
|
||||||
50.mhz().into(),
|
50.mhz(),
|
||||||
dp.TIM0,
|
dp.TIM0,
|
||||||
interrupt::OC0,
|
|
||||||
);
|
);
|
||||||
let mut leds = Leds::new(
|
let mut leds = Leds::new(
|
||||||
pinsa.pa10.into_push_pull_output(),
|
pinsa.pa10.into_push_pull_output(),
|
||||||
@ -75,8 +75,6 @@ fn main() -> ! {
|
|||||||
for led in leds.iter_mut() {
|
for led in leds.iter_mut() {
|
||||||
led.off();
|
led.off();
|
||||||
}
|
}
|
||||||
// Activate the IRQs so the processors sees them as well
|
|
||||||
unmask_irqs();
|
|
||||||
// Make both button and LEDs accessible from the IRQ handler as well
|
// Make both button and LEDs accessible from the IRQ handler as well
|
||||||
cortex_m::interrupt::free(|cs| {
|
cortex_m::interrupt::free(|cs| {
|
||||||
LEDS.borrow(cs).replace(Some(leds));
|
LEDS.borrow(cs).replace(Some(leds));
|
||||||
@ -85,13 +83,6 @@ fn main() -> ! {
|
|||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn unmask_irqs() {
|
|
||||||
unsafe {
|
|
||||||
cortex_m::peripheral::NVIC::unmask(pac::Interrupt::OC0);
|
|
||||||
cortex_m::peripheral::NVIC::unmask(pac::Interrupt::OC15);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[interrupt]
|
#[interrupt]
|
||||||
fn OC0() {
|
fn OC0() {
|
||||||
default_ms_irq_handler();
|
default_ms_irq_handler();
|
||||||
|
@ -9,10 +9,10 @@ mod app {
|
|||||||
use va108xx_hal::{
|
use va108xx_hal::{
|
||||||
clock::{set_clk_div_register, FilterClkSel},
|
clock::{set_clk_div_register, FilterClkSel},
|
||||||
gpio::{FilterType, InterruptEdge, PinsA},
|
gpio::{FilterType, InterruptEdge, PinsA},
|
||||||
pac::{self, interrupt},
|
pac,
|
||||||
prelude::*,
|
prelude::*,
|
||||||
time::Hertz,
|
time::Hertz,
|
||||||
timer::{default_ms_irq_handler, set_up_ms_timer},
|
timer::{default_ms_irq_handler, set_up_ms_timer, IrqCfg},
|
||||||
};
|
};
|
||||||
use vorago_reb1::button::Button;
|
use vorago_reb1::button::Button;
|
||||||
use vorago_reb1::leds::Leds;
|
use vorago_reb1::leds::Leds;
|
||||||
@ -66,9 +66,9 @@ mod app {
|
|||||||
// Configure an edge interrupt on the button and route it to interrupt vector 15
|
// Configure an edge interrupt on the button and route it to interrupt vector 15
|
||||||
let mut button = Button::new(pinsa.pa11.into_floating_input()).edge_irq(
|
let mut button = Button::new(pinsa.pa11.into_floating_input()).edge_irq(
|
||||||
edge_irq,
|
edge_irq,
|
||||||
|
IrqCfg::new(pac::interrupt::OC15, true, true),
|
||||||
Some(&mut dp.SYSCONFIG),
|
Some(&mut dp.SYSCONFIG),
|
||||||
&mut dp.IRQSEL,
|
Some(&mut dp.IRQSEL),
|
||||||
pac::interrupt::OC15,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if mode == PressMode::Toggle {
|
if mode == PressMode::Toggle {
|
||||||
@ -80,14 +80,6 @@ mod app {
|
|||||||
Hertz::from(50.khz()).0,
|
Hertz::from(50.khz()).0,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
set_up_ms_timer(
|
|
||||||
&mut dp.SYSCONFIG,
|
|
||||||
&mut dp.IRQSEL,
|
|
||||||
50.mhz().into(),
|
|
||||||
dp.TIM0,
|
|
||||||
interrupt::OC0,
|
|
||||||
);
|
|
||||||
let mut leds = Leds::new(
|
let mut leds = Leds::new(
|
||||||
pinsa.pa10.into_push_pull_output(),
|
pinsa.pa10.into_push_pull_output(),
|
||||||
pinsa.pa7.into_push_pull_output(),
|
pinsa.pa7.into_push_pull_output(),
|
||||||
@ -96,8 +88,13 @@ mod app {
|
|||||||
for led in leds.iter_mut() {
|
for led in leds.iter_mut() {
|
||||||
led.off();
|
led.off();
|
||||||
}
|
}
|
||||||
// Activate the IRQs so the processors sees them as well
|
set_up_ms_timer(
|
||||||
unmask_irqs();
|
IrqCfg::new(pac::Interrupt::OC0, true, true),
|
||||||
|
&mut dp.SYSCONFIG,
|
||||||
|
Some(&mut dp.IRQSEL),
|
||||||
|
50.mhz(),
|
||||||
|
dp.TIM0,
|
||||||
|
);
|
||||||
(Shared {}, Local { leds, button, mode }, init::Monotonics())
|
(Shared {}, Local { leds, button, mode }, init::Monotonics())
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -128,13 +125,6 @@ mod app {
|
|||||||
default_ms_irq_handler();
|
default_ms_irq_handler();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn unmask_irqs() {
|
|
||||||
unsafe {
|
|
||||||
cortex_m::peripheral::NVIC::unmask(pac::Interrupt::OC0);
|
|
||||||
cortex_m::peripheral::NVIC::unmask(pac::Interrupt::OC15);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn prompt_mode(mut down_channel: rtt_target::DownChannel) -> PressMode {
|
fn prompt_mode(mut down_channel: rtt_target::DownChannel) -> PressMode {
|
||||||
rprintln!("Using prompt mode");
|
rprintln!("Using prompt mode");
|
||||||
rprintln!("Please enter the mode [0: Toggle, 1: Keep]");
|
rprintln!("Please enter the mode [0: Toggle, 1: Keep]");
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
use cortex_m_rt::entry;
|
use cortex_m_rt::entry;
|
||||||
use embedded_hal::digital::v2::ToggleableOutputPin;
|
use embedded_hal::digital::v2::ToggleableOutputPin;
|
||||||
use panic_halt as _;
|
use panic_halt as _;
|
||||||
use va108xx_hal::{gpio::pins::PinsA, pac, prelude::*, timer::set_up_ms_timer};
|
use va108xx_hal::{gpio::pins::PinsA, pac, prelude::*, timer::set_up_ms_delay_provider};
|
||||||
use vorago_reb1::leds::Leds;
|
use vorago_reb1::leds::Leds;
|
||||||
|
|
||||||
// REB LED pin definitions. All on port A
|
// REB LED pin definitions. All on port A
|
||||||
@ -64,13 +64,7 @@ fn main() -> ! {
|
|||||||
let mut led1 = pins.pa10.into_push_pull_output();
|
let mut led1 = pins.pa10.into_push_pull_output();
|
||||||
let mut led2 = pins.pa7.into_push_pull_output();
|
let mut led2 = pins.pa7.into_push_pull_output();
|
||||||
let mut led3 = pins.pa6.into_push_pull_output();
|
let mut led3 = pins.pa6.into_push_pull_output();
|
||||||
let mut delay = set_up_ms_timer(
|
let mut delay = set_up_ms_delay_provider(&mut dp.SYSCONFIG, 50.mhz(), dp.TIM0);
|
||||||
&mut dp.SYSCONFIG,
|
|
||||||
&mut dp.IRQSEL,
|
|
||||||
50.mhz().into(),
|
|
||||||
dp.TIM0,
|
|
||||||
pac::Interrupt::OC0,
|
|
||||||
);
|
|
||||||
for _ in 0..10 {
|
for _ in 0..10 {
|
||||||
led1.set_low().ok();
|
led1.set_low().ok();
|
||||||
led2.set_low().ok();
|
led2.set_low().ok();
|
||||||
@ -97,13 +91,7 @@ fn main() -> ! {
|
|||||||
pinsa.pa7.into_push_pull_output(),
|
pinsa.pa7.into_push_pull_output(),
|
||||||
pinsa.pa6.into_push_pull_output(),
|
pinsa.pa6.into_push_pull_output(),
|
||||||
);
|
);
|
||||||
let mut delay = set_up_ms_timer(
|
let mut delay = set_up_ms_delay_provider(&mut dp.SYSCONFIG, 50.mhz(), dp.TIM0);
|
||||||
&mut dp.SYSCONFIG,
|
|
||||||
&mut dp.IRQSEL,
|
|
||||||
50.mhz().into(),
|
|
||||||
dp.TIM0,
|
|
||||||
pac::Interrupt::OC0,
|
|
||||||
);
|
|
||||||
loop {
|
loop {
|
||||||
for _ in 0..10 {
|
for _ in 0..10 {
|
||||||
// Blink all LEDs quickly
|
// Blink all LEDs quickly
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
//! MAX11619 ADC example applikcation
|
//! MAX11619 ADC example applikcation
|
||||||
#![no_main]
|
#![no_main]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
use cortex_m_rt::entry;
|
use cortex_m_rt::entry;
|
||||||
use embedded_hal::{blocking::delay::DelayUs, spi};
|
use embedded_hal::{blocking::delay::DelayUs, spi};
|
||||||
use max116xx_10bit::VoltageRefMode;
|
use max116xx_10bit::VoltageRefMode;
|
||||||
@ -13,7 +14,7 @@ use va108xx_hal::{
|
|||||||
pac::{self, interrupt, SPIB},
|
pac::{self, interrupt, SPIB},
|
||||||
prelude::*,
|
prelude::*,
|
||||||
spi::{Spi, SpiBase, SpiConfig, TransferConfig},
|
spi::{Spi, SpiBase, SpiConfig, TransferConfig},
|
||||||
timer::{default_ms_irq_handler, set_up_ms_timer, Delay},
|
timer::{default_ms_irq_handler, set_up_ms_timer, Delay, IrqCfg},
|
||||||
utility::{port_mux, Funsel, PortSel},
|
utility::{port_mux, Funsel, PortSel},
|
||||||
};
|
};
|
||||||
use vorago_reb1::max11619::{
|
use vorago_reb1::max11619::{
|
||||||
@ -44,7 +45,7 @@ pub enum MuxMode {
|
|||||||
|
|
||||||
const EXAMPLE_MODE: ExampleMode = ExampleMode::NotUsingEoc;
|
const EXAMPLE_MODE: ExampleMode = ExampleMode::NotUsingEoc;
|
||||||
const READ_MODE: ReadMode = ReadMode::Multiple;
|
const READ_MODE: ReadMode = ReadMode::Multiple;
|
||||||
const MUX_MODE: MuxMode = MuxMode::PortB19to17;
|
const MUX_MODE: MuxMode = MuxMode::None;
|
||||||
|
|
||||||
#[entry]
|
#[entry]
|
||||||
fn main() -> ! {
|
fn main() -> ! {
|
||||||
@ -53,11 +54,11 @@ fn main() -> ! {
|
|||||||
|
|
||||||
let mut dp = pac::Peripherals::take().unwrap();
|
let mut dp = pac::Peripherals::take().unwrap();
|
||||||
let tim0 = set_up_ms_timer(
|
let tim0 = set_up_ms_timer(
|
||||||
|
IrqCfg::new(pac::Interrupt::OC0, true, true),
|
||||||
&mut dp.SYSCONFIG,
|
&mut dp.SYSCONFIG,
|
||||||
&mut dp.IRQSEL,
|
Some(&mut dp.IRQSEL),
|
||||||
50.mhz().into(),
|
50.mhz(),
|
||||||
dp.TIM0,
|
dp.TIM0,
|
||||||
interrupt::OC0,
|
|
||||||
);
|
);
|
||||||
let delay = Delay::new(tim0);
|
let delay = Delay::new(tim0);
|
||||||
unsafe {
|
unsafe {
|
||||||
|
@ -8,6 +8,7 @@ use va108xx_hal::{
|
|||||||
gpio::{FilterClkSel, FilterType, InputFloating, InterruptEdge, InterruptLevel, Pin, PA11},
|
gpio::{FilterClkSel, FilterType, InputFloating, InterruptEdge, InterruptLevel, Pin, PA11},
|
||||||
pac,
|
pac,
|
||||||
prelude::*,
|
prelude::*,
|
||||||
|
utility::IrqCfg,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub struct Button {
|
pub struct Button {
|
||||||
@ -28,30 +29,28 @@ impl Button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Configures an IRQ on edge.
|
/// Configures an IRQ on edge.
|
||||||
///
|
|
||||||
/// Please note that you still have to unpend the Cortex-M interrupt yourself
|
|
||||||
pub fn edge_irq(
|
pub fn edge_irq(
|
||||||
mut self,
|
mut self,
|
||||||
edge_type: InterruptEdge,
|
edge_type: InterruptEdge,
|
||||||
|
irq_cfg: IrqCfg,
|
||||||
syscfg: Option<&mut pac::SYSCONFIG>,
|
syscfg: Option<&mut pac::SYSCONFIG>,
|
||||||
irqsel: &mut pac::IRQSEL,
|
irqsel: Option<&mut pac::IRQSEL>,
|
||||||
irq: pac::interrupt,
|
|
||||||
) -> Self {
|
) -> Self {
|
||||||
self.button = self.button.interrupt_edge(edge_type, syscfg, irqsel, irq);
|
self.button = self
|
||||||
|
.button
|
||||||
|
.interrupt_edge(edge_type, irq_cfg, syscfg, irqsel);
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Configures an IRQ on level.
|
/// Configures an IRQ on level.
|
||||||
///
|
|
||||||
/// Please note that you still have to unpend the Cortex-M interrupt yourself
|
|
||||||
pub fn level_irq(
|
pub fn level_irq(
|
||||||
mut self,
|
mut self,
|
||||||
level: InterruptLevel,
|
level: InterruptLevel,
|
||||||
|
irq_cfg: IrqCfg,
|
||||||
syscfg: Option<&mut pac::SYSCONFIG>,
|
syscfg: Option<&mut pac::SYSCONFIG>,
|
||||||
irqsel: &mut pac::IRQSEL,
|
irqsel: Option<&mut pac::IRQSEL>,
|
||||||
irq: pac::interrupt,
|
|
||||||
) -> Self {
|
) -> Self {
|
||||||
self.button = self.button.interrupt_level(level, syscfg, irqsel, irq);
|
self.button = self.button.interrupt_level(level, irq_cfg, syscfg, irqsel);
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user