aboutsummaryrefslogtreecommitdiff
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
parentfd24546787b304f63c94c4afd6fb0121b3e5dc43 (diff)
parentb664db3cf32f9e286dbbeb9a44761fcf707caf4d (diff)
downloadqmk_firmware-aa85b5ee1e75ffdf54667bc25ba1f736e1029396.tar.gz
qmk_firmware-aa85b5ee1e75ffdf54667bc25ba1f736e1029396.zip
Merge remote-tracking branch 'origin/master' into develop
-rw-r--r--keyboards/choco60/rev2/config.h3
-rw-r--r--quantum/rgblight.c16
-rw-r--r--quantum/rgblight.h3
3 files changed, 2 insertions, 20 deletions
diff --git a/keyboards/choco60/rev2/config.h b/keyboards/choco60/rev2/config.h
index 378323497..46aef108d 100644
--- a/keyboards/choco60/rev2/config.h
+++ b/keyboards/choco60/rev2/config.h
@@ -29,7 +29,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
29 */ 29 */
30#define MATRIX_ROW_PINS { C5, C4, B6, B7, C7 } 30#define MATRIX_ROW_PINS { C5, C4, B6, B7, C7 }
31#define MATRIX_ROW_PINS_RIGHT { D3, D2, D5, D6, B0 } 31#define MATRIX_ROW_PINS_RIGHT { D3, D2, D5, D6, B0 }
32#define MATRIX_COL_PINS { C6, B4, B3, B2, B1, B0 } 32/* The last three NO_PIN are dummies to make the same size as MATRIX_ROW_PINS_RIGHT. */
33#define MATRIX_COL_PINS { C6, B4, B3, B2, B1, B0, NO_PIN, NO_PIN, NO_PIN }
33#define MATRIX_COL_PINS_RIGHT { C7, B7, B6, B5, B4, B3, B2, C6, D4 } 34#define MATRIX_COL_PINS_RIGHT { C7, B7, B6, B5, B4, B3, B2, C6, D4 }
34#define UNUSED_PINS 35#define UNUSED_PINS
35 36
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)
886void rgblight_timer_init(void) { 886void 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}
diff --git a/quantum/rgblight.h b/quantum/rgblight.h
index 028b3ea41..6fb3ab938 100644
--- a/quantum/rgblight.h
+++ b/quantum/rgblight.h
@@ -170,9 +170,6 @@ enum RGBLIGHT_EFFECT_MODE {
170# define RGBLIGHT_LIMIT_VAL 255 170# define RGBLIGHT_LIMIT_VAL 255
171# endif 171# endif
172 172
173# define RGBLED_TIMER_TOP F_CPU / (256 * 64)
174// #define RGBLED_TIMER_TOP 0xFF10
175
176# include <stdint.h> 173# include <stdint.h>
177# include <stdbool.h> 174# include <stdbool.h>
178# include "eeconfig.h" 175# include "eeconfig.h"