mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-01 16:04:33 +01:00
Support RP2040 PAC v0.5 in rtic-monotonics
This commit is contained in:
parent
0228350ef4
commit
5b2d722446
3 changed files with 5 additions and 4 deletions
|
@ -9,6 +9,7 @@ For each category, *Added*, *Changed*, *Fixed* add new entries at the top!
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
- RP2040 PAC 0.5 support
|
||||||
- nRF52xxx, nRF9160, nRF5340 Timer and RTC monotonics
|
- nRF52xxx, nRF9160, nRF5340 Timer and RTC monotonics
|
||||||
- Interrupt tokens for `Systick` and `rp2040` to make sure an interrupt handler exists
|
- Interrupt tokens for `Systick` and `rp2040` to make sure an interrupt handler exists
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ cortex-m = { version = "0.7.6", optional = true }
|
||||||
critical-section = { version = "1", optional = true }
|
critical-section = { version = "1", optional = true }
|
||||||
|
|
||||||
# RP2040
|
# RP2040
|
||||||
rp2040-pac = { version = ">=0.2.0,<0.5", optional = true }
|
rp2040-pac = { version = ">=0.2.0,<0.6", optional = true }
|
||||||
|
|
||||||
# nRF52
|
# nRF52
|
||||||
nrf52810-pac = { version = "0.12.2", optional = true }
|
nrf52810-pac = { version = "0.12.2", optional = true }
|
||||||
|
|
|
@ -43,7 +43,7 @@ impl Timer {
|
||||||
) {
|
) {
|
||||||
resets.reset.modify(|_, w| w.timer().clear_bit());
|
resets.reset.modify(|_, w| w.timer().clear_bit());
|
||||||
while resets.reset_done.read().timer().bit_is_clear() {}
|
while resets.reset_done.read().timer().bit_is_clear() {}
|
||||||
timer.inte.modify(|_, w| w.alarm_0().set_bit());
|
timer.inte.modify(|_, w| w.alarm_0().bit(true));
|
||||||
|
|
||||||
TIMER_QUEUE.initialize(Self {});
|
TIMER_QUEUE.initialize(Self {});
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ impl Monotonic for Timer {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn clear_compare_flag() {
|
fn clear_compare_flag() {
|
||||||
Self::timer().intr.modify(|_, w| w.alarm_0().set_bit());
|
Self::timer().intr.modify(|_, w| w.alarm_0().bit(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
fn pend_interrupt() {
|
fn pend_interrupt() {
|
||||||
|
|
Loading…
Reference in a new issue