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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

2,751件の閲覧回数
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

ラベル(1)
タグ(1)
0 件の賞賛
返信
4 返答(返信)

879件の閲覧回数
Ivychacha
Contributor I
ok thanks crasycat I see it.

--
Ivychacha
0 件の賞賛
返信

879件の閲覧回数
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 件の賞賛
返信

879件の閲覧回数
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 件の賞賛
返信

879件の閲覧回数
CrasyCat
Specialist III
Hello
 
Which CPU are you targeting (HC08, HC12, Coldfire, ...)?
Are you using an OS on your target?
 
CrasyCat
0 件の賞賛
返信