On 22/05/2019 04:34, Jython wrote:
finally i find it's usleep call causes thatwhile(retry && ((RCC_BDCR & 0x02) == 0)) // External low-speed oscillator ready { retry--; usleep(5000); #if 0 volatile int k = 0; (void)k; int j; for(j = 0; j < 1000; j++) k = k + 1; #endif }
You must call usleep() in a task context, e.g. not during system initialization.
-- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : [email protected] PGP : Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG. _______________________________________________ users mailing list [email protected] http://lists.rtems.org/mailman/listinfo/users
