1.1 --- a/main.c Fri Oct 19 18:05:07 2018 +0200
1.2 +++ b/main.c Fri Oct 19 18:55:36 2018 +0200
1.3 @@ -68,7 +68,8 @@
1.4 init_dma();
1.5
1.6 /* Initiate DMA on the Timer2 interrupt. Since the channel is not
1.7 - auto-enabled, it must be explicitly enabled upon completion. */
1.8 + auto-enabled, it must be explicitly enabled elsewhere (when a UART
1.9 + interrupt is handled). */
1.10
1.11 dma_init(0, 3);
1.12 dma_set_interrupt(0, T2, 1);
1.13 @@ -110,7 +111,8 @@
1.14 oc_init_interrupt(1, 1, 3);
1.15 oc_on(1);
1.16
1.17 - /* Set UART interrupt priority above CPU priority to process events. */
1.18 + /* Set UART interrupt priority above CPU priority to process events and to
1.19 + enable the first DMA channel. */
1.20
1.21 uart_init(1, 115200);
1.22 uart_init_interrupt(1, UxRIF, 7, 3);