diff options
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;
/*===========================================================================*/
|