Line 47... |
Line 47... |
47 |
RF_PORT=(1<<CS); |
47 |
RF_PORT=(1<<CS); |
48 |
RF_DDR=(1<<SDI)|(1<<SCK)|(1<<CS); |
48 |
RF_DDR=(1<<SDI)|(1<<SCK)|(1<<CS); |
49 |
|
49 |
|
50 |
for (unsigned char i=0; i<11; i++) _delay_ms(10); // wait until POR done |
50 |
for (unsigned char i=0; i<11; i++) _delay_ms(10); // wait until POR done |
51 |
|
51 |
|
52 |
rf01_trans(0x0000); |
52 |
rf01_trans(0x0000); // cargo cult settings |
53 |
rf01_trans(0x8000|0x1000|0x70|0x02); //band |
53 |
rf01_trans(0x8000|0x1000|0x70|0x02); //band |
54 |
rf01_trans(0xA640); // freq |
54 |
rf01_trans(0xA640); // freq |
55 |
rf01_trans(0xC823); //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 9600 Bd |
55 |
rf01_trans(0xC823); //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 9600 Bd |
56 |
rf01_trans(0xC69B); |
56 |
rf01_trans(0xC69B); |
57 |
rf01_trans(0xC42A); |
57 |
rf01_trans(0xC42A); |