1.1 --- a/stage2/example.c Sun Apr 24 18:05:41 2016 +0200
1.2 +++ b/stage2/example.c Sun Apr 24 18:06:32 2016 +0200
1.3 @@ -37,13 +37,19 @@
1.4
1.5 void plot_value(u32 value)
1.6 {
1.7 - unsigned short x, y;
1.8 - for (y = 0; y < panel_info.vl_row; y++)
1.9 + unsigned short x, y, on = 1;
1.10 +
1.11 + while (1)
1.12 {
1.13 - for (x = 0; x < panel_info.vl_col; x++)
1.14 + for (y = 0; y < panel_info.vl_row; y++)
1.15 {
1.16 - set_pixel(x, y, get_bitmap_value(x, value));
1.17 + for (x = 0; x < panel_info.vl_col; x++)
1.18 + {
1.19 + set_pixel(x, y, on ? get_bitmap_value(x, value) : 0);
1.20 + }
1.21 }
1.22 + udelay(on ? 500000 : 100000);
1.23 + on = 1 - on;
1.24 }
1.25 }
1.26
1.27 @@ -60,7 +66,7 @@
1.28
1.29 void start_plot_pattern(unsigned short task)
1.30 {
1.31 - u32 args[] = {task, 0, ((task - 1) * (panel_info.vl_row / 4)) % panel_info.vl_row};
1.32 + u32 args[] = {task, 0, (task * (panel_info.vl_row / 4)) % panel_info.vl_row};
1.33
1.34 start_task(task, (void (*)()) plot_pattern, args, 3);
1.35 }
2.1 --- a/stage2/example.h Sun Apr 24 18:05:41 2016 +0200
2.2 +++ b/stage2/example.h Sun Apr 24 18:06:32 2016 +0200
2.3 @@ -4,6 +4,7 @@
2.4 /* Example task functions. */
2.5
2.6 void plot_pattern(unsigned short, unsigned short, unsigned short);
2.7 +void plot_value(u32);
2.8 void start_plot_pattern(unsigned short);
2.9
2.10 #endif /* __EXAMPLE_H__ */