diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-12-16 15:48:50 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-12-16 15:48:50 +0000 |
commit | 494cd0f0953d131bb31dcda508abfbd4eaef9899 (patch) | |
tree | f6b799556a1b75cd6de792edf3ebe9cabef8fb7d /os/hal/platforms/STM32/pwm_lld.h | |
parent | ba37ee4f4b32aa3dc67b80ce09cbda7c5a449f4f (diff) | |
download | ChibiOS-494cd0f0953d131bb31dcda508abfbd4eaef9899.tar.gz ChibiOS-494cd0f0953d131bb31dcda508abfbd4eaef9899.tar.bz2 ChibiOS-494cd0f0953d131bb31dcda508abfbd4eaef9899.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1425 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/pwm_lld.h')
-rw-r--r-- | os/hal/platforms/STM32/pwm_lld.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32/pwm_lld.h b/os/hal/platforms/STM32/pwm_lld.h index 879012451..a48a93619 100644 --- a/os/hal/platforms/STM32/pwm_lld.h +++ b/os/hal/platforms/STM32/pwm_lld.h @@ -85,6 +85,24 @@ typedef struct { */
pwmcallback_t pc_callback;
/* End of the mandatory fields.*/
+ /**
+ * @brief TIM PSC (pre-scaler) register initialization data.
+ */
+ uint16_t pc_psc;
+ /**
+ * @brief TIM ARR (auto-reload) register initialization data.
+ */
+ uint16_t pc_arr;
+ /**
+ * @brief TIM CR1 register initialization data.
+ * @note The value of this field should normally be equal to zero.
+ */
+ uint16_t pc_cr1;
+ /**
+ * @brief TIM CR2 register initialization data.
+ * @note The value of this field should normally be equal to zero.
+ */
+ uint16_t pc_cr2;
} PWMConfig;
/**
@@ -126,6 +144,10 @@ typedef struct { * @brief Bit mask of the enabled channels. */
uint32_t pd_enabled_channels;
+ /**
+ * @brief Pointer to the TIMx registers block. + */
+ TIM_TypeDef *pd_tim;
} PWMDriver;
/*===========================================================================*/
|