Freescale Semiconductor Inc.
    Regional Technical Application Center

 

E:/PROJECTS/IOP/ADC Average/Src/ADC_Filter/ADC_Filter_Drv/src/Pit.c File Reference

This file handles all Pwm & Scheduler timebases. More...

#include "Pit.h"

Include dependency graph for Pit.c:


Functions

void vfnPit_Init (uint8_t u8PitChannel, uint32_t u32Period)
 Configure desired Pit channel to operate with a resolution
frequency of 0.5% from the original operation frequency,
Pit timer setup to generate the desired Pwm period and Pwm
parameters.
void vfnPit_Set_Callback_Fnc (Pit_CallbackType Callback_Fnc)
 Sets the function to which the emios interrupt shall
jump once interrupt occurs.
void vfnPIT_Disable_Channel (uint8_t u8PitChannel)
 Stops a particular PIT channel timer.
void vfnPit_Ch1_Isr (void)
 Handles the timing for the generation of all Pwm signals.

Variables

Pit_CallbackType Pit_CallBack_1 = NULL_PTR
Pit_CallbackType Pit_CallBack_2 = NULL_PTR
Pit_CallbackType Pit_CallBack_3 = NULL_PTR
Pit_CallbackType Pit_CallBack_4 = NULL_PTR

Detailed Description

This file handles all Pwm & Scheduler timebases.

Copyright (c) 2008 Freescale Semiconductor Freescale Confidential Proprietary

Author:
Freescale Semiconductor

Guadalajara Applications Laboratory RTAC Americas

R01160

Version:
0.1
Date:
5/23/2008

Function Documentation

void vfnPit_Ch1_Isr ( void   ) 

Handles the timing for the generation of all Pwm signals.

Author:
R01160
Parameters:
none 
Returns:
none
Warning:
IF USER DECIDE TO USE OTHER INTERRUPT VECTOR RATHER THAN VECTOR 149 (PIT CH1)
MUST BE MANDATORY TO DECLARE THIS DIFFERENT VECTOR INTO VECTOR TABLE.

void vfnPIT_Disable_Channel ( uint8_t  u8PitChannel  ) 

Stops a particular PIT channel timer.

Author:
R01160
Parameters:
PIT Channel
Returns:
none

Retrieves the current state of all PIT Channels

void vfnPit_Init ( uint8_t  u8PitChannel,
uint32_t  u32Period 
)

Configure desired Pit channel to operate with a resolution
frequency of 0.5% from the original operation frequency,
Pit timer setup to generate the desired Pwm period and Pwm
parameters.

Author:
R01160
Parameters:
Pit Channel to be used & Period Tick value
Returns:
none
Todo:
Warning:
Configured PIT channel when using this function will NOT be used
by another resource in the program flow, otherwise a wrong Pwm
frequency might be generated.

void vfnPit_Set_Callback_Fnc ( Pit_CallbackType  Callback_Fnc  ) 

Sets the function to which the emios interrupt shall
jump once interrupt occurs.

Author:
R01160
Parameters:
Emios_CallbackType - Callback type definition
Returns:
none
Warning:
This function will skip any null pointer parameter passed
as a input parameter.


Variable Documentation

Scheduler Callback type