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:
authorDaniel Garcia <danielgarcia@gmail.com>2014-04-09 08:03:47 +0400
committerDaniel Garcia <danielgarcia@gmail.com>2014-04-09 08:03:47 +0400
commit0c00d948804c682379d2dbdefd6bac069508723a (patch)
treee639c3716cbb37b181e17913a18313b87d62d60a /fastspi.h
parent77a916df1130fec60c85caedc2ae624666001d99 (diff)
Add support for the second hardware SPI port on the teensy 3.1
Diffstat (limited to 'fastspi.h')
-rw-r--r--fastspi.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/fastspi.h b/fastspi.h
index 68d74a99..d6a73352 100644
--- a/fastspi.h
+++ b/fastspi.h
@@ -66,7 +66,13 @@ class SoftwareSPIOutput : public AVRSoftwareSPIOutput<_DATA_PIN, _CLOCK_PIN, _SP
#if defined(FASTLED_TEENSY3) && defined(CORE_TEENSY)
template<uint8_t SPI_SPEED>
-class SPIOutput<SPI_DATA, SPI_CLOCK, SPI_SPEED> : public ARMHardwareSPIOutput<SPI_DATA, SPI_CLOCK, SPI_SPEED> {};
+class SPIOutput<SPI_DATA, SPI_CLOCK, SPI_SPEED> : public ARMHardwareSPIOutput<SPI_DATA, SPI_CLOCK, SPI_SPEED, 0x4002C000> {};
+
+#if defined(SPI2_DATA)
+
+template<uint8_t SPI_SPEED>
+class SPIOutput<SPI2_DATA, SPI2_CLOCK, SPI_SPEED> : public ARMHardwareSPIOutput<SPI2_DATA, SPI2_CLOCK, SPI_SPEED, 0x4002D000> {};
+#endif
#elif defined(__SAM3X8E__)