aboutsummaryrefslogtreecommitdiff
path: root/hid-tminit.h
diff options
context:
space:
mode:
authorDario Pagani <>2020-08-16 14:18:25 +0200
committerDario Pagani <>2020-08-16 14:18:25 +0200
commitdc9a1a0ddaef468e71714a0ad01de2db7699e022 (patch)
tree2df5b1da48c3b5d503d81ab6158a4dcb28add9f2 /hid-tminit.h
parent0b0f8552e1feee25ae3f8ec5e78a6e26a96af64b (diff)
parent6c41e8fb0f5a73b1dd45685a9da5818679f8524f (diff)
downloadhid-tminit-dc9a1a0ddaef468e71714a0ad01de2db7699e022.tar.gz
hid-tminit-dc9a1a0ddaef468e71714a0ad01de2db7699e022.zip
Merge branch 'master' of github.com:scarburato/hid-tminit
Diffstat (limited to 'hid-tminit.h')
-rw-r--r--hid-tminit.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/hid-tminit.h b/hid-tminit.h
index 820ca86..c8b664e 100644
--- a/hid-tminit.h
+++ b/hid-tminit.h
@@ -1,4 +1,21 @@
/**
+ * These interrupts are used to prevent a nasty crash when initializing the
+ * T300RS. Used in tminit_interrupts().
+ */
+u8 setup_0[] = { 0x42, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
+u8 setup_1[] = { 0x0a, 0x04, 0x90, 0x03, 0x00, 0x00, 0x00, 0x00 };
+u8 setup_2[] = { 0x0a, 0x04, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00 };
+u8 setup_3[] = { 0x0a, 0x04, 0x12, 0x10, 0x00, 0x00, 0x00, 0x00 };
+u8 setup_4[] = { 0x0a, 0x04, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00 };
+u8 *setup_arr[] = { setup_0, setup_1, setup_2, setup_3, setup_4 };
+unsigned int setup_arr_sizes[] = {
+ ARRAY_SIZE(setup_0),
+ ARRAY_SIZE(setup_1),
+ ARRAY_SIZE(setup_2),
+ ARRAY_SIZE(setup_3),
+ ARRAY_SIZE(setup_4)
+};
+/**
* This struct contains for each type of
* Thrustmaster wheel
*