timer1_ovf_isr.c

Go to the documentation of this file.
00001 /*
00002 **
00003 ****************************************************************************
00004 **
00005 **
00006 **             Copyright (c) 2005 - Atmel Corporation
00007 **             Proprietaty Information
00008 **
00009 ** Project     : AT90CAN128 window lift
00010 ** Module      : TIMER0 OVERFLOW SUBROUTINE
00011 ** Description : Module
00012 **
00013 ** Version :     Date:         Author:      Comment:
00014 **    1.0        June.2005    F.G.          Creation
00015 **
00016 **
00017 **
00018 **
00019 **              The following Fuses should be set:-
00020 **
00021 **
00022 **
00023 ** LICENSE -
00024 **
00025 ** ATMEL - 2005
00026 ** All software programs are provided 'as is' without warranty of any kind:
00027 ** Atmel does not state the suitability of the provided materials for any
00028 ** purpose. Atmel hereby disclaim all warranties and conditions with regard
00029 ** to the provided software, including all implied warranties, fitness for
00030 ** a particular purpose, title and non-infringement.In no event will Atmel
00031 ** be liable for any indirect or consequential damages or any damages
00032 ** whatsoever resulting from the usage of the software program.
00033 ****************************************************************************
00034 **
00035 */
00036 
00037 #include "config.h"
00038 #include "timer1_ovf_isr.h"
00039 
00040 U8 save_k=1;
00041 
00042 #if defined(__ICCAVR__)                       // IAR COMPILER USED
00043   #pragma vector=TIMER1_OVF_vect
00044   __interrupt void TIMER1_OVF(void)
00045 #elif defined (__AVR__)                       // GCC Compiler is being used
00046   ISR(TIMER1_OVF_vect)
00047 #endif
00048 {
00049   if (save_k==0)
00050     save_k=2;         // flag : parameters backup is required
00051   SET_MOTOR_OFF();    // turn off FET when timeout: motor stop
00052   SET_RELAY_OFF();    // Release Relay Coils
00053 }
00054 

Generated on Mon May 28 20:26:50 2007 for WINDOWLIFTLIBRARY by  doxygen 1.4.7