PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

41 行
1.3KB

  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