/**
 * Copyright (c) 2007, Freescale Semiconductor
 * Freescale Confidential Proprietary
 *
 * File name   : RTIconfig.c
 * Project name: VKSP Software Library
 *
 * Author      : Ioseph Martinez
 * Department  : Go To Market AUTO - RTAC Americas
 *
 * Description : VKSP Transmitter RTI Initialization
 *               
 * History     :
 * 14/Jan/2008  : Version 0.1     
 */
 
#include "RTIconfig.h"

void initRTI(void){
  /* Base is set to: 1024ms to lower the Power consumption */
  SRTISC = 0x57;  
}

interrupt void RTIinterrupt(void)
{
  SRTISC_RTIACK = 1;             /* clear RTIF bit */
  
  InitPort();
#ifdef DEBUG_MODE  
  PTAD_PTAD4 ^= 0x01;
#endif    
  vfnVkspTx_UpdateVariableKey();
}