diff --git a/Cargo.lock b/Cargo.lock index d3d4b5bb..96fb8e09 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -298,9 +298,9 @@ dependencies = [ [[package]] name = "cortex-m-rtic" -version = "1.0.0" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "daae9c453d0d5b467ebcdeae7aba537cb45a7de899930ad09f01c8dc42aa531f" +checksum = "c6b82f1c39acd6c3a35c2013b6110c20f5bc534522791fabadeed49ccada2dce" dependencies = [ "bare-metal 1.0.0", "cortex-m 0.7.6", @@ -313,9 +313,9 @@ dependencies = [ [[package]] name = "cortex-m-rtic-macros" -version = "1.0.0" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ba355d1639cf8df7c0658f01bd8952d11d49a029309118787eb54afc47a6cf8" +checksum = "9e8e9645ef54bec1cf70ac33e9bf9566e6507ab5b41ae6baf3735662194e8607" dependencies = [ "proc-macro-error", "proc-macro2", @@ -1036,9 +1036,9 @@ checksum = "fb8b0b822d1a366470b9cea83a1d4e788392db763539dc4ba022bcc787fece82" [[package]] name = "rtic-syntax" -version = "1.0.0" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24b149ff3177daeee442bb81ef7867d20d3c1ffea8a0a94e46e0e4b876ec4be2" +checksum = "3ad3ae243dd8d0a1b064615f664d4fa7e63929939074c564cbe5efdc4c503065" dependencies = [ "indexmap", "proc-macro2", diff --git a/Cargo.toml b/Cargo.toml index f483edcc..515a771f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ exclude = [ [dependencies] cortex-m = "0.7.6" cortex-m-rt = "0.6.10" -cortex-m-rtic = "1.0" +cortex-m-rtic = "1.1" enum-iterator = "0.6.0" mono-clock = "0.1" systick-monotonic = "1.0.0" diff --git a/src/hardware/platform.rs b/src/hardware/platform.rs index 8985b69a..df7a38a6 100644 --- a/src/hardware/platform.rs +++ b/src/hardware/platform.rs @@ -119,7 +119,7 @@ pub fn clear_reset_flags() { /// Reset the device to the internal DFU bootloader. pub fn reset_to_dfu_bootloader() { // Disable the SysTick peripheral. - let systick = unsafe { &*cortex_m::peripheral::SYST::ptr() }; + let systick = unsafe { &*cortex_m::peripheral::SYST::PTR }; unsafe { systick.csr.write(0); systick.rvr.write(0);