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:
authorCraig Link <craigl@zillowgroup.com>2021-02-28 12:02:54 +0300
committerCraig Link <craigl@zillowgroup.com>2021-02-28 12:02:54 +0300
commit0939ce094e12a25c6083742f6e992c27be72373e (patch)
tree5ee1f1a5056b217662061486cbf824924ca3d3f1
parenta8a2be7513bd9bc0f9450739826453689a6823c9 (diff)
add VPORT comment
-rw-r--r--src/platforms/avr/fastpin_avr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platforms/avr/fastpin_avr.h b/src/platforms/avr/fastpin_avr.h
index 08dcdc13..741d3f34 100644
--- a/src/platforms/avr/fastpin_avr.h
+++ b/src/platforms/avr/fastpin_avr.h
@@ -60,7 +60,7 @@ typedef volatile uint8_t & reg8_t;
#elif defined(__AVR_ATmega4809__)
-
+// Leverage VPORTs instead of PORTs for faster access
#define _FL_IO(L,C) _RD8(VPORT ## L ## _DIR); _RD8(VPORT ## L ## _OUT); _RD8(VPORT ## L ## _IN); _FL_DEFINE_PORT3(L, C, _R(VPORT ## L ## _OUT));
#define _FL_DEFPIN(_PIN, BIT, L) template<> class FastPin<_PIN> : public _AVRPIN<_PIN, 1<<BIT, _R(VPORT ## L ## _OUT), _R(VPORT ## L ## _DIR), _R(VPORT ## L ## _IN)> {};