Subversion Repositories FlightCtrl

Rev

Rev 1908 | Rev 2052 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1612 dongfang 1
#ifndef _TIMER0_H
2
#define _TIMER0_H
3
 
4
#include <inttypes.h>
5
 
1908 - 6
#define BEEP_MODULATION_NONE 0xFFFF
7
#define BEEP_MODULATION_RCALARM 0x0C00
8
#define BEEP_MODULATION_I2CALARM 0x0080
9
#define BEEP_MODULATION_BATTERYALARM 0x0300
10
#define BEEP_MODULATION_EEPROMALARM 0x0007
11
 
1887 - 12
extern volatile uint16_t millisecondsCount;
13
extern volatile uint8_t  runFlightControl;
1612 dongfang 14
extern volatile uint16_t cntKompass;
1887 - 15
extern volatile uint16_t beepModulation;
16
extern volatile uint16_t beepTime;
1612 dongfang 17
#ifdef USE_NAVICTRL
18
extern volatile uint8_t SendSPI;
19
#endif
20
 
21
extern void timer0_init(void);
1887 - 22
extern void delay_ms(uint16_t w);
1967 - 23
extern void delay_ms_with_adc_measurement(uint16_t w);
1887 - 24
extern uint16_t setDelay(uint16_t t);
25
extern int8_t checkDelay(uint16_t t);
1612 dongfang 26
 
27
#endif //_TIMER0_H