PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 3 gadiem
12345678910111213141516171819202122232425262728293031323334353637383940
  1. #define FASTLED_INTERNAL
  2. // Interrupt handlers cannot be defined in the header.
  3. // They must be defined as C functions, or they won't
  4. // be found (due to name mangling), and thus won't
  5. // override any default weak definition.
  6. #if defined(NRF52_SERIES)
  7. #include "platforms/arm/nrf52/led_sysdefs_arm_nrf52.h"
  8. #include "platforms/arm/nrf52/arbiter_nrf52.h"
  9. uint32_t isrCount;
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. // NOTE: Update platforms.cpp in root of FastLED library if this changes
  14. #if defined(FASTLED_NRF52_ENABLE_PWM_INSTANCE0)
  15. void PWM0_IRQHandler(void) { isrCount++; PWM_Arbiter<0>::isr_handler(); }
  16. #endif
  17. #if defined(FASTLED_NRF52_ENABLE_PWM_INSTANCE1)
  18. void PWM1_IRQHandler(void) { isrCount++; PWM_Arbiter<1>::isr_handler(); }
  19. #endif
  20. #if defined(FASTLED_NRF52_ENABLE_PWM_INSTANCE2)
  21. void PWM2_IRQHandler(void) { isrCount++; PWM_Arbiter<2>::isr_handler(); }
  22. #endif
  23. #if defined(FASTLED_NRF52_ENABLE_PWM_INSTANCE3)
  24. void PWM3_IRQHandler(void) { isrCount++; PWM_Arbiter<3>::isr_handler(); }
  25. #endif
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif // defined(NRF52_SERIES)
  30. // FASTLED_NAMESPACE_BEGIN
  31. // FASTLED_NAMESPACE_END