Browse Source

Merge pull request #81 from pigrew/Systick_returns

systick returns, so should be marked as such.
trying.tmp
Daniel Egger 3 years ago committed by GitHub
parent
commit
22ad0dc0ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      examples/adc_values.rs
  2. 2
      examples/flash_systick.rs
  3. 2
      examples/flash_systick_fancier.rs

2
examples/adc_values.rs

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

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

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

Loading…
Cancel
Save