pwm_at91.h File Reference

PWM hardware-specific definition. More...

#include <hw/pwm_map.h>
#include <cfg/compiler.h>
#include <cfg/macros.h>
#include <io/arm.h>
#include "appconfig.h"

Go to the source code of this file.


Data Structures

struct  PwmChannel
 Structur definition for pwm driver. More...

Typedefs

typedef uint16_t pwm_period_t
 Type definition for pwm period.

Functions

void pwm_hw_init (void)
 Init pwm.
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_disable (PwmDev dev)
 Disable select pwm channel.
void pwm_hw_enable (PwmDev dev)
 Enable select pwm channel.
pwm_period_t pwm_hw_getPeriod (PwmDev dev)
 Get preiod from select channel.

Detailed Description

PWM hardware-specific definition.

Version:
Id
pwm_at91.h 1235 2008-04-30 13:56:21Z asterix

Author:
Daniele Basile <asterix@develer.com>

Definition in file pwm_at91.h.


Function Documentation

pwm_period_t pwm_hw_getPeriod ( PwmDev  dev  ) 

Get preiod from select channel.

dev channel

Definition at line 98 of file pwm_at91.c.

void pwm_hw_setDutyUnlock ( PwmDev  dev,
uint16_t  duty 
)

Set pwm duty cycle.

duty value 0 - 2^16

Definition at line 137 of file pwm_at91.c.

void pwm_hw_setFrequency ( PwmDev  dev,
uint32_t  freq 
)

Set pwm waveform frequecy.

freq in Hz

Definition at line 108 of file pwm_at91.c.