00001 /* 00002 ** 00003 **************************************************************************** 00004 ** 00005 ** 00006 ** Copyright (c) 2005 - Atmel Corporation 00007 ** Proprietary Information 00008 ** 00009 ** Project : AT90CAN128 / ATmega88 / AT90PWM2 window-lift anti-pinch 00010 ** Module : hall_sensor_ISR.h (Library) 00011 ** Description : Module, interrupt subroutine 00012 ** 00013 ** 00014 ** 00015 ** Version : Date: Author: Comment: 00016 ** 1.0 June.2005 F.G. Creation 00017 ** 1.1 July.2006 F.G. Adaptability Improvements 00018 ** 00019 ** Assumes 8MHz internal oscillator 00020 ** 00021 ** 00022 ** 00023 ** 00024 ** 00025 ** LICENSE - 00026 ** 00027 ** ATMEL - 2005 00028 ** All software programs are provided 'as is' without warranty of any kind: 00029 ** Atmel does not state the suitability of the provided materials for any 00030 ** purpose. Atmel hereby disclaim all warranties and conditions with regard 00031 ** to the provided software, including all implied warranties, fitness for 00032 ** a particular purpose, title and non-infringement.In no event will Atmel 00033 ** be liable for any indirect or consequential damages or any damages 00034 ** whatsoever resulting from the usage of the software program. 00035 **************************************************************************** 00036 ** 00037 */ 00038 00039 #ifndef _HALL_SENSOR_ISR 00040 #define _HALL_SENSOR_ISR 00041 00042 /*_____ I N C L U D E S ______________________________________________________*/ 00043 00044 #include "config.h" 00045 00046 /*_____ T Y P E D E F - D E C L A R A T I O N ________________________________*/ 00047 00048 /*_____ P R O T O T Y P E S - D E C L A R A T I O N __________________________*/ 00049 00051 U16 get_position(void); 00052 00054 void put_position(U16); 00055 00058 signed int get_hall_delta_period(void); 00059 00060 /*_____ G L O B A L S ________________________________________________________*/ 00061 00062 // Direction detected using hall sensor 00063 // Range : [DOWNWARD, UPWARD] 00064 extern U8 hall_direction; 00065 00066 #endif //_HALL_SENSOR_ISR 00067
1.4.7