We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45a6b03 commit c53496aCopy full SHA for c53496a
ports/stm32f4/common-hal/neopixel_write/__init__.c
@@ -76,13 +76,9 @@ void common_hal_neopixel_write (const digitalio_digitalinout_obj_t* digitalinout
76
cyc = (pix & mask) ? t1 : t0;
77
start = DWT->CYCCNT;
78
LL_GPIO_SetOutputPin(p_port, p_mask);
79
- while((DWT->CYCCNT - start) < cyc) {
80
- __asm__ __volatile__("nop");
81
- }
+ while((DWT->CYCCNT - start) < cyc);
82
LL_GPIO_ResetOutputPin(p_port, p_mask);
83
- while((DWT->CYCCNT - start) < interval) {
84
85
+ while((DWT->CYCCNT - start) < interval);
86
if(!(mask >>= 1)) {
87
if(p >= end) break;
88
pix = *p++;
0 commit comments