coldfire: why can't I use the sleep function?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

coldfire: why can't I use the sleep function?

2,394 Views
Ivychacha
Contributor I
Hi all,

I'd like to use the sleep function in my code and I've found the definition of this function in the CW help:

#include
unsigned int sleep(unsigned int sleep);

But when I tried to use this function in my code i can't compile it, getting link error "undefine funtion: sleep".

Am I doing something wrong? why can't I use this function?

Any ideas? I'm confused :/

Ivy

Message Edited by CrasyCat on 2007-04-13 01:37 PM

Labels (1)
0 Kudos
4 Replies

522 Views
Ivychacha
Contributor I
ok thanks crasycat I see it.

--
Ivychacha
0 Kudos

522 Views
Ivychacha
Contributor I
Hi crasycat,

sorry I forgot that information :smileyvery-happy:

I'm using the ColdWarrior 5.7 on a MCF5235BCC EVB.

--
Ivy
0 Kudos

522 Views
CrasyCat
Specialist III
Hello
 
  In our embedded products, we usually do not provide source code for time management functions as
 these functions are board and OS specific.
 
 This leaves customer the choice of implementing their own time management functions.
 If you are using an embedded OS, you may want to remap the sleep function to some OS
 related function.
 
CrasyCat
0 Kudos

522 Views
CrasyCat
Specialist III
Hello
 
Which CPU are you targeting (HC08, HC12, Coldfire, ...)?
Are you using an OS on your target?
 
CrasyCat
0 Kudos