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

System Initialization
[Nut/OS API]

Nut/OS initialization. More...

Functions

void NutMain (void *arg)
 Main application routine.

 NutIdle (void *arg)
 Idle thread.

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.

Todo:
Automatically determine available extension RAM.

Function Documentation

int main void   
 

Nut/OS main entry.

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.

NutMain void *    arg
 

Main application routine.

Nut/OS automatically calls this entry after initialization.

int NutSaveConfig void   
 

Save Nut/OS configuration in the EEPROM.

Returns:
0 if OK, -1 on failures.


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