Line 48... |
Line 48... |
48 |
#ifndef F_CPU |
48 |
#ifndef F_CPU |
49 |
#define F_CPU 8000000UL // 8MHz je maximální interní frekvence |
49 |
#define F_CPU 8000000UL // 8MHz je maximální interní frekvence |
50 |
#endif |
50 |
#endif |
51 |
|
51 |
|
52 |
#ifndef IR_FREQUENCY |
52 |
#ifndef IR_FREQUENCY |
53 |
#define IR_FREQUENCY 34000UL // Frekvece IR signalu |
53 |
#define IR_FREQUENCY 36000UL // Frekvece IR signalu |
54 |
#endif |
54 |
#endif |
55 |
|
55 |
|
56 |
#ifndef CALIBRATION |
56 |
#ifndef CALIBRATION |
57 |
#define CALIBRATION 0 // Zpresneni kalibrace na 9.6MHz 0=nekompenzovat |
57 |
#define CALIBRATION 0 // Zpresneni kalibrace na 9.6MHz 0=nekompenzovat |
58 |
#endif |
58 |
#endif |
Line 79... |
Line 79... |
79 |
|
79 |
|
80 |
static signed char InData; // Zde se strada pocet shod od dvojice symbolu |
80 |
static signed char InData; // Zde se strada pocet shod od dvojice symbolu |
81 |
static signed char InSuma; // Zde se prumeruji shody |
81 |
static signed char InSuma; // Zde se prumeruji shody |
82 |
|
82 |
|
83 |
// Citac pulperiod symbolu |
83 |
// Citac pulperiod symbolu |
84 |
if(++SymbolLen>=(SYMBOL_LENGTH*2)) |
84 |
if(++SymbolLen>=(SYMBOL_LENGTH*2-1)) |
85 |
{ |
85 |
{ |
86 |
|
86 |
|
87 |
// Konec symbolu - zaciname citat pocet pulperiod od zacatku |
87 |
// Konec symbolu - zaciname citat pocet pulperiod od zacatku |
88 |
SymbolLen=0; |
88 |
SymbolLen=0; |
89 |
|
89 |
|