ChibiOS 21.11.4
hal_pwm.c File Reference

PWM Driver code. More...

#include "hal.h"

Go to the source code of this file.

Functions

void pwmInit (void)
 PWM Driver initialization.
void pwmObjectInit (PWMDriver *pwmp)
 Initializes the standard part of a PWMDriver structure.
msg_t pwmStart (PWMDriver *pwmp, const PWMConfig *config)
 Configures and activates the PWM peripheral.
void pwmStop (PWMDriver *pwmp)
 Deactivates the PWM peripheral.
void pwmChangePeriod (PWMDriver *pwmp, pwmcnt_t period)
 Changes the period the PWM peripheral.
void pwmEnableChannel (PWMDriver *pwmp, pwmchannel_t channel, pwmcnt_t width)
 Enables a PWM channel.
void pwmDisableChannel (PWMDriver *pwmp, pwmchannel_t channel)
 Disables a PWM channel and its notification.
void pwmEnablePeriodicNotification (PWMDriver *pwmp)
 Enables the periodic activation edge notification.
void pwmDisablePeriodicNotification (PWMDriver *pwmp)
 Disables the periodic activation edge notification.
void pwmEnableChannelNotification (PWMDriver *pwmp, pwmchannel_t channel)
 Enables a channel de-activation edge notification.
void pwmDisableChannelNotification (PWMDriver *pwmp, pwmchannel_t channel)
 Disables a channel de-activation edge notification.

Detailed Description

PWM Driver code.

Definition in file hal_pwm.c.