diff options
| author | Drashna Jaelre <drashna@live.com> | 2018-10-16 11:35:43 -0700 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2018-10-16 17:11:51 -0400 |
| commit | 1dc1e12fec6b8ce06792ac2e2224b6466b4de2a3 (patch) | |
| tree | 4374a2026488dbe619717bfcbba0ec96e3f6604f /quantum | |
| parent | 6cf9402cbc8156dd7c0892822ba949a1a1d8a4ba (diff) | |
| download | qmk_firmware-1dc1e12fec6b8ce06792ac2e2224b6466b4de2a3.tar.gz qmk_firmware-1dc1e12fec6b8ce06792ac2e2224b6466b4de2a3.zip | |
Only include lufa.h if AVR in quantum/api.h
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/api.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/quantum/api.h b/quantum/api.h index efc0ddca1..fc016391b 100644 --- a/quantum/api.h +++ b/quantum/api.h | |||
| @@ -17,7 +17,9 @@ | |||
| 17 | #ifndef _API_H_ | 17 | #ifndef _API_H_ |
| 18 | #define _API_H_ | 18 | #define _API_H_ |
| 19 | 19 | ||
| 20 | #ifdef __AVR__ | ||
| 20 | #include "lufa.h" | 21 | #include "lufa.h" |
| 22 | #endif | ||
| 21 | 23 | ||
| 22 | enum MESSAGE_TYPE { | 24 | enum MESSAGE_TYPE { |
| 23 | MT_GET_DATA = 0x10, // Get data from keyboard | 25 | MT_GET_DATA = 0x10, // Get data from keyboard |
| @@ -28,7 +30,7 @@ enum MESSAGE_TYPE { | |||
| 28 | MT_SEND_DATA_ACK = 0x31, // returned data/action confirmation (ACK) | 30 | MT_SEND_DATA_ACK = 0x31, // returned data/action confirmation (ACK) |
| 29 | MT_EXE_ACTION = 0x40, // executing actions on keyboard | 31 | MT_EXE_ACTION = 0x40, // executing actions on keyboard |
| 30 | MT_EXE_ACTION_ACK =0x41, // return confirmation/value (ACK) | 32 | MT_EXE_ACTION_ACK =0x41, // return confirmation/value (ACK) |
| 31 | MT_TYPE_ERROR = 0x80 // type not recofgnised (ACK) | 33 | MT_TYPE_ERROR = 0x80 // type not recognised (ACK) |
| 32 | }; | 34 | }; |
| 33 | 35 | ||
| 34 | enum DATA_TYPE { | 36 | enum DATA_TYPE { |
