From 6c06df1ca4227bc47414a3823bab8d49955b1226 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Tue, 17 May 2011 17:51:03 -0400 Subject: delay.h: Adding Doxygen comments for the file and delay_us(). --- libmaple/delay.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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. */ -- cgit v1.2.3