# HG changeset patch # User Paul Boddie # Date 1540397708 -7200 # Node ID 58339bbc2e28756821fb13c95f1c24d1073b4685 # Parent 9c7ac56c32ca1b2b1f4179162ca0a76dad1b8653 Added VGA output initialisation descriptions. diff -r 9c7ac56c32ca -r 58339bbc2e28 examples/vga-dual/main.c --- a/examples/vga-dual/main.c Wed Oct 24 18:11:22 2018 +0200 +++ b/examples/vga-dual/main.c Wed Oct 24 18:15:08 2018 +0200 @@ -71,6 +71,10 @@ lock_config(); init_dma(); + + /* Initialise VGA output structures with two line channels and no initiating + channel. */ + init_vga(&display_config, 2, -1); /* Configure VGA output transfer details along with a timer and output diff -r 9c7ac56c32ca -r 58339bbc2e28 examples/vga-pmp/main.c --- a/examples/vga-pmp/main.c Wed Oct 24 18:11:22 2018 +0200 +++ b/examples/vga-pmp/main.c Wed Oct 24 18:15:08 2018 +0200 @@ -72,7 +72,6 @@ init_dma(); init_pm(); - init_vga(&display_config, 1, -1); /* Configure parallel master mode. */ @@ -80,6 +79,11 @@ pm_set_output(0, 1, 0); pm_on(0); + /* Initialise VGA output structures with a single line channel and no + initiating channel. */ + + init_vga(&display_config, 1, -1); + /* Configure VGA output transfer details along with a timer and output compare units for horizontal and vertical sync. */ diff -r 9c7ac56c32ca -r 58339bbc2e28 examples/vga-timer/main.c --- a/examples/vga-timer/main.c Wed Oct 24 18:11:22 2018 +0200 +++ b/examples/vga-timer/main.c Wed Oct 24 18:15:08 2018 +0200 @@ -71,6 +71,10 @@ lock_config(); init_dma(); + + /* Initialise VGA output structures with two line channels and an initiating + channel. */ + init_vga(&display_config, 2, T2); /* Peripheral relationships: diff -r 9c7ac56c32ca -r 58339bbc2e28 examples/vga/main.c --- a/examples/vga/main.c Wed Oct 24 18:11:22 2018 +0200 +++ b/examples/vga/main.c Wed Oct 24 18:15:08 2018 +0200 @@ -71,6 +71,10 @@ lock_config(); init_dma(); + + /* Initialise VGA output structures with a single line channel and no + initiating channel. */ + init_vga(&display_config, 1, -1); /* Configure VGA output transfer details along with a timer and output