diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-11-21 12:28:46 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-11-21 12:28:46 +0000 |
commit | af0a2cee78dd8dfd173e28b814ba757b9ef2022c (patch) | |
tree | 94a8216d797144cfe3804a48eb1512215d97d342 /os/hal/platforms | |
parent | 66c5a970fa52e53e643ef1f3365b4d30debd5bfe (diff) | |
download | ChibiOS-af0a2cee78dd8dfd173e28b814ba757b9ef2022c.tar.gz ChibiOS-af0a2cee78dd8dfd173e28b814ba757b9ef2022c.tar.bz2 ChibiOS-af0a2cee78dd8dfd173e28b814ba757b9ef2022c.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2407 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms')
-rw-r--r-- | os/hal/platforms/STM32/pwm_lld.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32/pwm_lld.h b/os/hal/platforms/STM32/pwm_lld.h index a1a6c905e..194e60b48 100644 --- a/os/hal/platforms/STM32/pwm_lld.h +++ b/os/hal/platforms/STM32/pwm_lld.h @@ -262,12 +262,12 @@ struct PWMDriver { * @note The calculated value must fit into an unsigned 16 bits integer.
*
* @param[in] pwmclk PWM clock frequency in cycles
- * @param[in] pwmperiod PWM cycle period in microseconds
+ * @param[in] pwmperiod PWM cycle period in nanoseconds
* @return The value to be stored in the @p pc_arr field of the
* @p PWMConfig structure.
*/
#define PWM_COMPUTE_ARR(pwmclk, pwmperiod) \
- ((uint16_t)(((pwmclk) / (1000000 / (pwmperiod))) - 1))
+ ((uint16_t)(((pwmclk) / (1000000000 / (pwmperiod))) - 1))
/**
* @brief Converts from fraction to pulse width.
|