Freescale Semiconductor Inc.
    Regional Technical Application Center

 

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

Pit.c File Reference

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

#include "Pit.h"

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 Pit_Pwm_Generation_Isr (void)
 Handles the timing for the generation of all Pwm signals.

Variables

Pit_CallbackType Pit_Pwm_CallBack = 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 Pit_Pwm_Generation_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_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

Pit_CallbackType Pit_Pwm_CallBack = NULL_PTR
 

Scheduler Callback type