Freescale Semiconductor Inc.
    Regional Technical Application Center

 

Main Page | Class List | Directories | File List | File Members | Related Pages

Pwm.h

Go to the documentation of this file.
00001 /****************************************************************************************/
00018 /****************************************************************************************/
00019 #ifndef _PWM_H_
00020   #define _PWM_H_
00021   
00022   #include "Pwm_Cfg.h"
00023   #include "Port.h"
00024   #include "Derivative.h"
00025   #include "Pit.h"  
00026   
00027 #if (PWM_ERROR_DETECT == ON)   /* If Pwm Error Layer Enabled, validate errors */ 
00028   #include "Pwm_ReportError.h"
00029 #endif  
00030 
00032 #define SET_33US_TIMEBASE    ((uint32_t)0x00000840)
00033 
00034  /*--------------------- Functions --------------------------*/
00035    void vfnPwm_Init(const Pwm_ChannelConfigType *PwmCfgPtr);  
00036    void vfnCoreInterruptHandling(uint8_t u8InterruptType);
00037    void vfnSetDuty_Cycle(uint8_t u8PwmChannel, uint32_t u32DutyCyle);
00038    void vfnSetPeriodAndDuty(uint8_t u8PwmChannel, uint32_t u32Period ,uint32_t u32DutyCyle);
00039    void Pwm_Generation_Fnc(void);
00040   
00041 #endif