uint32_t stream_enable_to:1;
uint32_t stream_enable_from:1;
uint32_t stream_started:1;
uint32_t stream_ended:1;
uint32_t use_readinc:1;
uint32_t stream_enable_to:1;
uint32_t stream_enable_from:1;
uint32_t stream_started:1;
uint32_t stream_ended:1;
uint32_t use_readinc:1;
g.stream_from[g.f_i][0] = s;
g.stream_from[g.f_i][1] = s >> 8;
g.f_i = (g.f_i + 1) & STREAM_BUF_MASK;
g.stream_from[g.f_i][0] = s;
g.stream_from[g.f_i][1] = s >> 8;
g.f_i = (g.f_i + 1) & STREAM_BUF_MASK;
if (g.use_readinc) {
attachInterruptVector(IRQ_PORTB,
portb_isr_fixed_do_from);
if (g.use_readinc) {
attachInterruptVector(IRQ_PORTB,
portb_isr_fixed_do_from);
attachInterruptVector(IRQ_PORTC,
portc_isr_frameinc_do_from);
}
attachInterruptVector(IRQ_PORTC,
portc_isr_frameinc_do_from);
}