CommonPIC32

Changeset

57:58339bbc2e28
2018-10-24 Paul Boddie raw files shortlog changelog graph Added VGA output initialisation descriptions.
examples/vga-dual/main.c (file) examples/vga-pmp/main.c (file) examples/vga-timer/main.c (file) examples/vga/main.c (file)
     1.1 --- a/examples/vga-dual/main.c	Wed Oct 24 18:11:22 2018 +0200
     1.2 +++ b/examples/vga-dual/main.c	Wed Oct 24 18:15:08 2018 +0200
     1.3 @@ -71,6 +71,10 @@
     1.4      lock_config();
     1.5  
     1.6      init_dma();
     1.7 +
     1.8 +    /* Initialise VGA output structures with two line channels and no initiating
     1.9 +       channel. */
    1.10 +
    1.11      init_vga(&display_config, 2, -1);
    1.12  
    1.13      /* Configure VGA output transfer details along with a timer and output
     2.1 --- a/examples/vga-pmp/main.c	Wed Oct 24 18:11:22 2018 +0200
     2.2 +++ b/examples/vga-pmp/main.c	Wed Oct 24 18:15:08 2018 +0200
     2.3 @@ -72,7 +72,6 @@
     2.4  
     2.5      init_dma();
     2.6      init_pm();
     2.7 -    init_vga(&display_config, 1, -1);
     2.8  
     2.9      /* Configure parallel master mode. */
    2.10  
    2.11 @@ -80,6 +79,11 @@
    2.12      pm_set_output(0, 1, 0);
    2.13      pm_on(0);
    2.14  
    2.15 +    /* Initialise VGA output structures with a single line channel and no
    2.16 +       initiating channel. */
    2.17 +
    2.18 +    init_vga(&display_config, 1, -1);
    2.19 +
    2.20      /* Configure VGA output transfer details along with a timer and output
    2.21         compare units for horizontal and vertical sync. */
    2.22  
     3.1 --- a/examples/vga-timer/main.c	Wed Oct 24 18:11:22 2018 +0200
     3.2 +++ b/examples/vga-timer/main.c	Wed Oct 24 18:15:08 2018 +0200
     3.3 @@ -71,6 +71,10 @@
     3.4      lock_config();
     3.5  
     3.6      init_dma();
     3.7 +
     3.8 +    /* Initialise VGA output structures with two line channels and an initiating
     3.9 +       channel. */
    3.10 +
    3.11      init_vga(&display_config, 2, T2);
    3.12  
    3.13      /* Peripheral relationships:
     4.1 --- a/examples/vga/main.c	Wed Oct 24 18:11:22 2018 +0200
     4.2 +++ b/examples/vga/main.c	Wed Oct 24 18:15:08 2018 +0200
     4.3 @@ -71,6 +71,10 @@
     4.4      lock_config();
     4.5  
     4.6      init_dma();
     4.7 +
     4.8 +    /* Initialise VGA output structures with a single line channel and no
     4.9 +       initiating channel. */
    4.10 +
    4.11      init_vga(&display_config, 1, -1);
    4.12  
    4.13      /* Configure VGA output transfer details along with a timer and output