This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: HAL_DELAY_US()
> float oneIteration=0.000001342194658704;
> int iterations;
> iterations=(int)(us*1000000*oneIteration);
> busy(iterations);
float?
You really want to pull in the floating point library for a us delay
function? Why not use cyg_uint64 and shift the decimal place around so
you can do integer arithmatic.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss