bump HAL and PAC
This commit is contained in:
@@ -26,8 +26,8 @@ embassy-executor = { version = "0.9", features = [
|
||||
"executor-interrupt"
|
||||
]}
|
||||
|
||||
va108xx-hal = { version = "0.11", path = "../../va108xx-hal", features = ["defmt"] }
|
||||
va108xx-embassy = { version = "0.2", path = "../../va108xx-embassy" }
|
||||
va108xx-hal = { version = "0.12", path = "../../va108xx-hal", features = ["defmt"] }
|
||||
va108xx-embassy = { version = "0.3", path = "../../va108xx-embassy" }
|
||||
|
||||
[features]
|
||||
default = ["ticks-hz-1_000", "va108xx-embassy/irq-oc30-oc31"]
|
||||
|
||||
@@ -13,5 +13,5 @@ rtic = { version = "2", features = ["thumbv6-backend"] }
|
||||
rtic-monotonics = { version = "2", features = ["cortex-m-systick"] }
|
||||
ringbuf = { version = "0.4.7", default-features = false, features = ["portable-atomic"] }
|
||||
|
||||
va108xx-hal = { version = "0.11", path = "../../va108xx-hal" }
|
||||
va108xx-hal = { version = "0.12", path = "../../va108xx-hal" }
|
||||
vorago-reb1 = { version = "0.8", path = "../../vorago-reb1" }
|
||||
|
||||
@@ -10,7 +10,7 @@ mod app {
|
||||
// Import global logger.
|
||||
use defmt_rtt as _;
|
||||
use va108xx_hal::{
|
||||
clock::{set_clk_div_register, FilterClkSel},
|
||||
clock::{set_clk_div_register, FilterClockSelect},
|
||||
gpio::{FilterType, InterruptEdge},
|
||||
pac,
|
||||
pins::PinsA,
|
||||
@@ -60,8 +60,8 @@ mod app {
|
||||
|
||||
if mode == PressMode::Toggle {
|
||||
// This filter debounces the switch for edge based interrupts
|
||||
button.configure_filter_type(FilterType::FilterFourCycles, FilterClkSel::Clk1);
|
||||
set_clk_div_register(&mut dp.sysconfig, FilterClkSel::Clk1, 50_000);
|
||||
button.configure_filter_type(FilterType::FilterFourCycles, FilterClockSelect::Clk1);
|
||||
set_clk_div_register(&mut dp.sysconfig, FilterClockSelect::Clk1, 50_000);
|
||||
}
|
||||
button.configure_and_enable_edge_interrupt(
|
||||
edge_irq,
|
||||
|
||||
@@ -16,6 +16,6 @@ embedded-io = "0.6"
|
||||
portable-atomic = { version = "1", features = ["unsafe-assume-single-core"] }
|
||||
|
||||
[dependencies.va108xx-hal]
|
||||
version = "0.11"
|
||||
version = "0.12"
|
||||
path = "../../va108xx-hal"
|
||||
features = ["defmt"]
|
||||
|
||||
@@ -14,7 +14,7 @@ use va108xx_hal::{
|
||||
pac,
|
||||
pins::{PinsA, PinsB},
|
||||
prelude::*,
|
||||
spi::{self, configure_pin_as_hw_cs_pin, Spi, SpiClkConfig, TransferConfig},
|
||||
spi::{self, configure_pin_as_hw_cs_pin, Spi, SpiClockConfig, TransferConfig},
|
||||
timer::CountdownTimer,
|
||||
};
|
||||
|
||||
@@ -45,7 +45,7 @@ fn main() -> ! {
|
||||
let dp = pac::Peripherals::take().unwrap();
|
||||
let mut delay = CountdownTimer::new(dp.tim0, 50.MHz());
|
||||
|
||||
let spi_clk_cfg = SpiClkConfig::from_clk(50.MHz(), SPI_SPEED_KHZ.kHz())
|
||||
let spi_clk_cfg = SpiClockConfig::from_clk(50.MHz(), SPI_SPEED_KHZ.kHz())
|
||||
.expect("creating SPI clock config failed");
|
||||
let pinsa = PinsA::new(dp.porta);
|
||||
let pinsb = PinsB::new(dp.portb);
|
||||
|
||||
@@ -41,8 +41,8 @@ fn main() -> ! {
|
||||
dp.sysconfig
|
||||
.tim_clk_enable()
|
||||
.modify(|r, w| w.bits(r.bits() | (1 << 0) | (1 << 1)));
|
||||
dp.irqsel.tim0(0).write(|w| w.bits(0x00));
|
||||
dp.irqsel.tim0(1).write(|w| w.bits(0x01));
|
||||
dp.irqsel.tim(0).write(|w| w.bits(0x00));
|
||||
dp.irqsel.tim(1).write(|w| w.bits(0x01));
|
||||
}
|
||||
|
||||
let sys_clk: Hertz = 50.MHz();
|
||||
|
||||
Reference in New Issue
Block a user