Fix missing clang-tidy missing IRAM_ATTR (#487)

It seems that IRAM_ATTR is not defined when clang-tidy checks leading to
errors like the following:

```
Error: /__w/esphome/esphome/.pio/libdeps/livingroom8266/NeoPixelBus/src/internal/NeoEsp8266DmaMethod.h:244:17: error: variable has incomplete type 'void' [clang-diagnostic-error]
    static void IRAM_ATTR i2s_slc_isr(void)
                ^
```

Include Arduino.h in global context just like in other header files
makes sure that IRAM_ATTR is defined in all cases.
This commit is contained in:
Stefan Agner
2021-06-16 17:42:43 +02:00
committed by GitHub
parent 36b44f6b73
commit 6112e23e94

View File

@@ -32,9 +32,10 @@ License along with NeoPixel. If not, see
#ifdef ARDUINO_ARCH_ESP8266
#include "Arduino.h"
extern "C"
{
#include "Arduino.h"
#include "osapi.h"
#include "ets_sys.h"