Functions | |
int | NutPwmInit (unsigned int clka, unsigned int clkb) |
int | NutPwmChannelInit (unsigned int channel_id, unsigned int mode, unsigned int duty, unsigned int period) |
System reset. | |
int | NutPwmStartChannel (unsigned int channel) |
int | NutPwmStopChannel (unsigned int channel) |
int | NutPwmSetPeriod (unsigned int channel, unsigned short period) |
int | NutPwmSetDutyCycle (unsigned int channel, unsigned short duty) |
int NutPwmInit | ( | unsigned int | clka, |
unsigned int | clkb | ||
) |
Configures PWM clocks A & B to run at the given frequencies.
clka | Desired clock A frequency (0 if not used). |
clkb | Desired clock B frequency (0 if not used). |
References NUT_HWCLK_PERIPHERAL_A, NUTASSERT, and NutClockGet.
int NutPwmChannelInit | ( | unsigned int | channel_id, |
unsigned int | mode, | ||
unsigned int | duty, | ||
unsigned int | period | ||
) |
System reset.
References GpioPinConfigSet(), and NUTASSERT.
int NutPwmStartChannel | ( | unsigned int | channel | ) |
References _BV.
int NutPwmStopChannel | ( | unsigned int | channel | ) |
References _BV.
int NutPwmSetPeriod | ( | unsigned int | channel, |
unsigned short | period | ||
) |
int NutPwmSetDutyCycle | ( | unsigned int | channel, |
unsigned short | duty | ||
) |