git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7297 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2014-09-21 11:34:24 +00:00
parent a9d482f0fc
commit 2788713570
1 changed files with 4 additions and 4 deletions

View File

@ -169,13 +169,13 @@ typedef void (*pwmcallback_t)(PWMDriver *pwmp);
* guaranteed.
*
* @param[in] pwmp pointer to a @p PWMDriver object
* @param[in] period new cycle time in ticks
* @param[in] value new cycle time in ticks
*
* @iclass
*/
#define pwmChangePeriodI(pwmp, period) { \
(pwmp)->period = (period); \
pwm_lld_change_period(pwmp, period); \
#define pwmChangePeriodI(pwmp, value) { \
(pwmp)->period = (value); \
pwm_lld_change_period(pwmp, value); \
}
/**