Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStas <32337782+keyos1@users.noreply.github.com>2018-02-01 17:03:20 +0300
committerDaniel Garcia <danielgarcia@gmail.com>2018-02-01 17:03:20 +0300
commitf6c4e51ac7ce7ef7813eda91bb70dca5a3827634 (patch)
tree489a7d16352447ca082465a437d669121b725122
parent5fab3aac701f15ed1c6f4e6059ca68dbfdf2c14c (diff)
AttinyCore support (#558)
Arduino timer0_millis is called millis_timer_millis in AttinyCore from Spence Konde (https://github.com/SpenceKonde/ATTinyCore)
-rw-r--r--platforms/avr/led_sysdefs_avr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/platforms/avr/led_sysdefs_avr.h b/platforms/avr/led_sysdefs_avr.h
index b281d53b..27024fe1 100644
--- a/platforms/avr/led_sysdefs_avr.h
+++ b/platforms/avr/led_sysdefs_avr.h
@@ -43,6 +43,9 @@ extern "C" {
# if defined(CORE_TEENSY) || defined(TEENSYDUINO)
extern volatile unsigned long timer0_millis_count;
# define MS_COUNTER timer0_millis_count
+# elif defined(ATTINY_CORE)
+extern volatile unsigned long millis_timer_millis;
+# define MS_COUNTER millis_timer_millis
# else
extern volatile unsigned long timer0_millis;
# define MS_COUNTER timer0_millis