1.1 --- a/stage2/tasks/keyscan.c Wed Jun 28 00:20:14 2017 +0200
1.2 +++ b/stage2/tasks/keyscan.c Wed Jun 28 01:04:22 2017 +0200
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * Keyboard scanning task.
1.6 *
1.7 - * Copyright (C) 2016 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software: you can redistribute it and/or modify
1.11 * it under the terms of the GNU General Public License as published by
1.12 @@ -25,10 +25,10 @@
1.13
1.14 extern vidinfo_t panel_info;
1.15
1.16 -void plot_value(unsigned short xmin, unsigned short xmax, unsigned short ymin, unsigned short ymax, u8 value)
1.17 +void plot_value(uint16_t xmin, uint16_t xmax, uint16_t ymin, uint16_t ymax, uint8_t value)
1.18 {
1.19 - unsigned short x, y;
1.20 - u32 pixel;
1.21 + uint16_t x, y;
1.22 + uint32_t pixel;
1.23
1.24 for (y = ymin; (y < panel_info.vl_row) && (y < ymax); y++)
1.25 {
1.26 @@ -53,10 +53,10 @@
1.27
1.28 /* Tasks. */
1.29
1.30 -void keyscan(unsigned short task)
1.31 +void keyscan(uint8_t task)
1.32 {
1.33 int column, row;
1.34 - u8 value;
1.35 + uint8_t value;
1.36
1.37 init_keyscan();
1.38
1.39 @@ -84,9 +84,9 @@
1.40 }
1.41 }
1.42
1.43 -void start_keyscan(unsigned short task)
1.44 +void start_keyscan(uint8_t task)
1.45 {
1.46 - u32 args[] = {task};
1.47 + uint32_t args[] = {task};
1.48
1.49 task_gpio_init(task);
1.50