1.1 --- a/include/vga_display.h Thu Oct 25 21:11:22 2018 +0200
1.2 +++ b/include/vga_display.h Thu Oct 25 21:19:01 2018 +0200
1.3 @@ -35,11 +35,11 @@
1.4
1.5 /* DMA transfer properties. */
1.6
1.7 - int line_channels, initiating_int_num;
1.8 + int line_timer, line_channels, transfer_int_num;
1.9
1.10 /* Horizontal and vertical sync peripherals. */
1.11
1.12 - int timer, hsync_unit, vsync_unit;
1.13 + int hsync_unit, vsync_unit;
1.14
1.15 /* Current scanline. */
1.16
1.17 @@ -60,11 +60,16 @@
1.18 /* Initialisation. */
1.19
1.20 void init_vga(display_config_t *display_config, int line_channels,
1.21 - int initiating_int_num);
1.22 + int line_timer, int initiating_int_num);
1.23 +
1.24 +void init_vga_with_timers(display_config_t *display_config, int line_channels,
1.25 + int line_timer, int transfer_timer);
1.26
1.27 -void vga_configure_sync(int hsync_unit, int vsync_unit, int timer);
1.28 +void vga_configure_sync(int hsync_unit, int vsync_unit);
1.29
1.30 -void vga_configure_transfer(int transfer_int_num, uint32_t output);
1.31 +void vga_configure_transfer(uint32_t output);
1.32 +
1.33 +/* Initialisation helpers. */
1.34
1.35 void vga_configure_line_channel(int channel, int int_num, enum dma_chain chain,
1.36 uint32_t output);