Skip to content
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.

Commit

Permalink
Modify the K20 example to check the systick flag
Browse files Browse the repository at this point in the history
  • Loading branch information
bharrisau committed Jul 19, 2014
1 parent 630a509 commit 667ea06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/app_blink_k20.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ use zinc::hal::cortex_m4::systick;
/// Wait the given number of SysTick ticks
pub fn wait(ticks: u32) {
let mut n = ticks;
let mut t = systick::get_current();
// Reset the tick flag
systick::tick();
loop {
if systick::get_current() > t {
t = systick::get_current();
if systick::tick() {
n -= 1;
if n == 0 {
break;
Expand Down

21 comments on commit 667ea06

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from farcaller
at bharrisau@667ea06

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging bharrisau/zinc/systick = 667ea06 into auto

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bharrisau/zinc/systick = 667ea06 merged ok, testing candidate = d3a819d

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge sha a1c1d99 is stale.

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging bharrisau/zinc/systick = 667ea06 into auto

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bharrisau/zinc/systick = 667ea06 merged ok, testing candidate = f0f5267

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge sha 69483cb is stale.

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging bharrisau/zinc/systick = 667ea06 into auto

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bharrisau/zinc/systick = 667ea06 merged ok, testing candidate = 8f565de

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge sha f4b172a is stale.

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging bharrisau/zinc/systick = 667ea06 into auto

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bharrisau/zinc/systick = 667ea06 merged ok, testing candidate = 093373f

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge sha b22ca81 is stale.

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging bharrisau/zinc/systick = 667ea06 into auto

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bharrisau/zinc/systick = 667ea06 merged ok, testing candidate = aeede19

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge sha 9b20cd9 is stale.

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging bharrisau/zinc/systick = 667ea06 into auto

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bharrisau/zinc/systick = 667ea06 merged ok, testing candidate = 347d57a

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge sha 14d541a is stale.

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging bharrisau/zinc/systick = 667ea06 into auto

@hacknbot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bharrisau/zinc/systick = 667ea06 merged ok, testing candidate = dbb16bd

Please sign in to comment.