Moved to external cpp file

This commit is contained in:
Andrew Melvin
2015-08-26 17:36:32 +01:00
parent 6a669f9390
commit e620850707
4 changed files with 72 additions and 0 deletions
+5
View File
@@ -42,11 +42,14 @@ License along with NeoPixel. If not, see
#define UART_INV_MASK (0x3f<<19)
#define UART 1
extern void ICACHE_RAM_ATTR send_pixels_UART(uint8_t* pixels, uint8_t* end);
#else
// due to linker overriding the ICACHE_RAM_ATTR for cpp files, these methods are
// moved into a C file so the attribute will be applied correctly
extern "C" void ICACHE_RAM_ATTR send_pixels_800(uint8_t* pixels, uint8_t* end, uint8_t pin);
extern "C" void ICACHE_RAM_ATTR send_pixels_400(uint8_t* pixels, uint8_t* end, uint8_t pin);
#endif
#endif
@@ -782,6 +785,8 @@ void NeoPixelBus::Show(void)
send_pixels_800(p, end, _pin);
#else
send_pixels_UART(p, end);
char buff[4];
do