28 #if (HAL_USE_PWM == TRUE) || defined(__DOXYGEN__) 37 #define PWM_CHANNELS 4 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__) const PWMConfig * config
Current driver configuration data.
pwmcnt_t period
PWM period in ticks.
void pwm_lld_enable_periodic_notification(PWMDriver *pwmp)
Enables the periodic activation edge notification.
uint32_t pwmmode_t
Type of a PWM mode.
pwmstate_t state
Driver state.
void pwm_lld_disable_channel_notification(PWMDriver *pwmp, pwmchannel_t channel)
Disables a channel de-activation edge notification.
pwmchnmsk_t enabled
Mask of the enabled channels.
Type of a PWM driver configuration structure.
uint32_t pwmcnt_t
Type of a PWM counter.
pwmmode_t mode
Channel active logic level.
pwmcallback_t callback
Channel callback pointer.
pwmchannel_t channels
Number of channels in this instance.
pwmstate_t
Driver state machine possible states.
pwmcallback_t callback
Periodic callback pointer.
Structure representing a PWM driver.
void pwm_lld_enable_channel(PWMDriver *pwmp, pwmchannel_t channel, pwmcnt_t width)
Enables a PWM channel.
uint32_t pwmchnmsk_t
Type of a channels mask.
void pwm_lld_disable_channel(PWMDriver *pwmp, pwmchannel_t channel)
Disables a PWM channel and its notification.
void pwm_lld_enable_channel_notification(PWMDriver *pwmp, pwmchannel_t channel)
Enables a channel de-activation edge notification.
void pwm_lld_disable_periodic_notification(PWMDriver *pwmp)
Disables the periodic activation edge notification.
PWMDriver PWMD1
PWMD1 driver identifier.
void pwm_lld_stop(PWMDriver *pwmp)
Deactivates the PWM peripheral.
void pwm_lld_start(PWMDriver *pwmp)
Configures and activates the PWM peripheral.
void(* pwmcallback_t)(PWMDriver *pwmp)
Type of a PWM notification callback.
uint8_t pwmchannel_t
Type of a PWM channel.
uint32_t frequency
Timer clock in Hz.
void pwm_lld_init(void)
Low level PWM driver initialization.
Type of a PWM driver channel configuration structure.
pwmcnt_t period
Current PWM period in ticks.
#define PWM_CHANNELS
Number of PWM channels per PWM driver.