-
-
Notifications
You must be signed in to change notification settings - Fork 40k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rgbkb/zen - Resolve CONVERT_TO_PROTON_C warnings (#17619)
- Loading branch information
Showing
10 changed files
with
31 additions
and
110 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,3 @@ | ||
ifeq ($(strip $(CTPC)), yes) | ||
CONVERT_TO_PROTON_C=yes | ||
endif | ||
|
||
ifeq ($(strip $(CONVERT_TO_PROTON_C)), yes) | ||
SPLIT_KEYBOARD = no # currently unsupported on ARM | ||
RGBLIGHT_ENABLE = no # currently unsupported on ARM | ||
|
||
EXTRAFLAGS += -DUSE_PROTON_C | ||
else | ||
# Currently moved to Pro Micro only section because of lack of Proton-C support | ||
SPLIT_KEYBOARD = yes | ||
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. | ||
ifeq ($(strip $(CONVERT_TO)), proton_c) | ||
RGBLIGHT_ENABLE = no # OOB incompatible with split on ARM | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,24 @@ | ||
#pragma once | ||
|
||
#include "zen.h" | ||
|
||
#include "quantum.h" | ||
|
||
#ifdef USE_I2C | ||
#include <stddef.h> | ||
#ifdef __AVR__ | ||
#include <avr/io.h> | ||
#include <avr/interrupt.h> | ||
#endif | ||
#endif | ||
|
||
#ifdef CONVERT_TO_PROTON_C | ||
#define LAYOUT( \ | ||
k00, k01, k02, k03, k04, k05, k55, k54, k53, k52, k51, k50, \ | ||
k10, k11, k12, k13, k14, k15, k65, k64, k63, k62, k61, k60, \ | ||
k20, k21, k22, k23, k24, k25, k75, k74, k73, k72, k71, k70, \ | ||
k30, k31, k32, k33, k34, k35, k16, k66, k85, k84, k83, k82, k81, k80, \ | ||
k40, k41, k42, k43, k44, k36, k26, k76, k86, k94, k93, k92, k91, k90, \ | ||
k45, k46, k96, k95 \ | ||
) \ | ||
{ \ | ||
{ k00, k01, k02, k03, k04, k05, KC_NO }, \ | ||
{ k10, k11, k12, k13, k14, k15, k16 }, \ | ||
{ k20, k21, k22, k23, k24, k25, k26 }, \ | ||
{ k30, k31, k32, k33, k34, k35, k36 }, \ | ||
{ k40, k41, k42, k43, k44, k45, k46 } \ | ||
} | ||
#else | ||
#define LAYOUT( \ | ||
k00, k01, k02, k03, k04, k05, k55, k54, k53, k52, k51, k50, \ | ||
k10, k11, k12, k13, k14, k15, k65, k64, k63, k62, k61, k60, \ | ||
k20, k21, k22, k23, k24, k25, k75, k74, k73, k72, k71, k70, \ | ||
k30, k31, k32, k33, k34, k35, k16, k66, k85, k84, k83, k82, k81, k80, \ | ||
k40, k41, k42, k43, k44, k36, k26, k76, k86, k94, k93, k92, k91, k90, \ | ||
k45, k46, k96, k95 \ | ||
) \ | ||
{ \ | ||
{ k00, k01, k02, k03, k04, k05, KC_NO }, \ | ||
{ k10, k11, k12, k13, k14, k15, k16 }, \ | ||
{ k20, k21, k22, k23, k24, k25, k26 }, \ | ||
{ k30, k31, k32, k33, k34, k35, k36 }, \ | ||
{ k40, k41, k42, k43, k44, k45, k46 }, \ | ||
{ k50, k51, k52, k53, k54, k55, KC_NO }, \ | ||
{ k60, k61, k62, k63, k64, k65, k66 }, \ | ||
{ k70, k71, k72, k73, k74, k75, k76 }, \ | ||
{ k80, k81, k82, k83, k84, k85, k86 }, \ | ||
{ k90, k91, k92, k93, k94, k95, k96 } \ | ||
} | ||
#endif | ||
#define LAYOUT( \ | ||
k00, k01, k02, k03, k04, k05, k55, k54, k53, k52, k51, k50, \ | ||
k10, k11, k12, k13, k14, k15, k65, k64, k63, k62, k61, k60, \ | ||
k20, k21, k22, k23, k24, k25, k75, k74, k73, k72, k71, k70, \ | ||
k30, k31, k32, k33, k34, k35, k16, k66, k85, k84, k83, k82, k81, k80, \ | ||
k40, k41, k42, k43, k44, k36, k26, k76, k86, k94, k93, k92, k91, k90, \ | ||
k45, k46, k96, k95 \ | ||
) \ | ||
{ \ | ||
{ k00, k01, k02, k03, k04, k05, KC_NO }, \ | ||
{ k10, k11, k12, k13, k14, k15, k16 }, \ | ||
{ k20, k21, k22, k23, k24, k25, k26 }, \ | ||
{ k30, k31, k32, k33, k34, k35, k36 }, \ | ||
{ k40, k41, k42, k43, k44, k45, k46 }, \ | ||
{ k50, k51, k52, k53, k54, k55, KC_NO }, \ | ||
{ k60, k61, k62, k63, k64, k65, k66 }, \ | ||
{ k70, k71, k72, k73, k74, k75, k76 }, \ | ||
{ k80, k81, k82, k83, k84, k85, k86 }, \ | ||
{ k90, k91, k92, k93, k94, k95, k96 } \ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.