Limit outputselect to AVR only for now

This commit is contained in:
Priyadi Iman Nurcahyo 2017-02-01 19:37:52 +07:00
parent 72e95809a1
commit 2bef8b5b88
5 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,7 @@
#include "quantum.h" #include "quantum.h"
#if defined(__AVR__)
#include "outputselect.h" #include "outputselect.h"
#endif
#ifndef TAPPING_TERM #ifndef TAPPING_TERM
#define TAPPING_TERM 200 #define TAPPING_TERM 200
@ -213,6 +215,7 @@ bool process_record_quantum(keyrecord_t *record) {
return false; return false;
break; break;
#endif #endif
#if defined(__AVR__)
case OUT_AUTO: case OUT_AUTO:
if (record->event.pressed) { if (record->event.pressed) {
set_output(OUTPUT_AUTO); set_output(OUTPUT_AUTO);
@ -241,6 +244,7 @@ bool process_record_quantum(keyrecord_t *record) {
return false; return false;
break; break;
#endif #endif
#endif
case MAGIC_SWAP_CONTROL_CAPSLOCK ... MAGIC_TOGGLE_NKRO: case MAGIC_SWAP_CONTROL_CAPSLOCK ... MAGIC_TOGGLE_NKRO:
if (record->event.pressed) { if (record->event.pressed) {
// MAGIC actions (BOOTMAGIC without the boot) // MAGIC actions (BOOTMAGIC without the boot)

View File

@ -15,7 +15,6 @@
#ifdef RGBLIGHT_ENABLE #ifdef RGBLIGHT_ENABLE
#include "rgblight.h" #include "rgblight.h"
#endif #endif
#include "action_layer.h" #include "action_layer.h"
#include "eeconfig.h" #include "eeconfig.h"
#include <stddef.h> #include <stddef.h>

View File

@ -8,7 +8,7 @@ LUFA_PATH ?= $(LUFA_DIR)/LUFA-git
ifneq (, $(wildcard $(TMK_PATH)/$(LUFA_PATH)/LUFA/Build/lufa_sources.mk)) ifneq (, $(wildcard $(TMK_PATH)/$(LUFA_PATH)/LUFA/Build/lufa_sources.mk))
# New build system from 20120730 # New build system from 20120730
LUFA_ROOT_PATH = $(LUFA_PATH)/LUFA LUFA_ROOT_PATH = $(LUFA_PATH)/LUFA
include $(TMK_PATH)/$(LUFA_PATH)/LUFA/Build/lufa_sources.mk include $(TMK_PATH)/$(LUFA_PATH)/LUFA/Build/lufa_sources.mk
else else
include $(TMK_PATH)/$(LUFA_PATH)/LUFA/makefile include $(TMK_PATH)/$(LUFA_PATH)/LUFA/makefile
endif endif

View File

@ -12,7 +12,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "lufa.h" #include "quantum.h"
#include "outputselect.h" #include "outputselect.h"
#ifdef ADAFRUIT_BLE_ENABLE #ifdef ADAFRUIT_BLE_ENABLE
#include "adafruit_ble.h" #include "adafruit_ble.h"