Undeclared functions and variables

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

Undeclared functions and variables

1,249件の閲覧回数
itr1718
Contributor III
  • Hello

 

I am working on kds with MKL27Z256 MCU. I want to print real time and wrote some functions and variables such as clock_gettime, CLOCK_MONOTONIC and struct tm. But I got errors about them. Errors said they are undeclared. Of course, I set also time.h.

 

Why is there the problem and how can I solve this?

 

Happy new year!

0 件の賞賛
1 返信

1,204件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi irt:

 

The ANSI library provides several functions to get the current time. In an embedded systems environment, implementations for these functions can not  be provided because different targets may use different ways to count the time.

 

I would suggest you write your own functions with the real time clock component on your board.

 

Regards

Daniel

0 件の賞賛