git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5827 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
aef5278c90
commit
fad64409ba
|
@ -108,6 +108,24 @@ struct GPTDriver {
|
||||||
/* Driver macros. */
|
/* 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. */
|
/* External declarations. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
Loading…
Reference in New Issue