aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-06-24 14:37:54 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-06-24 14:37:54 -0400
commit1a825f8a475f0b10c5c528cedd6c930a2f248255 (patch)
tree1f84b59ed38561b3964c881cfef67d7c556c78c3 /libmaple
parente4a791ad5673b86ab30f79d2347fe4ae3b8ef072 (diff)
downloadlibrambutan-1a825f8a475f0b10c5c528cedd6c930a2f248255.tar.gz
librambutan-1a825f8a475f0b10c5c528cedd6c930a2f248255.zip
Make FreeRTOS changes comply with the coding standard.
Don't modify the core FreeRTOS code; only change source that's specific to libmaple.
Diffstat (limited to 'libmaple')
-rw-r--r--libmaple/systick.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libmaple/systick.c b/libmaple/systick.c
index 388f7aa..5025328 100644
--- a/libmaple/systick.c
+++ b/libmaple/systick.c
@@ -66,7 +66,9 @@ void systick_enable() {
}
/**
- * Attach a callback called each ms.
+ * @brief Attach a callback to be called from the SysTick exception handler.
+ *
+ * To detach a callback, call this function again with a null argument.
*/
void systick_attach_callback(void (*callback)(void)) {
systick_user_callback = callback;
@@ -77,7 +79,7 @@ void systick_attach_callback(void (*callback)(void)) {
*/
void __exc_systick(void) {
- if (systick_user_callback) {
+ if (systick_user_callback) {
systick_user_callback();
}
systick_uptime_millis++;