summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-03-25 12:05:42 +0000
committerQMK Bot <hello@qmk.fm>2021-03-25 12:05:42 +0000
commitaa85b5ee1e75ffdf54667bc25ba1f736e1029396 (patch)
tree2fb59d92244e2abd662d68ef3e3662adb7d9ed62 /quantum
parentfd24546787b304f63c94c4afd6fb0121b3e5dc43 (diff)
parentb664db3cf32f9e286dbbeb9a44761fcf707caf4d (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'quantum')
-rw-r--r--quantum/rgblight.c16
-rw-r--r--quantum/rgblight.h3
2 files changed, 0 insertions, 19 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c
index 904c02d6cd..119d3eab21 100644
--- a/quantum/rgblight.c
+++ b/quantum/rgblight.c
@@ -884,22 +884,6 @@ typedef void (*effect_func_t)(animation_status_t *anim);
// Animation timer -- use system timer (AVR Timer0)
void rgblight_timer_init(void) {
- // OLD!!!! Animation timer -- AVR Timer3
- // static uint8_t rgblight_timer_is_init = 0;
- // if (rgblight_timer_is_init) {
- // return;
- // }
- // rgblight_timer_is_init = 1;
- // /* Timer 3 setup */
- // TCCR3B = _BV(WGM32) // CTC mode OCR3A as TOP
- // | _BV(CS30); // Clock selelct: clk/1
- // /* Set TOP value */
- // uint8_t sreg = SREG;
- // cli();
- // OCR3AH = (RGBLED_TIMER_TOP >> 8) & 0xff;
- // OCR3AL = RGBLED_TIMER_TOP & 0xff;
- // SREG = sreg;
-
rgblight_status.timer_enabled = false;
RGBLIGHT_SPLIT_SET_CHANGE_TIMER_ENABLE;
}
diff --git a/quantum/rgblight.h b/quantum/rgblight.h
index 028b3ea416..6fb3ab9380 100644
--- a/quantum/rgblight.h
+++ b/quantum/rgblight.h
@@ -170,9 +170,6 @@ enum RGBLIGHT_EFFECT_MODE {
# define RGBLIGHT_LIMIT_VAL 255
# endif
-# define RGBLED_TIMER_TOP F_CPU / (256 * 64)
-// #define RGBLED_TIMER_TOP 0xFF10
-
# include <stdint.h>
# include <stdbool.h>
# include "eeconfig.h"