summaryrefslogtreecommitdiffstats
path: root/phy/calibration.h
blob: e9b7b892afa2bb6314950362235e0aa925e265e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef MYRADIO_PHY_CALIBRATION_H_
#define MYRADIO_PHY_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 /* MYRADIO_PHY_CALIBRATION_H_ */
bues.ch cgit interface