pwm_at91.c File Reference
PWM hardware-specific implementation. More...
#include "pwm_at91.h"
#include "hw/pwm_map.h"
#include <hw/hw_cpufreq.h>
#include "cfg/cfg_pwm.h"
#include <cfg/log.h>
#include <cfg/macros.h>
#include <cfg/debug.h>
#include <io/arm.h>
Go to the source code of this file.
Functions | |
| pwm_period_t | pwm_hw_getPeriod (PwmDev dev) |
| Get preiod from select channel. | |
| void | pwm_hw_setFrequency (PwmDev dev, uint32_t freq) |
| Set pwm waveform frequecy. | |
| void | pwm_hw_setDutyUnlock (PwmDev dev, uint16_t duty) |
| Set pwm duty cycle. | |
| void | pwm_hw_enable (PwmDev dev) |
| Enable select pwm channel. | |
| void | pwm_hw_disable (PwmDev dev) |
| Disable select pwm channel. | |
| void | pwm_hw_setPolarity (PwmDev dev, bool pol) |
| Set PWM polarity to select pwm channel. | |
| void | pwm_hw_init (void) |
| Init pwm. | |
Variables | |
| static PwmChannel | pwm_map [PWM_CNT] |
| Register structure for pwm driver. | |
Detailed Description
PWM hardware-specific implementation.
- Version:
- Id
- pwm_at91.c 2488 2009-04-10 17:52:12Z batt
Definition in file pwm_at91.c.
Function Documentation
| pwm_period_t pwm_hw_getPeriod | ( | PwmDev | dev | ) |
| void pwm_hw_setDutyUnlock | ( | PwmDev | dev, | |
| uint16_t | duty | |||
| ) |
| void pwm_hw_setFrequency | ( | PwmDev | dev, | |
| uint32_t | freq | |||
| ) |
Variable Documentation
PwmChannel pwm_map[PWM_CNT] [static] |
Register structure for pwm driver.
This array content all data and register pointer to manage pwm peripheral device.
Definition at line 61 of file pwm_at91.c.
