Add clock_delay_us and clock_set_seconds to clock.h. Modify clock_wait to use clock_time_t.

Remove the troublesome avr/dev/delay.* files.
Add PLATFORM_NAME and combine the confusing *_REVISION defines into a single PLATFORM_TYPE
This commit is contained in:
David Kopf 2012-04-09 15:49:53 -04:00
parent ea667cef2d
commit cac4e9a222
39 changed files with 810 additions and 481 deletions

View file

@ -134,12 +134,12 @@ clock_delay(unsigned int i)
*
*/
void
clock_wait(int i)
clock_wait(clock_time_t i)
{
clock_time_t start;
start = clock_time();
while(clock_time() - start < (clock_time_t)i);
while(clock_time() - start < i);
}
/*---------------------------------------------------------------------------*/
void