|
|
|
|
@ -93,9 +93,8 @@ int main(void)
|
|
|
|
|
if(length==0){
|
|
|
|
|
debug = 2;
|
|
|
|
|
}
|
|
|
|
|
debug = ((length>>0)&0x3) + 1;
|
|
|
|
|
debug = length & 0xff;
|
|
|
|
|
|
|
|
|
|
debug += 1;
|
|
|
|
|
|
|
|
|
|
timer_init_tiny26();
|
|
|
|
|
sei();
|
|
|
|
|
@ -108,14 +107,24 @@ int main(void)
|
|
|
|
|
} // */
|
|
|
|
|
// debug = 0;
|
|
|
|
|
|
|
|
|
|
uint8_t i,r;
|
|
|
|
|
uint8_t i,r,b, sound;
|
|
|
|
|
uint16_t a,to;
|
|
|
|
|
for(to=0; to<16000; to++){
|
|
|
|
|
i += debug*8;
|
|
|
|
|
a = i<<8;
|
|
|
|
|
r=1;
|
|
|
|
|
while(r){
|
|
|
|
|
r=ringbuf_put(&rb, a);
|
|
|
|
|
for(b=0; b<8; b++){
|
|
|
|
|
sound = (debug & 1)+1;
|
|
|
|
|
debug >>= 1;
|
|
|
|
|
for(to=0; to<3200; to++){
|
|
|
|
|
i += sound*8;
|
|
|
|
|
a = i<<8;
|
|
|
|
|
r=1;
|
|
|
|
|
while(r){
|
|
|
|
|
r=ringbuf_put(&rb, a);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
for(to=0; to<800; to++){
|
|
|
|
|
r=1;
|
|
|
|
|
while(r){
|
|
|
|
|
r=ringbuf_put(&rb, 0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}// */
|
|
|
|
|
|
|
|
|
|
|