From 867c7c95aa67ea1f19286c3593500214101bacd9 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 5 Sep 2013 09:01:21 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6262 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/include/chvt.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'os/rt/include') diff --git a/os/rt/include/chvt.h b/os/rt/include/chvt.h index d4948f1d6..447c4deee 100644 --- a/os/rt/include/chvt.h +++ b/os/rt/include/chvt.h @@ -257,7 +257,7 @@ static inline bool chVTIsSystemTimeWithin(systime_t start, systime_t end) { /** * @brief Returns @p true if the specified timer is armed. * @pre The timer must have been initialized using @p chVTObjectInit() - * or @p chVTSetI() (or @p chVTSetI() variants). + * or @p chVTDoSetI(). * * @param[in] vtp the @p virtual_timer_t structure pointer * @return true if the timer is armed. @@ -274,6 +274,8 @@ static inline bool chVTIsArmedI(virtual_timer_t *vtp) { /** * @brief Disables a Virtual Timer. * @note The timer is first checked and disabled only if armed. + * @pre The timer must have been initialized using @p chVTObjectInit() + * or @p chVTDoSetI(). * * @param[in] vtp the @p virtual_timer_t structure pointer * @@ -288,6 +290,8 @@ static inline void chVTResetI(virtual_timer_t *vtp) { /** * @brief Disables a Virtual Timer. * @note The timer is first checked and disabled only if armed. + * @pre The timer must have been initialized using @p chVTObjectInit() + * or @p chVTDoSetI(). * * @param[in] vtp the @p virtual_timer_t structure pointer * @@ -304,6 +308,8 @@ static inline void chVTReset(virtual_timer_t *vtp) { * @brief Enables a virtual timer. * @details If the virtual timer was already enabled then it is re-enabled * using the new parameters. + * @pre The timer must have been initialized using @p chVTObjectInit() + * or @p chVTDoSetI(). * * @param[in] vtp the @p virtual_timer_t structure pointer * @param[in] delay the number of ticks before the operation timeouts. @@ -326,6 +332,8 @@ static inline void chVTSetI(virtual_timer_t *vtp, systime_t delay, * @brief Enables a virtual timer. * @details If the virtual timer was already enabled then it is re-enabled * using the new parameters. + * @pre The timer must have been initialized using @p chVTObjectInit() + * or @p chVTDoSetI(). * * @param[in] vtp the @p virtual_timer_t structure pointer * @param[in] delay the number of ticks before the operation timeouts. -- cgit v1.2.3