1.1 --- a/examples/vga-pmp/main.c Thu Oct 25 21:11:22 2018 +0200
1.2 +++ b/examples/vga-pmp/main.c Thu Oct 25 21:19:01 2018 +0200
1.3 @@ -79,16 +79,16 @@
1.4 pm_set_output(0, 1, 0);
1.5 pm_on(0);
1.6
1.7 - /* Initialise VGA output structures with a single line channel and no
1.8 - initiating channel. */
1.9 + /* Initialise VGA output with a single line channel, configuring Timer2,
1.10 + with no transfer timer and thus no initiating channel. */
1.11
1.12 - init_vga(&display_config, 1, -1);
1.13 + init_vga_with_timers(&display_config, 1, 2, 0);
1.14
1.15 - /* Configure VGA output transfer details along with a timer and output
1.16 - compare units for horizontal and vertical sync. */
1.17 + /* Configure VGA output transfer to the parallel mode output register, also
1.18 + configuring output compare units for horizontal and vertical sync. */
1.19
1.20 - vga_configure_transfer(T2, PM_REG(0, PMxDIN));
1.21 - vga_configure_sync(1, 2, 2);
1.22 + vga_configure_transfer(PM_REG(0, PMxDIN));
1.23 + vga_configure_sync(1, 2);
1.24
1.25 uart_init(1, FPB, 115200);
1.26 uart_on(1);