diff options
Diffstat (limited to 'tmk_core/protocol/xt.h')
-rw-r--r-- | tmk_core/protocol/xt.h | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/tmk_core/protocol/xt.h b/tmk_core/protocol/xt.h deleted file mode 100644 index 538ff0e45..000000000 --- a/tmk_core/protocol/xt.h +++ /dev/null | |||
@@ -1,73 +0,0 @@ | |||
1 | /* | ||
2 | Copyright 2018 Jun WAKO <wakojun@gmail.com> | ||
3 | Copyright 2016 Ethan Apodaca <papodaca@gmail.com> | ||
4 | |||
5 | This software is licensed with a Modified BSD License. | ||
6 | All of this is supposed to be Free Software, Open Source, DFSG-free, | ||
7 | GPL-compatible, and OK to use in both free and proprietary applications. | ||
8 | Additions and corrections to this file are welcome. | ||
9 | |||
10 | |||
11 | Redistribution and use in source and binary forms, with or without | ||
12 | modification, are permitted provided that the following conditions are met: | ||
13 | |||
14 | * Redistributions of source code must retain the above copyright | ||
15 | notice, this list of conditions and the following disclaimer. | ||
16 | |||
17 | * Redistributions in binary form must reproduce the above copyright | ||
18 | notice, this list of conditions and the following disclaimer in | ||
19 | the documentation and/or other materials provided with the | ||
20 | distribution. | ||
21 | |||
22 | * Neither the name of the copyright holders nor the names of | ||
23 | contributors may be used to endorse or promote products derived | ||
24 | from this software without specific prior written permission. | ||
25 | |||
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | ||
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
36 | POSSIBILITY OF SUCH DAMAGE. | ||
37 | */ | ||
38 | |||
39 | #pragma once | ||
40 | |||
41 | #include "quantum.h" | ||
42 | |||
43 | #define XT_DATA_IN() \ | ||
44 | do { \ | ||
45 | setPinInput(XT_DATA_PIN); \ | ||
46 | writePinHigh(XT_DATA_PIN); \ | ||
47 | } while (0) | ||
48 | |||
49 | #define XT_DATA_READ() readPin(XT_DATA_PIN) | ||
50 | |||
51 | #define XT_DATA_LO() \ | ||
52 | do { \ | ||
53 | writePinLow(XT_DATA_PIN); \ | ||
54 | setPinOutput(XT_DATA_PIN); \ | ||
55 | } while (0) | ||
56 | |||
57 | #define XT_CLOCK_IN() \ | ||
58 | do { \ | ||
59 | setPinInput(XT_CLOCK_PIN); \ | ||
60 | writePinHigh(XT_CLOCK_PIN); \ | ||
61 | } while (0) | ||
62 | |||
63 | #define XT_CLOCK_READ() readPin(XT_CLOCK_PIN) | ||
64 | |||
65 | #define XT_CLOCK_LO() \ | ||
66 | do { \ | ||
67 | writePinLow(XT_CLOCK_PIN); \ | ||
68 | setPinOutput(XT_CLOCK_PIN); \ | ||
69 | } while (0) | ||
70 | |||
71 | void xt_host_init(void); | ||
72 | |||
73 | uint8_t xt_host_recv(void); | ||