summaryrefslogtreecommitdiffstats
path: root/pressure_control/firmware/calibration.h
blob: eb2f532e3c7eb63ee5cc678f7e390c6f05909c9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef CALIBRATION_H_
#define CALIBRATION_H_

/****************************************************************************
 * Microcontroller CPU speed calibration                                    *
 ****************************************************************************/

/* CPU frequency in HZ */
#define CPU_HZ			16000000
/* 1ms timer calibration */
#define DELAY_1MS_TIMERFREQ	(1 << CS01) /* == CPU_FREQ/8 */
#define DELAY_1MS_LOOP		80
#define DELAY_1MS_LOOP_TIMES	25
/* 1us delayloop calibration */
#define DELAY_1US_LOOP		4


#endif /* CALIBRATION_H_ */
bues.ch cgit interface