1.1 --- a/examples/vga/main.c Tue Oct 23 00:38:01 2018 +0200
1.2 +++ b/examples/vga/main.c Tue Oct 23 19:01:07 2018 +0200
1.3 @@ -104,14 +104,13 @@
1.4 dma_set_transfer(0, PHYSICAL((uint32_t) screenstart), LINE_LENGTH,
1.5 HW_PHYSICAL(PORTB), 1,
1.6 LINE_LENGTH);
1.7 - dma_init_interrupt(0, 0b00001000, 1, 3);
1.8
1.9 - /* Enable DMA on the preceding channel's completion, with this also
1.10 - initiating transfers. */
1.11 + /* Enable DMA on the preceding channel's completion, with the timer event
1.12 + initiating the transfer. */
1.13
1.14 dma_init(1, 3);
1.15 dma_set_chaining(1, dma_chain_previous);
1.16 - dma_set_interrupt(1, DMA0, 1);
1.17 + dma_set_interrupt(1, T2, 1);
1.18 dma_set_transfer(1, PHYSICAL((uint32_t) zerodata), ZERO_LENGTH,
1.19 HW_PHYSICAL(PORTB), 1,
1.20 ZERO_LENGTH);
1.21 @@ -204,18 +203,7 @@
1.22
1.23 void visible_active(void)
1.24 {
1.25 - uint32_t ifs;
1.26 -
1.27 - /* Remove any DMA interrupt condition (CHBCIF). */
1.28 -
1.29 - ifs = REG(DMAIFS) & DMA_INT_FLAGS(0, DCHxIF);
1.30 -
1.31 - if (ifs)
1.32 - {
1.33 - CLR_REG(DMA_REG(0, DCHxINT), 0b11111111);
1.34 - CLR_REG(DMAIFS, ifs);
1.35 - INV_REG(PORTA, 1 << 2);
1.36 - }
1.37 + INV_REG(PORTA, 1 << 2);
1.38
1.39 if (line < VFP_START)
1.40 {