git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_2.4.x@6881 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
gdisirio 2014-04-24 11:31:48 +00:00
parent a1e04f63cb
commit 0628036745
2 changed files with 3 additions and 2 deletions

View File

@ -125,8 +125,8 @@ typedef void (*pwmcallback_t)(PWMDriver *pwmp);
* @api
*/
#define PWM_FRACTION_TO_WIDTH(pwmp, denominator, numerator) \
((uint16_t)((((uint32_t)(pwmp)->period) * \
(uint32_t)(numerator)) / (uint32_t)(denominator)))
((pwmcnt_t)((((pwmcnt_t)(pwmp)->period) * \
(pwmcnt_t)(numerator)) / (pwmcnt_t)(denominator)))
/**
* @brief Converts from degrees to pulse width.

View File

@ -79,6 +79,7 @@
*****************************************************************************
*** 2.4.6 ***
- FIX: Fixed invalid cast in PWM_FRACTION_TO_WIDTH() macro (bug #487).
- FIX: Fixed spurious callback in ICU driver (bug #461).
- FIX: Fixed wrong vector names for STM32Lxx.
- FIX: Fixed wrong MCO2 check in STM32F4xx HAL driver (bug #447).