- else if (g.stream_enable_from) {
- g.use_pending = 1;
- switch (g.inc_mode) {
- case INC_MODE_VSYNC:
- vsync_handler = vsync_isr_frameinc_do_from;
- break;
- case INC_MODE_SHARED_PL1:
- pl1th_handler = pl1th_isr_fixed_do_from;
- break;
- case INC_MODE_SHARED_PL2:
- case INC_MODE_SEPARATE:
- /* TODO */
- break;
- }
- }
-
- attachInterruptVector(IRQ_PORTD, pl1th_handler);
- attachInterruptVector(IRQ_PORTC, pl2th_handler);
- attachInterruptVector(IRQ_PORTA, vsync_handler);
-}
-
-static noinline void choose_isrs_idle(void)
-{
- attachInterruptVector(IRQ_PORTD, pl1th_isr_fixed);
- attachInterruptVector(IRQ_PORTC, pl2th_isr_fixed);
- attachInterruptVector(IRQ_PORTA, vsync_isr_nop);
-}
-
-static void udelay(uint32_t us)
-{
- uint32_t start = micros();