blob: 79561330a0c7afaae8bc9971b1eff7722f8291be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef MYRADIO_MAC_CALIBRATION_H_
#define MYRADIO_MAC_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_MAC_CALIBRATION_H_ */
|