Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

Old System Initialization
[Nut/OS API]

Nut/OS initialization. More...

Functions

int NutLoadConfig (void)
 Load Nut/OS configuration from the EEPROM.

int NutSaveConfig (void)
 Save Nut/OS configuration in the EEPROM.

int main (void)
 Nut/OS main entry.


Detailed Description

Nut/OS initialization.

Deprecated:
New programs should link to nutinit.

Function Documentation

int main void   
 

Nut/OS main entry.

Deprecated:
New programs should link to nutinit.
This is the entry point for C programs. To hide neccessary system initialization from the user program, this entry point is included in the Nut/OS library as a separate object module.

It will initialize memory management and the thread system and start an idle thread, which in turn initializes the timer functions. Finally NutMain() is called, which must be defined by the application and may be used to start additional application threads.

int NutLoadConfig void   
 

Load Nut/OS configuration from the EEPROM.

This routine is automatically called during system initialization.

Returns:
0 if OK, -1 if configuration isn't available.

int NutSaveConfig void   
 

Save Nut/OS configuration in the EEPROM.

Returns:
0 if OK, -1 on failures.


© 2000-2003 by egnite Software GmbH - visit http://www.ethernut.de/