File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,8 @@ typedef void (*pwmcallback_t)(PWMDriver *pwmp);
118
118
* @api
119
119
*/
120
120
#define PWM_FRACTION_TO_WIDTH (pwmp , denominator , numerator ) \
121
- ((uint16_t )((((uint32_t )(pwmp)->period) * \
122
- (uint32_t )(numerator)) / (uint32_t )(denominator)))
121
+ ((pwmcnt_t )((((pwmcnt_t )(pwmp)->period) * \
122
+ (pwmcnt_t )(numerator)) / (pwmcnt_t )(denominator)))
123
123
124
124
/**
125
125
* @brief Converts from degrees to pulse width.
Original file line number Diff line number Diff line change 89
89
*****************************************************************************
90
90
91
91
*** 2.7.0 ***
92
+ - FIX: Fixed invalid cast in PWM_FRACTION_TO_WIDTH() macro (bug #487)
93
+ (backported to 2.4.6 and 2.6.4).
92
94
- FIX: Fixed wrong STM32 TIM9 clock source in PWM and ICU drivers (bug #486)
93
95
(backported to 2.6.4).
94
96
- FIX: Fixed MMC_SPI driver block_addresses is not initialized after
You can’t perform that action at this time.
0 commit comments