X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=quantum%2Fapi.h;h=fc016391bcf38052ffce72004c01b90272a4bc00;hb=38fdf7a2d2f3f0bb9c21332b81a289de94b9870a;hp=00dcdb8954b9274fe6819f47f83744e055311706;hpb=8f8d10475956a17953f6db4db3f3b50bd795c0d8;p=qmk_firmware.git diff --git a/quantum/api.h b/quantum/api.h index 00dcdb895..fc016391b 100644 --- a/quantum/api.h +++ b/quantum/api.h @@ -1,7 +1,25 @@ +/* Copyright 2016 Jack Humbert + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #ifndef _API_H_ #define _API_H_ +#ifdef __AVR__ #include "lufa.h" +#endif enum MESSAGE_TYPE { MT_GET_DATA = 0x10, // Get data from keyboard @@ -12,7 +30,7 @@ enum MESSAGE_TYPE { MT_SEND_DATA_ACK = 0x31, // returned data/action confirmation (ACK) MT_EXE_ACTION = 0x40, // executing actions on keyboard MT_EXE_ACTION_ACK =0x41, // return confirmation/value (ACK) - MT_TYPE_ERROR = 0x80 // type not recofgnised (ACK) + MT_TYPE_ERROR = 0x80 // type not recognised (ACK) }; enum DATA_TYPE { @@ -56,4 +74,4 @@ bool process_api_keyboard(uint8_t length, uint8_t * data); __attribute__ ((weak)) bool process_api_user(uint8_t length, uint8_t * data); -#endif \ No newline at end of file +#endif