diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-09-21 11:42:29 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-09-21 11:42:29 +0000 |
commit | f15f3af02d6fad2fca9d582a192d77f351d85b38 (patch) | |
tree | b2dc5fea1c7a55751f73b382b2ba2f727ea782ef /os/hal/ports/STM32/LLD/TIMv1/pwm_lld.h | |
parent | 278871357081b36670bea91eb09e537054c71cac (diff) | |
download | ChibiOS-f15f3af02d6fad2fca9d582a192d77f351d85b38.tar.gz ChibiOS-f15f3af02d6fad2fca9d582a192d77f351d85b38.tar.bz2 ChibiOS-f15f3af02d6fad2fca9d582a192d77f351d85b38.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7298 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/LLD/TIMv1/pwm_lld.h')
-rw-r--r-- | os/hal/ports/STM32/LLD/TIMv1/pwm_lld.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/LLD/TIMv1/pwm_lld.h b/os/hal/ports/STM32/LLD/TIMv1/pwm_lld.h index 5b54847fb..12149f2a8 100644 --- a/os/hal/ports/STM32/LLD/TIMv1/pwm_lld.h +++ b/os/hal/ports/STM32/LLD/TIMv1/pwm_lld.h @@ -305,7 +305,7 @@ typedef uint32_t pwmchnmsk_t; /**
* @brief Type of a PWM counter.
*/
-typedef uint16_t pwmcnt_t;
+typedef uint32_t pwmcnt_t;
/**
* @brief Type of a PWM driver channel configuration structure.
@@ -430,7 +430,7 @@ struct PWMDriver { * @notapi
*/
#define pwm_lld_change_period(pwmp, period) \
- ((pwmp)->tim->ARR = (uint16_t)((period) - 1))
+ ((pwmp)->tim->ARR = ((period) - 1))
/*===========================================================================*/
/* External declarations. */
|