chThdSleepMicrosecond question
Posted: Fri Jul 01, 2011 3:30 am
Hi,
I do simple code in one thread just like this
palSetPad(GPIOB,0);
chThdSleepMicrosecond(50);
palClearPad(GPIOB,0);
chThdSleepMicrosecond(50);
but I cannot get 50 microsec delay but it is always 1 msec
I try with STM8S disocovery and STM32discovery board it is the same behavior.
So any way I can do?
Or I have to make my own delay function?
Thank you
Saran
I do simple code in one thread just like this
palSetPad(GPIOB,0);
chThdSleepMicrosecond(50);
palClearPad(GPIOB,0);
chThdSleepMicrosecond(50);
but I cannot get 50 microsec delay but it is always 1 msec
I try with STM8S disocovery and STM32discovery board it is the same behavior.
So any way I can do?
Or I have to make my own delay function?
Thank you
Saran