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