systick returns, so should be marked as such.

This commit is contained in:
Nathan Conrad 2019-12-27 14:23:29 -05:00
parent 31b63ed92d
commit 51d7c76ee8
3 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ fn main() -> ! {
}
#[exception]
fn SysTick() -> ! {
fn SysTick() {
use core::ops::DerefMut;
// Enter critical section

View File

@ -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;

View File

@ -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<LEDPIN> = None;