Nut/OS  4.10.3
API Reference
confos.h File Reference

Header file for global system configuration. More...

#include <sys/types.h>
#include <cfg/eeprom.h>
#include <stdint.h>
Include dependency graph for confos.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _CONFOS
 Operating system configuration structure. More...

Defines

#define CONFOS_EE_OFFSET   0
 Non-volatile memory location.
#define CONFOS_EE_MAGIC   "OS"
#define MAX_HOSTNAME_LEN   15
 Maximum number of characters allowed for hostname.
#define CONFOS_VIRGIN_HOSTNAME   "ethernut"
 Default hostname.

Typedefs

typedef struct _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.

Detailed Description

Header file for global system configuration.

 *
 * $Log$
 * Revision 1.9  2009/01/16 17:03:02  haraldkipp
 * Configurable host name length. The *nix conditional is
 * no longer required as this will be handled in the nvmem
 * routines. NutLoadConfig will now set the virgin host
 * name, if no valid configuration is available. Cookie
 * and virgin host name are configurable too, but disabled
 * in the Configurator until we fixed the string value
 * problem. You may use UserConf.mk instead.
 *
 * Revision 1.8  2008/10/05 16:47:04  haraldkipp
 * Removed attribute 'packed' from typedef.
 *
 * Revision 1.7  2008/08/11 07:00:25  haraldkipp
 * BSD types replaced by stdint types (feature request #1282721).
 *
 * Revision 1.6  2006/05/25 09:18:28  haraldkipp
 * API documentation updated and corrected.
 *
 * Revision 1.5  2006/03/16 15:25:34  haraldkipp
 * Changed human readable strings from u_char to char to stop GCC 4 from
 * nagging about signedness.
 *
 * Revision 1.4  2006/01/23 17:34:29  haraldkipp
 * Configuration structures must be packed.
 *
 * Revision 1.3  2005/07/26 16:02:57  haraldkipp
 * Avoid redefinition of CONFOS_EE_OFFSET.
 *
 * Revision 1.2  2004/03/03 17:52:25  drsung
 * New field 'hostname' added to structure confos.
 *
 * Revision 1.1.1.1  2003/05/09 14:41:19  haraldkipp
 * Initial using 3.2.1
 *
 * Revision 1.4  2003/02/04 18:00:52  harald
 * Version 3 released
 *
 * Revision 1.3  2002/06/26 17:29:28  harald
 * First pre-release with 2.4 stack
 *
 * 

Definition in file confos.h.