Delay_ms and Delay_us arguments : why only constants?

Post your requests and ideas on the future development of mikroC.
Post Reply
Author
Message
CGEngineering
Posts: 144
Joined: 09 May 2007 23:31
Location: Florence - Italy
Contact:

Delay_ms and Delay_us arguments : why only constants?

#1 Post by CGEngineering » 21 Feb 2008 14:07

Hi,

As object, can you include in the delay_ library the same delay_ms and delay_us functions, that can even accept as argument a non-const variable?
They would be useful if a user have to use a software delay with variable times!

Thanks
Bye
CG

arcom
Posts: 271
Joined: 07 Dec 2007 17:00
Location: Rijeka/Croatia
Contact:

#2 Post by arcom » 21 Feb 2008 15:35

I assume that the Delays library is shared across mC, mP and mB - in that case you have Vdelay_ms function that accepts a variable as parameter, although it's not very accurate.

Post Reply

Return to “mikroC Wish List”