Subversion Repositories FlightCtrl

Rev

Rev 2015 | Rev 2060 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2015 Rev 2052
Line 1... Line 1...
1
#ifndef _TIMER0_H
1
#ifndef _TIMER0_H
2
#define _TIMER0_H
2
#define _TIMER0_H
Line 3... Line 3...
3
 
3
 
Line -... Line 4...
-
 
4
#include <inttypes.h>
-
 
5
 
-
 
6
// Normally it is 20MHz/2048 = 9765.625 Hz
-
 
7
#define F_TIMER0IRQ ((float)F_CPU/2048.0)
-
 
8
#define MAINLOOP_DIVIDER 10
-
 
9
// Originally it is 488
4
#include <inttypes.h>
10
#define F_MAINLOOP (F_TIMER0IRQ/(2.0*MAINLOOP_DIVIDER))
5
 
11
 
6
#define BEEP_MODULATION_NONE 0xFFFF
12
#define BEEP_MODULATION_NONE 0xFFFF
7
#define BEEP_MODULATION_RCALARM 0x0C00
13
#define BEEP_MODULATION_RCALARM 0x0C00
8
#define BEEP_MODULATION_I2CALARM 0x0080
14
#define BEEP_MODULATION_I2CALARM 0x0080