diff options
| author | Takeshi ISHII <2170248+mtei@users.noreply.github.com> | 2021-03-25 21:05:38 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-25 23:05:38 +1100 |
| commit | b664db3cf32f9e286dbbeb9a44761fcf707caf4d (patch) | |
| tree | 6f7f03425d2c5238431e544adcd759f872c01d3c /quantum/rgblight.c | |
| parent | a5ecd4eb87db8eb48544de1de5f437046358369d (diff) | |
| download | qmk_firmware-b664db3cf32f9e286dbbeb9a44761fcf707caf4d.tar.gz qmk_firmware-b664db3cf32f9e286dbbeb9a44761fcf707caf4d.zip | |
Removed unused RGBLED_TIMER_TOP and F_CPU macros from quantum/rgblight.[ch] (#12233)
Diffstat (limited to 'quantum/rgblight.c')
| -rw-r--r-- | quantum/rgblight.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c index 904c02d6c..119d3eab2 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c | |||
| @@ -884,22 +884,6 @@ typedef void (*effect_func_t)(animation_status_t *anim); | |||
| 884 | 884 | ||
| 885 | // Animation timer -- use system timer (AVR Timer0) | 885 | // Animation timer -- use system timer (AVR Timer0) |
| 886 | void rgblight_timer_init(void) { | 886 | void rgblight_timer_init(void) { |
| 887 | // OLD!!!! Animation timer -- AVR Timer3 | ||
| 888 | // static uint8_t rgblight_timer_is_init = 0; | ||
| 889 | // if (rgblight_timer_is_init) { | ||
| 890 | // return; | ||
| 891 | // } | ||
| 892 | // rgblight_timer_is_init = 1; | ||
| 893 | // /* Timer 3 setup */ | ||
| 894 | // TCCR3B = _BV(WGM32) // CTC mode OCR3A as TOP | ||
| 895 | // | _BV(CS30); // Clock selelct: clk/1 | ||
| 896 | // /* Set TOP value */ | ||
| 897 | // uint8_t sreg = SREG; | ||
| 898 | // cli(); | ||
| 899 | // OCR3AH = (RGBLED_TIMER_TOP >> 8) & 0xff; | ||
| 900 | // OCR3AL = RGBLED_TIMER_TOP & 0xff; | ||
| 901 | // SREG = sreg; | ||
| 902 | |||
| 903 | rgblight_status.timer_enabled = false; | 887 | rgblight_status.timer_enabled = false; |
| 904 | RGBLIGHT_SPLIT_SET_CHANGE_TIMER_ENABLE; | 888 | RGBLIGHT_SPLIT_SET_CHANGE_TIMER_ENABLE; |
| 905 | } | 889 | } |
