git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6880 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
gdisirio 2014-04-24 11:31:40 +00:00
parent d57fe5ccdf
commit 84cba6bb97
2 changed files with 4 additions and 2 deletions

View File

@ -118,8 +118,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

@ -89,6 +89,8 @@
*****************************************************************************
*** 2.7.0 ***
- FIX: Fixed invalid cast in PWM_FRACTION_TO_WIDTH() macro (bug #487)
(backported to 2.4.6 and 2.6.4).
- FIX: Fixed wrong STM32 TIM9 clock source in PWM and ICU drivers (bug #486)
(backported to 2.6.4).
- FIX: Fixed MMC_SPI driver block_addresses is not initialized after