aboutsummaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorzvecr <git@zvecr.com>2019-04-08 18:53:15 +0100
committerDrashna Jaelre <drashna@live.com>2019-04-08 10:53:15 -0700
commit91b18e263f6373994613c290129e49f18e17cef1 (patch)
tree4e7838d9c45d614fbf4b2762d357f3bbe62225b5 /quantum
parent9b393700d2fdd4a1159ba265bc399726e92f4e60 (diff)
downloadqmk_firmware-91b18e263f6373994613c290129e49f18e17cef1.tar.gz
qmk_firmware-91b18e263f6373994613c290129e49f18e17cef1.zip
[Keyboard] Refactor jj40 to current standards (#5574)
* Refactor jj40 in line with current ps2avrgb template * Disable bootmagic lite as it seems to not work on atmega32a/bootloadHID * Add backlight pwm bodge till #4324 lands * Increase planck keymap compatibility
Diffstat (limited to 'quantum')
-rw-r--r--quantum/quantum.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index a62368ded..a4ccccd00 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -1125,6 +1125,13 @@ static const uint8_t backlight_pin = BACKLIGHT_PIN;
1125# define COMxx1 COM1A1 1125# define COMxx1 COM1A1
1126# define OCRxx OCR3A 1126# define OCRxx OCR3A
1127# define ICRx ICR3 1127# define ICRx ICR3
1128#elif defined(__AVR_ATmega32A__) && BACKLIGHT_PIN == D4
1129# define TCCRxA TCCR1A
1130# define TCCRxB TCCR1B
1131# define COMxx1 COM1B1
1132# define OCRxx OCR1B
1133# define ICRx ICR1
1134# define TIMSK1 TIMSK
1128#else 1135#else
1129# define NO_HARDWARE_PWM 1136# define NO_HARDWARE_PWM
1130#endif 1137#endif