Hi Frank, On Sun, Feb 08, 2015 at 11:47:25AM +0100, Frank Holtz wrote: > i have looked into periph drivers and found a lot of single line "while" > statements waiting for finishing things. > ... > Slow devices like ADC, Flash, UART or Random number generation are > wasting a lot of CPU cycles while waiting to finish an action. This > blocks task switching(right?) and preventing to go into sleep mode.
Wrong =) As long as the calling thread (or the respective implementation) does not disable interrupts, the caller may be preempted. Cheers, Ludwig _______________________________________________ devel mailing list devel@riot-os.org http://lists.riot-os.org/mailman/listinfo/devel