1.1 --- a/include/vga_display.h Fri Nov 02 02:15:09 2018 +0100
1.2 +++ b/include/vga_display.h Fri Nov 02 18:26:06 2018 +0100
1.3 @@ -33,9 +33,14 @@
1.4
1.5 void (*state_handler)();
1.6
1.7 + /* Common transfer properties. */
1.8 +
1.9 + int line_timer;
1.10 + uint32_t output;
1.11 +
1.12 /* DMA transfer properties. */
1.13
1.14 - int line_timer, line_channels, transfer_int_num;
1.15 + int line_channels, transfer_int_num;
1.16
1.17 /* Horizontal and vertical sync peripherals. */
1.18
1.19 @@ -69,6 +74,8 @@
1.20
1.21 void vga_configure_transfer(uint32_t output);
1.22
1.23 +void vga_configure_dma_transfer(uint32_t output);
1.24 +
1.25 /* Initialisation helpers. */
1.26
1.27 void vga_configure_line_channel(int channel, int int_num, enum dma_chain chain,
1.28 @@ -80,6 +87,8 @@
1.29 /* Interrupt handlers. */
1.30
1.31 void vga_interrupt_handler(void);
1.32 +void vga_hsync_interrupt_handler(void);
1.33 +void vga_transfer_interrupt_handler(void);
1.34
1.35 /* Display state handlers. */
1.36
1.37 @@ -88,7 +97,7 @@
1.38 void vfp_active(void);
1.39 void vsync_active(void);
1.40
1.41 -/* Display operations. */
1.42 +/* DMA transfer operations. */
1.43
1.44 void start_visible(void);
1.45 void update_visible(void);