Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: WS281X.cpp
- Revision:
- 17:55c563d45bfa
- Parent:
- 9:087006b19049
- Child:
- 18:d2d14429f7ab
--- a/WS281X.cpp Sat Aug 20 19:10:59 2016 +0000
+++ b/WS281X.cpp Tue Aug 23 19:59:05 2016 +0000
@@ -29,6 +29,7 @@
// TARGET_STM32F0
// TARGET_NUCLEO_F030R8
// TARGET_NUCLEO_F070RB
+// TARGET_NUCLEO_F072RB
// TARGET_LPC82X
// TARGET_LPC824
@@ -137,8 +138,9 @@
}
}
-#define _nop1() __nop()
-#define _nop2() __nop(); __nop()
+//#define _nop1() __nop()
+#define _nop1() __asm__("nop")
+#define _nop2() _nop1(); _nop1()
#define _nop3() _nop1(); _nop2()
#define _nop4() _nop2(); _nop2()
#define _nop5() _nop1(); _nop4()