This commit is contained in:
parent
63ce881bdd
commit
5e56e9bb12
@ -31,7 +31,3 @@ features = ["cortex-m-systick"]
|
|||||||
version = "0.6"
|
version = "0.6"
|
||||||
path = "../../va108xx-hal"
|
path = "../../va108xx-hal"
|
||||||
features = ["rt", "defmt"]
|
features = ["rt", "defmt"]
|
||||||
|
|
||||||
[dependencies.va108xx]
|
|
||||||
version = "0.3"
|
|
||||||
path = "../../va108xx"
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
use cortex_m_rt::entry;
|
use cortex_m_rt::entry;
|
||||||
use panic_halt as _;
|
use panic_halt as _;
|
||||||
use va108xx as pac;
|
use va108xx_hal::pac;
|
||||||
|
|
||||||
// REB LED pin definitions. All on port A
|
// REB LED pin definitions. All on port A
|
||||||
const LED_D2: u32 = 1 << 10;
|
const LED_D2: u32 = 1 << 10;
|
||||||
|
@ -39,7 +39,7 @@ fn main() -> ! {
|
|||||||
CountDownTimer::new(&mut dp.sysconfig, 50.MHz(), dp.tim3).auto_disable(true);
|
CountDownTimer::new(&mut dp.sysconfig, 50.MHz(), dp.tim3).auto_disable(true);
|
||||||
cascade_triggerer.listen(
|
cascade_triggerer.listen(
|
||||||
Event::TimeOut,
|
Event::TimeOut,
|
||||||
IrqCfg::new(va108xx::Interrupt::OC1, true, false),
|
IrqCfg::new(pac::Interrupt::OC1, true, false),
|
||||||
Some(&mut dp.irqsel),
|
Some(&mut dp.irqsel),
|
||||||
Some(&mut dp.sysconfig),
|
Some(&mut dp.sysconfig),
|
||||||
);
|
);
|
||||||
@ -62,7 +62,7 @@ fn main() -> ! {
|
|||||||
// the timer expires
|
// the timer expires
|
||||||
cascade_target_1.listen(
|
cascade_target_1.listen(
|
||||||
Event::TimeOut,
|
Event::TimeOut,
|
||||||
IrqCfg::new(va108xx::Interrupt::OC2, true, false),
|
IrqCfg::new(pac::Interrupt::OC2, true, false),
|
||||||
Some(&mut dp.irqsel),
|
Some(&mut dp.irqsel),
|
||||||
Some(&mut dp.sysconfig),
|
Some(&mut dp.sysconfig),
|
||||||
);
|
);
|
||||||
@ -88,7 +88,7 @@ fn main() -> ! {
|
|||||||
// the timer expires
|
// the timer expires
|
||||||
cascade_target_2.listen(
|
cascade_target_2.listen(
|
||||||
Event::TimeOut,
|
Event::TimeOut,
|
||||||
IrqCfg::new(va108xx::Interrupt::OC3, true, false),
|
IrqCfg::new(pac::Interrupt::OC3, true, false),
|
||||||
Some(&mut dp.irqsel),
|
Some(&mut dp.irqsel),
|
||||||
Some(&mut dp.sysconfig),
|
Some(&mut dp.sysconfig),
|
||||||
);
|
);
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
use cortex_m_rt::entry;
|
use cortex_m_rt::entry;
|
||||||
use panic_halt as _;
|
use panic_halt as _;
|
||||||
use rtt_target::{rprintln, rtt_init_print};
|
use rtt_target::{rprintln, rtt_init_print};
|
||||||
use va108xx as _;
|
|
||||||
|
|
||||||
#[entry]
|
#[entry]
|
||||||
fn main() -> ! {
|
fn main() -> ! {
|
||||||
|
@ -24,8 +24,7 @@ defmt = { version = "0.3", optional = true }
|
|||||||
delegate = "0.12"
|
delegate = "0.12"
|
||||||
|
|
||||||
[dependencies.va108xx]
|
[dependencies.va108xx]
|
||||||
version = "0.3.0"
|
version = "0.3"
|
||||||
path = "../va108xx"
|
|
||||||
default-features = false
|
default-features = false
|
||||||
features = ["critical-section"]
|
features = ["critical-section"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user