From 51d7c76ee81bfa6a46de6e30d75a2df3bc9aacd9 Mon Sep 17 00:00:00 2001 From: Nathan Conrad Date: Fri, 27 Dec 2019 14:23:29 -0500 Subject: [PATCH] systick returns, so should be marked as such. --- examples/adc_values.rs | 2 +- examples/flash_systick.rs | 2 +- examples/flash_systick_fancier.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/adc_values.rs b/examples/adc_values.rs index a481970..d28b988 100644 --- a/examples/adc_values.rs +++ b/examples/adc_values.rs @@ -70,7 +70,7 @@ fn main() -> ! { } #[exception] -fn SysTick() -> ! { +fn SysTick() { use core::ops::DerefMut; // Enter critical section diff --git a/examples/flash_systick.rs b/examples/flash_systick.rs index 104a581..89cafb9 100644 --- a/examples/flash_systick.rs +++ b/examples/flash_systick.rs @@ -57,7 +57,7 @@ fn main() -> ! { // Define an exception handler, i.e. function to call when exception occurs. Here, if our SysTick // timer generates an exception the following handler will be called #[exception] -fn SysTick() -> ! { +fn SysTick() { // Exception handler state variable static mut STATE: u8 = 1; diff --git a/examples/flash_systick_fancier.rs b/examples/flash_systick_fancier.rs index 0fd3771..4413693 100644 --- a/examples/flash_systick_fancier.rs +++ b/examples/flash_systick_fancier.rs @@ -60,7 +60,7 @@ fn main() -> ! { // Define an exception handler, i.e. function to call when exception occurs. Here, if our SysTick // timer generates an exception the following handler will be called #[exception] -fn SysTick() -> ! { +fn SysTick() { // Our moved LED pin static mut LED: Option = None;