aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-06-24 14:45:24 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-06-24 14:45:24 -0400
commitac19671c33527c0f40b14e42f3c033cdbb808a79 (patch)
tree3bf02847860a11ad9f2a6ba41cf1ab2ffda7dbef
parentb08c0f74786fe871e7c64a77d19d2a66329f62a4 (diff)
downloadlibrambutan-ac19671c33527c0f40b14e42f3c033cdbb808a79.tar.gz
librambutan-ac19671c33527c0f40b14e42f3c033cdbb808a79.zip
systick.c: Updating systick_uptime_millis before handling user callback.
Thanks to x893 for the suggestion.
-rw-r--r--libmaple/systick.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmaple/systick.c b/libmaple/systick.c
index 5025328..1eb2117 100644
--- a/libmaple/systick.c
+++ b/libmaple/systick.c
@@ -79,8 +79,8 @@ void systick_attach_callback(void (*callback)(void)) {
*/
void __exc_systick(void) {
+ systick_uptime_millis++;
if (systick_user_callback) {
systick_user_callback();
}
- systick_uptime_millis++;
}