Teensy 4.1 compile errors #676
Replies: 2 comments
-
Most Tensy's are not supported directly. The ARM support in this library is minimal, primarily for those boards that have exposed general ARM board support. Tensy tend to not be very compatible and not tied into Arduino Board Manager. Since this is an Arduino Library, making it hard for novices to use their boards I suspect lowers the requests for library support to me. I get far more requests for RP2040 for an example. While I review them from time to time, the cost ($30) and lack of interest from users and myself has never made them much of a priority. Just some helpful links: https://www.pjrc.com/store/teensy41.html |
Beta Was this translation helpful? Give feedback.
-
Feel free to create an issue to support Teensy 4.1. If it gets enough Up votes I can look into it. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
I've been wanting to use this library with a Teensy 4.1 and the OctoWS2811 adaptor since it seems to be a solid LED combination.
However I get major compile errors on PlatformIO when I try to do so. Could it be that the Teensy 4.1 is not supported by this lib?
Below a rather long output from the console after compiling.
In file included from .pio/libdeps/teensy41/NeoPixelBus/src/NeoPixelBus.h:108:0, from .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoPixelAnimator.cpp:27: .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:716:26: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_SCALE VARIANT_MCK / 2UL / 1000000UL ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:722:69: note: in expansion of macro 'ARM_OTHER_SCALE' static const uint32_t CyclesT0h = static_cast<uint32_t>((0.40 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:717:41: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_INST (2UL * F_CPU / VARIANT_MCK) ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:722:99: note: in expansion of macro 'ARM_OTHER_INST' static const uint32_t CyclesT0h = static_cast<uint32_t>((0.40 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:716:26: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_SCALE VARIANT_MCK / 2UL / 1000000UL ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:723:69: note: in expansion of macro 'ARM_OTHER_SCALE' static const uint32_t CyclesT1h = static_cast<uint32_t>((0.80 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:717:41: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_INST (2UL * F_CPU / VARIANT_MCK) ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:723:99: note: in expansion of macro 'ARM_OTHER_INST' static const uint32_t CyclesT1h = static_cast<uint32_t>((0.80 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:716:26: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_SCALE VARIANT_MCK / 2UL / 1000000UL ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:724:66: note: in expansion of macro 'ARM_OTHER_SCALE' static const uint32_t Cycles = static_cast<uint32_t>((1.25 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:717:41: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_INST (2UL * F_CPU / VARIANT_MCK) ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:724:96: note: in expansion of macro 'ARM_OTHER_INST' static const uint32_t Cycles = static_cast<uint32_t>((1.25 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:716:26: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_SCALE VARIANT_MCK / 2UL / 1000000UL ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:760:69: note: in expansion of macro 'ARM_OTHER_SCALE' static const uint32_t CyclesT0h = static_cast<uint32_t>((0.50 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:717:41: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_INST (2UL * F_CPU / VARIANT_MCK) ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:760:99: note: in expansion of macro 'ARM_OTHER_INST' static const uint32_t CyclesT0h = static_cast<uint32_t>((0.50 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:716:26: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_SCALE VARIANT_MCK / 2UL / 1000000UL ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:761:69: note: in expansion of macro 'ARM_OTHER_SCALE' static const uint32_t CyclesT1h = static_cast<uint32_t>((1.20 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:717:41: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_INST (2UL * F_CPU / VARIANT_MCK) ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:761:99: note: in expansion of macro 'ARM_OTHER_INST' static const uint32_t CyclesT1h = static_cast<uint32_t>((1.20 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:716:26: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_SCALE VARIANT_MCK / 2UL / 1000000UL ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:762:66: note: in expansion of macro 'ARM_OTHER_SCALE' static const uint32_t Cycles = static_cast<uint32_t>((2.50 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:717:41: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_INST (2UL * F_CPU / VARIANT_MCK) ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:762:96: note: in expansion of macro 'ARM_OTHER_INST' static const uint32_t Cycles = static_cast<uint32_t>((2.50 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ In file included from .pio/libdeps/teensy41/NeoPixelBus/src/internal/DotStarGenericMethod.h:139:0, from .pio/libdeps/teensy41/NeoPixelBus/src/NeoPixelBus.h:80, from .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoGamma.cpp:28: .pio/libdeps/teensy41/NeoPixelBus/src/internal/TwoWireSpiImple.h:37:70: warning: 'maybe_unused' attribute directive ignored [-Wattributes] static void applySettings([[maybe_unused]] const SettingsObject& settings) {} ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/TwoWireSpiImple.h:48:70: warning: 'maybe_unused' attribute directive ignored [-Wattributes] static void applySettings([[maybe_unused]] const SettingsObject& settings) {} ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/TwoWireSpiImple.h:59:70: warning: 'maybe_unused' attribute directive ignored [-Wattributes] static void applySettings([[maybe_unused]] const SettingsObject& settings) {} ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/TwoWireSpiImple.h:70:70: warning: 'maybe_unused' attribute directive ignored [-Wattributes] static void applySettings([[maybe_unused]] const SettingsObject& settings) {} ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/TwoWireSpiImple.h:81:70: warning: 'maybe_unused' attribute directive ignored [-Wattributes] static void applySettings([[maybe_unused]] const SettingsObject& settings) {} ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/TwoWireSpiImple.h:92:70: warning: 'maybe_unused' attribute directive ignored [-Wattributes] static void applySettings([[maybe_unused]] const SettingsObject& settings) {} ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/TwoWireSpiImple.h:103:70: warning: 'maybe_unused' attribute directive ignored [-Wattributes] static void applySettings([[maybe_unused]] const SettingsObject& settings) {} ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/TwoWireSpiImple.h:114:70: warning: 'maybe_unused' attribute directive ignored [-Wattributes] static void applySettings([[maybe_unused]] const SettingsObject& settings) {} ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/TwoWireSpiImple.h:125:70: warning: 'maybe_unused' attribute directive ignored [-Wattributes] static void applySettings([[maybe_unused]] const SettingsObject& settings) {} ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/TwoWireSpiImple.h:149:63: warning: 'maybe_unused' attribute directive ignored [-Wattributes] void applySettings([[maybe_unused]] const SettingsObject& settings) ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/TwoWireSpiImple.h:218:63: warning: 'maybe_unused' attribute directive ignored [-Wattributes] void applySettings([[maybe_unused]] const SettingsObject& settings) ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h: In static member function 'static void NeoArmOtherSpeedBase<T_SPEEDPROPS>::send_pixels(uint8_t*, size_t, uint8_t)': .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:775:9: error: 'Pio' was not declared in this scope Pio* port; ^ In file included from .pio/libdeps/teensy41/NeoPixelBus/src/NeoPixelBus.h:81:0, from .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoGamma.cpp:28: .pio/libdeps/teensy41/NeoPixelBus/src/internal/Lpd8806GenericMethod.h:119:63: warning: 'maybe_unused' attribute directive ignored [-Wattributes] void applySettings([[maybe_unused]] const SettingsObject& settings) ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:775:14: error: 'port' was not declared in this scope Pio* port; ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:776:18: error: 'WoReg' does not name a type volatile WoReg* portSet; ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:777:18: error: 'WoReg' does not name a type volatile WoReg* portClear; ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:778:18: error: 'WoReg' does not name a type volatile WoReg* timeValue; ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:779:18: error: 'WoReg' does not name a type volatile WoReg* timeReset; ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:785:35: warning: there are no arguments to 'pmc_set_writeprotect' that depend on a template parameter, so a declaration of 'pmc_set_writeprotect' must be available [-fpermissive] pmc_set_writeprotect(false); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:786:53: error: 'TC3_IRQn' was not declared in this scope pmc_enable_periph_clk(static_cast<uint32_t>(TC3_IRQn)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:786:62: warning: there are no arguments to 'pmc_enable_periph_clk' that depend on a template parameter, so a declaration of 'pmc_enable_periph_clk' must be available [-fpermissive] pmc_enable_periph_clk(static_cast<uint32_t>(TC3_IRQn)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:788:22: error: 'TC1' was not declared in this scope TC_Configure(TC1, 0, ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:789:13: error: 'TC_CMR_WAVE' was not declared in this scope TC_CMR_WAVE | TC_CMR_WAVSEL_UP | TC_CMR_TCCLKS_TIMER_CLOCK1); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:789:27: error: 'TC_CMR_WAVSEL_UP' was not declared in this scope TC_CMR_WAVE | TC_CMR_WAVSEL_UP | TC_CMR_TCCLKS_TIMER_CLOCK1); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:789:46: error: 'TC_CMR_TCCLKS_TIMER_CLOCK1' was not declared in this scope TC_CMR_WAVE | TC_CMR_WAVSEL_UP | TC_CMR_TCCLKS_TIMER_CLOCK1); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:789:72: warning: there are no arguments to 'TC_Configure' that depend on a template parameter, so a declaration of 'TC_Configure' must be available [-fpermissive] TC_CMR_WAVE | TC_CMR_WAVSEL_UP | TC_CMR_TCCLKS_TIMER_CLOCK1); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:790:24: warning: there are no arguments to 'TC_Start' that depend on a template parameter, so a declaration of 'TC_Start' must be available [-fpermissive] TC_Start(TC1, 0); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:792:19: error: 'g_APinDescription' was not declared in this scope pinMask = g_APinDescription[pin].ulPin; // Don't 'optimize' these into ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:794:9: error: 'portSet' was not declared in this scope portSet = &(port->PIO_SODR); // burn a few cycles after ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:795:9: error: 'portClear' was not declared in this scope portClear = &(port->PIO_CODR); // starting timer to minimize ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:796:9: error: 'timeValue' was not declared in this scope timeValue = &(TC1->TC_CHANNEL[0].TC_CV); // the initial 'while'. ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:797:9: error: 'timeReset' was not declared in this scope timeReset = &(TC1->TC_CHANNEL[0].TC_CCR); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:818:26: error: 'TC_CCR_CLKEN' was not declared in this scope *timeReset = TC_CCR_CLKEN | TC_CCR_SWTRG; ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:818:41: error: 'TC_CCR_SWTRG' was not declared in this scope *timeReset = TC_CCR_CLKEN | TC_CCR_SWTRG; ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:838:23: warning: there are no arguments to 'TC_Stop' that depend on a template parameter, so a declaration of 'TC_Stop' must be available [-fpermissive] TC_Stop(TC1, 0); ^ In file included from .pio/libdeps/teensy41/NeoPixelBus/src/NeoPixelBus.h:82:0, from .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoGamma.cpp:28: .pio/libdeps/teensy41/NeoPixelBus/src/internal/Lpd6803GenericMethod.h:119:63: warning: 'maybe_unused' attribute directive ignored [-Wattributes] void applySettings([[maybe_unused]] const SettingsObject& settings) ^ In file included from .pio/libdeps/teensy41/NeoPixelBus/src/NeoPixelBus.h:83:0, from .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoGamma.cpp:28: .pio/libdeps/teensy41/NeoPixelBus/src/internal/Ws2801GenericMethod.h:121:63: warning: 'maybe_unused' attribute directive ignored [-Wattributes] void applySettings([[maybe_unused]] const SettingsObject& settings) ^ In file included from .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoPixelAnimator.cpp:27:0: .pio/libdeps/teensy41/NeoPixelBus/src/NeoPixelBus.h: At global scope: .pio/libdeps/teensy41/NeoPixelBus/src/NeoPixelBus.h:146:118: error: 'NOT_A_PIN' was not declared in this scope NeoPixelBus(uint16_t countPixels, uint8_t pinClock, uint8_t pinData, uint8_t pinLatch, uint8_t pinOutputEnable = NOT_A_PIN) : ^ In file included from .pio/libdeps/teensy41/NeoPixelBus/src/NeoPixelBus.h:84:0, from .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoGamma.cpp:28: .pio/libdeps/teensy41/NeoPixelBus/src/internal/P9813GenericMethod.h:115:63: warning: 'maybe_unused' attribute directive ignored [-Wattributes] void applySettings([[maybe_unused]] const SettingsObject& settings) ^ In file included from .pio/libdeps/teensy41/NeoPixelBus/src/NeoPixelBus.h:85:0, from .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoGamma.cpp:28: .pio/libdeps/teensy41/NeoPixelBus/src/internal/Tlc5947GenericMethod.h:183:63: warning: 'maybe_unused' attribute directive ignored [-Wattributes] void applySettings([[maybe_unused]] const SettingsObject& settings) ^ In file included from .pio/libdeps/teensy41/NeoPixelBus/src/NeoPixelBus.h:108:0, from .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoGamma.cpp:28: .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:110:63: warning: 'maybe_unused' attribute directive ignored [-Wattributes] void applySettings([[maybe_unused]] const SettingsObject& settings) ^ In file included from .pio/libdeps/teensy41/NeoPixelBus/src/NeoPixelBus.h:108:0, from .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoGamma.cpp:28: .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:716:26: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_SCALE VARIANT_MCK / 2UL / 1000000UL ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:722:69: note: in expansion of macro 'ARM_OTHER_SCALE' static const uint32_t CyclesT0h = static_cast<uint32_t>((0.40 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:717:41: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_INST (2UL * F_CPU / VARIANT_MCK) ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:722:99: note: in expansion of macro 'ARM_OTHER_INST' static const uint32_t CyclesT0h = static_cast<uint32_t>((0.40 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:716:26: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_SCALE VARIANT_MCK / 2UL / 1000000UL ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:723:69: note: in expansion of macro 'ARM_OTHER_SCALE' static const uint32_t CyclesT1h = static_cast<uint32_t>((0.80 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:717:41: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_INST (2UL * F_CPU / VARIANT_MCK) ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:723:99: note: in expansion of macro 'ARM_OTHER_INST' static const uint32_t CyclesT1h = static_cast<uint32_t>((0.80 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:716:26: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_SCALE VARIANT_MCK / 2UL / 1000000UL ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:724:66: note: in expansion of macro 'ARM_OTHER_SCALE' static const uint32_t Cycles = static_cast<uint32_t>((1.25 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:717:41: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_INST (2UL * F_CPU / VARIANT_MCK) ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:724:96: note: in expansion of macro 'ARM_OTHER_INST' static const uint32_t Cycles = static_cast<uint32_t>((1.25 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:716:26: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_SCALE VARIANT_MCK / 2UL / 1000000UL ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:760:69: note: in expansion of macro 'ARM_OTHER_SCALE' static const uint32_t CyclesT0h = static_cast<uint32_t>((0.50 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:717:41: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_INST (2UL * F_CPU / VARIANT_MCK) ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:760:99: note: in expansion of macro 'ARM_OTHER_INST' static const uint32_t CyclesT0h = static_cast<uint32_t>((0.50 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:716:26: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_SCALE VARIANT_MCK / 2UL / 1000000UL ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:761:69: note: in expansion of macro 'ARM_OTHER_SCALE' static const uint32_t CyclesT1h = static_cast<uint32_t>((1.20 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:717:41: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_INST (2UL * F_CPU / VARIANT_MCK) ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:761:99: note: in expansion of macro 'ARM_OTHER_INST' static const uint32_t CyclesT1h = static_cast<uint32_t>((1.20 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:716:26: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_SCALE VARIANT_MCK / 2UL / 1000000UL ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:762:66: note: in expansion of macro 'ARM_OTHER_SCALE' static const uint32_t Cycles = static_cast<uint32_t>((2.50 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:717:41: error: 'VARIANT_MCK' was not declared in this scope #define ARM_OTHER_INST (2UL * F_CPU / VARIANT_MCK) ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:762:96: note: in expansion of macro 'ARM_OTHER_INST' static const uint32_t Cycles = static_cast<uint32_t>((2.50 * ARM_OTHER_SCALE + 0.5) - (5 * ARM_OTHER_INST)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h: In static member function 'static void NeoArmOtherSpeedBase<T_SPEEDPROPS>::send_pixels(uint8_t*, size_t, uint8_t)': .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:775:9: error: 'Pio' was not declared in this scope Pio* port; ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:775:14: error: 'port' was not declared in this scope Pio* port; ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:776:18: error: 'WoReg' does not name a type volatile WoReg* portSet; ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:777:18: error: 'WoReg' does not name a type volatile WoReg* portClear; ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:778:18: error: 'WoReg' does not name a type volatile WoReg* timeValue; ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:779:18: error: 'WoReg' does not name a type volatile WoReg* timeReset; ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:785:35: warning: there are no arguments to 'pmc_set_writeprotect' that depend on a template parameter, so a declaration of 'pmc_set_writeprotect' must be available [-fpermissive] pmc_set_writeprotect(false); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:786:53: error: 'TC3_IRQn' was not declared in this scope pmc_enable_periph_clk(static_cast<uint32_t>(TC3_IRQn)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:786:62: warning: there are no arguments to 'pmc_enable_periph_clk' that depend on a template parameter, so a declaration of 'pmc_enable_periph_clk' must be available [-fpermissive] pmc_enable_periph_clk(static_cast<uint32_t>(TC3_IRQn)); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:788:22: error: 'TC1' was not declared in this scope TC_Configure(TC1, 0, ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:789:13: error: 'TC_CMR_WAVE' was not declared in this scope TC_CMR_WAVE | TC_CMR_WAVSEL_UP | TC_CMR_TCCLKS_TIMER_CLOCK1); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:789:27: error: 'TC_CMR_WAVSEL_UP' was not declared in this scope TC_CMR_WAVE | TC_CMR_WAVSEL_UP | TC_CMR_TCCLKS_TIMER_CLOCK1); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:789:46: error: 'TC_CMR_TCCLKS_TIMER_CLOCK1' was not declared in this scope TC_CMR_WAVE | TC_CMR_WAVSEL_UP | TC_CMR_TCCLKS_TIMER_CLOCK1); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:789:72: warning: there are no arguments to 'TC_Configure' that depend on a template parameter, so a declaration of 'TC_Configure' must be available [-fpermissive] TC_CMR_WAVE | TC_CMR_WAVSEL_UP | TC_CMR_TCCLKS_TIMER_CLOCK1); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:790:24: warning: there are no arguments to 'TC_Start' that depend on a template parameter, so a declaration of 'TC_Start' must be available [-fpermissive] TC_Start(TC1, 0); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:792:19: error: 'g_APinDescription' was not declared in this scope pinMask = g_APinDescription[pin].ulPin; // Don't 'optimize' these into ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:794:9: error: 'portSet' was not declared in this scope portSet = &(port->PIO_SODR); // burn a few cycles after ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:795:9: error: 'portClear' was not declared in this scope portClear = &(port->PIO_CODR); // starting timer to minimize ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:796:9: error: 'timeValue' was not declared in this scope timeValue = &(TC1->TC_CHANNEL[0].TC_CV); // the initial 'while'. ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:797:9: error: 'timeReset' was not declared in this scope timeReset = &(TC1->TC_CHANNEL[0].TC_CCR); ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:818:26: error: 'TC_CCR_CLKEN' was not declared in this scope *timeReset = TC_CCR_CLKEN | TC_CCR_SWTRG; ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:818:41: error: 'TC_CCR_SWTRG' was not declared in this scope *timeReset = TC_CCR_CLKEN | TC_CCR_SWTRG; ^ .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoArmMethod.h:838:23: warning: there are no arguments to 'TC_Stop' that depend on a template parameter, so a declaration of 'TC_Stop' must be available [-fpermissive] TC_Stop(TC1, 0); ^ In file included from .pio/libdeps/teensy41/NeoPixelBus/src/internal/NeoGamma.cpp:28:0: .pio/libdeps/teensy41/NeoPixelBus/src/NeoPixelBus.h: At global scope: .pio/libdeps/teensy41/NeoPixelBus/src/NeoPixelBus.h:146:118: error: 'NOT_A_PIN' was not declared in this scope NeoPixelBus(uint16_t countPixels, uint8_t pinClock, uint8_t pinData, uint8_t pinLatch, uint8_t pinOutputEnable = NOT_A_PIN) : ^ *** [.pio/build/teensy41/libe35/NeoPixelBus/internal/NeoGamma.cpp.o] Error 1 *** [.pio/build/teensy41/libe35/NeoPixelBus/internal/NeoPixelAnimator.cpp.o] Error 1
Beta Was this translation helpful? Give feedback.
All reactions