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

System Initialization

Nut/OS initialization. More...

Functions

void NutMain (void *arg)
 Main application routine. More...

 NutIdle (void *arg)
 Idle thread.

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

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

int main (void)
 Nut/OS main entry. More...


Detailed Description

Nut/OS initialization.

Version:
2.0.4
Author:
Harald Kipp, egnite Software GmbH

Todo:
Automatically determine available extension RAM.

Function Documentation

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.

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.

For internal use only.


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