28#if (HAL_USE_PWM == TRUE) || defined(__DOXYGEN__)
52#if !defined(PLATFORM_PWM_USE_PWM1) || defined(__DOXYGEN__)
53#define PLATFORM_PWM_USE_PWM1 FALSE
155#if defined(PWM_DRIVER_EXT_FIELDS)
156 PWM_DRIVER_EXT_FIELDS
181#define pwm_lld_change_period(pwmp, period)
187#if (PLATFORM_PWM_USE_PWM1 == TRUE) && !defined(__DOXYGEN__)
void pwm_lld_disable_periodic_notification(PWMDriver *pwmp)
Disables the periodic activation edge notification.
#define PWM_CHANNELS
Number of PWM channels per PWM driver.
void pwm_lld_stop(PWMDriver *pwmp)
Deactivates the PWM peripheral.
uint32_t pwmcnt_t
Type of a PWM counter.
uint32_t pwmmode_t
Type of a PWM mode.
uint8_t pwmchannel_t
Type of a PWM channel.
void pwm_lld_disable_channel_notification(PWMDriver *pwmp, pwmchannel_t channel)
Disables a channel de-activation edge notification.
void pwm_lld_disable_channel(PWMDriver *pwmp, pwmchannel_t channel)
Disables a PWM channel and its notification.
void pwm_lld_init(void)
Low level PWM driver initialization.
void pwm_lld_start(PWMDriver *pwmp)
Configures and activates the PWM peripheral.
uint32_t pwmchnmsk_t
Type of a channels mask.
void pwm_lld_enable_channel(PWMDriver *pwmp, pwmchannel_t channel, pwmcnt_t width)
Enables a PWM channel.
void(* pwmcallback_t)(PWMDriver *pwmp)
Type of a PWM notification callback.
pwmstate_t
Driver state machine possible states.
void pwm_lld_enable_periodic_notification(PWMDriver *pwmp)
Enables the periodic activation edge notification.
void pwm_lld_enable_channel_notification(PWMDriver *pwmp, pwmchannel_t channel)
Enables a channel de-activation edge notification.
PWMDriver PWMD1
PWMD1 driver identifier.
Type of a PWM driver channel configuration structure.
pwmcallback_t callback
Channel callback pointer.
pwmmode_t mode
Channel active logic level.
Type of a PWM driver configuration structure.
pwmcallback_t callback
Periodic callback pointer.
PWMChannelConfig channels[PWM_CHANNELS]
Channels configurations.
uint32_t frequency
Timer clock in Hz.
pwmcnt_t period
PWM period in ticks.
Structure representing a PWM driver.
pwmcnt_t period
Current PWM period in ticks.
pwmchannel_t channels
Number of channels in this instance.
pwmchnmsk_t enabled
Mask of the enabled channels.
const PWMConfig * config
Current driver configuration data.
pwmstate_t state
Driver state.