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

System Configuration
[Nut/OS API]

Collaboration diagram for System Configuration:


Detailed Description

Nut/OS configuration structure.


Data Structures

struct  _CONFOS
 Operating system configuration structure. More...
struct  _CONFOS
 Operating system configuration structure. More...

Defines

#define CONFOS_EE_OFFSET   0
 Non-volatile memory location.
#define CONFOS_EE_MAGIC   "OS"

Typedefs

typedef _CONFOS CONFOS
 Operating system configuration type.

Functions

int NutLoadConfig (void)
 Load Nut/OS configuration from non-volatile memory.
int NutSaveConfig (void)
 Save Nut/OS configuration in non-volatile memory.

Variables

CONFOS confos
 Global system configuration structure.
CONFOS confos
 Global system configuration structure.


Define Documentation

#define CONFOS_EE_OFFSET   0
 

Non-volatile memory location.

Offset into non-volatile memory, where Nut/OS stores the system configuration. The default may be overridden by the Configurator.


Function Documentation

int NutLoadConfig void   ) 
 

Load Nut/OS configuration from non-volatile memory.

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 non-volatile memory.

Returns:
0 if OK, -1 on failures.


Variable Documentation

CONFOS confos
 

Global system configuration structure.

Contains the current system configuration. Nut/OS will load this structure from non-volatile memory during initialization.

CONFOS confos
 

Global system configuration structure.

Contains the current system configuration. Nut/OS will load this structure from non-volatile memory during initialization.


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