aboutsummaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-11-26 01:34:49 -0500
committerGitHub <noreply@github.com>2016-11-26 01:34:49 -0500
commit7a1eca784fee10ed77fdc719f7715cc76facbcf0 (patch)
tree7990d92e7136bad4b38b719bbf9f15c8cb039b60 /tmk_core
parentbf23ac96f62be1cb36d414e76599523af3caf00f (diff)
parent9a071f051ca9dffdf64b68ea59b2424e37bc51e7 (diff)
downloadqmk_firmware-7a1eca784fee10ed77fdc719f7715cc76facbcf0.tar.gz
qmk_firmware-7a1eca784fee10ed77fdc719f7715cc76facbcf0.zip
Merge pull request #903 from priyadi/ps2_init_delay
Make PS2 init delay configurable.
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/protocol/ps2_mouse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tmk_core/protocol/ps2_mouse.c b/tmk_core/protocol/ps2_mouse.c
index c3e8b3c1c..82f6966e8 100644
--- a/tmk_core/protocol/ps2_mouse.c
+++ b/tmk_core/protocol/ps2_mouse.c
@@ -26,6 +26,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
26#include "print.h" 26#include "print.h"
27#include "debug.h" 27#include "debug.h"
28 28
29#ifndef PS2_INIT_DELAY
30#define PS2_INIT_DELAY 1000
31#endif
29 32
30static report_mouse_t mouse_report = {}; 33static report_mouse_t mouse_report = {};
31 34
@@ -39,7 +42,7 @@ uint8_t ps2_mouse_init(void) {
39 42
40 ps2_host_init(); 43 ps2_host_init();
41 44
42 _delay_ms(1000); // wait for powering up 45 _delay_ms(PS2_INIT_DELAY); // wait for powering up
43 46
44 // send Reset 47 // send Reset
45 rcv = ps2_host_send(0xFF); 48 rcv = ps2_host_send(0xFF);