Subversion Repositories FlightCtrl

Rev

Rev 2248 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2248 - 1
/*****************************************************************************************************************************
2
* File:                 timer0.h
3
* Purpose:              header of timer0.c
4
*****************************************************************************************************************************/
5
#ifndef _TIMER0
6
 #define _TIMER0
7
 
8
#define TIMER_TEILER        CK8
9
#define TIMER_RELOAD_VALUE  250
10
#define HEF4017R_ON     PORTC |=  (1<<PORTC6)
11
#define HEF4017R_OFF    PORTC &= ~(1<<PORTC6)
12
 
13
void Timer_Init(void);
14
void TIMER2_Init(void);
15
void Delay_ms(unsigned int);
16
void Delay_ms_Mess(unsigned int);
17
unsigned int SetDelay (unsigned int t);
18
char CheckDelay (unsigned int t);
19
 
20
extern volatile unsigned int CountMilliseconds;
21
extern volatile unsigned char UpdateMotor;
22
extern volatile unsigned int beeptime;
23
extern volatile unsigned int cntKompass;
24
extern unsigned int BeepMuster;
25
extern volatile unsigned char SendSPI, ServoActive;
26
extern volatile int16_t ServoNickValue;
27
extern volatile int16_t ServoRollValue;
28
 
29
#endif 
30
//*** EOF: _TIMER0_H ***********************************************************************************************************