Skip to content

Commit

Permalink
Removed unused RGBLED_TIMER_TOP and F_CPU macros from quantum/rgbligh…
Browse files Browse the repository at this point in the history
…t.[ch] (qmk#12233)
  • Loading branch information
mtei committed Mar 25, 2021
1 parent a5ecd4e commit b664db3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
16 changes: 0 additions & 16 deletions quantum/rgblight.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 0 additions & 3 deletions quantum/rgblight.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b664db3

Please sign in to comment.