Atmel CAVR-4 Manual De Usuario

Descargar
Página de 323
CAVR-4
74
Time
AVR® IAR C/C++ Compiler
Reference Guide
This does not require that you rebuild the library. You can find source templates in the 
files 
Signal.c
 and 
Raise.c
 in the 
avr\src\lib
 directory. For information about 
overriding default library modules, see Overriding library modules, page 61. 
If you decide to rebuild the library, you can find source templates in the library project 
template. For further information, see Building and using a customized library, page 62.
Time
To make the 
time
 and 
date
 functions work, you must implement the three functions 
clock
time
, and 
_ _getzone
.
This does not require that you rebuild the library. You can find source templates in the 
files 
Clock.c
 and 
Time.c
, and 
Getzone.c
 in the 
avr\src\lib
 directory. For 
information about overriding default library modules, see Overriding library modules
page 61. 
If you decide to rebuild the library, you can find source templates in the library project 
template. For further information, see Building and using a customized library, page 62.
The default implementation of 
_ _getzone
 specifies UTC as the time-zone.
Note: If you link your application with support for I/O debugging, the functions 
clock
 
and 
time
 will be replaced by C-SPY variants that return the host clock and time 
respectively. For further information, see C-SPY Debugger runtime interface, page 76.
Strtod
The function 
strtod
 does not accept hexadecimal floating-point strings in libraries 
with the normal library configuration. To make a library do so, you need to rebuild the 
library, see Building and using a customized library, page 62. Enable the configuration 
symbol 
_DLIB_STRTOD_HEX_FLOAT
 in the library configuration file.