WS2812

Dependents:   pelion-example-common

Files at this revision

API Documentation at this revision

Comitter:
ytsuboi
Date:
Sat Nov 17 14:46:30 2018 +0000
Parent:
3:6e60574091dd
Commit message:
Support IARCC compiler

Changed in this revision

WS2812.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 6e60574091dd -r 11215bdf5084 WS2812.cpp
--- a/WS2812.cpp	Mon Nov 12 05:05:50 2018 +0000
+++ b/WS2812.cpp	Sat Nov 17 14:46:30 2018 +0000
@@ -2,6 +2,8 @@
 
 #if defined ( __GNUC__ )    /* GCC Compiler */
 #define NOP __asm __volatile("nop\n")
+#elif defined(__ICCARM__)     /* IAR */
+#define NOP asm("NOP")
 #else
 #define NOP __nop()
 #endif