aboutsummaryrefslogtreecommitdiff
path: root/libmaple
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-05-17 17:51:03 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-05-19 15:03:21 -0400
commit6e96b5b6de7dc9c919f34c3d300b560497e18526 (patch)
treeb1cf0a4a52cda85ba51436ec36c7a474972b723a /libmaple
parent2e14155e8a415d87544acfc53b5fa50150859088 (diff)
delay.h: Adding Doxygen comments for the file and delay_us().
Diffstat (limited to 'libmaple')
-rw-r--r--libmaple/delay.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/libmaple/delay.h b/libmaple/delay.h
index 5372ac1..03d5c1e 100644
--- a/libmaple/delay.h
+++ b/libmaple/delay.h
@@ -1,10 +1,20 @@
/**
- * @brief Delay implementation
+ * @file delay.h
+ * @brief Delay implementation
*/
#ifndef _DELAY_H_
#define _DELAY_H_
+/**
+ * @brief Delay the given number of microseconds.
+ *
+ * Note that this function currently assumes you are on a LeafLabs
+ * board, and will only work properly if you follow the LeafLabs RCC
+ * configuration.
+ *
+ * @param us Number of microseconds to delay.
+ */
static inline void delay_us(uint32 us) {
/* TODO this makes unwarranted assumptions about the RCC
* config; add a hook so users can make their own decisions. */