aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-06-08 07:52:03 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-06-08 07:52:03 +0000
commitfad64409ba2a1ff1948578318a01dd0a49aeff4c (patch)
treeba8a789a6b16812a5f39cb97116bd71b0dbe86af /os
parentaef5278c9081ccbf0b5964bf1ff1951c75a09823 (diff)
downloadChibiOS-fad64409ba2a1ff1948578318a01dd0a49aeff4c.tar.gz
ChibiOS-fad64409ba2a1ff1948578318a01dd0a49aeff4c.tar.bz2
ChibiOS-fad64409ba2a1ff1948578318a01dd0a49aeff4c.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5827 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/templates/gpt_lld.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/os/hal/templates/gpt_lld.h b/os/hal/templates/gpt_lld.h
index f09963a31..13251eb47 100644
--- a/os/hal/templates/gpt_lld.h
+++ b/os/hal/templates/gpt_lld.h
@@ -108,6 +108,24 @@ struct GPTDriver {
/* Driver macros. */
/*===========================================================================*/
+/**
+ * @brief Changes the interval of GPT peripheral.
+ * @details This function changes the interval of a running GPT unit.
+ * @pre The GPT unit must have been activated using @p gptStart().
+ * @pre The GPT unit must have been running in continuous mode using
+ * @p gptStartContinuous().
+ * @post The GPT unit interval is changed to the new value.
+ * @note The function has effect at the next cycle start.
+ *
+ * @param[in] gptp pointer to a @p GPTDriver object
+ * @param[in] interval new cycle time in timer ticks
+ * @notapi
+ */
+#define gpt_lld_change_interval(gptp, interval) { \
+ (void)gptp; \
+ (void)interval; \
+}
+
/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/