blob: ea7e1b3395a546ebab5cf0cddf5faf0b42d71655 [file] [log] [blame]
oliverschmidt19032c62004-06-14 22:30:32 +00001/*
oliverschmidt9e652ff2004-07-11 12:24:52 +00002 * Copyright (c) 2004, Adam Dunkels.
oliverschmidt19032c62004-06-14 22:30:32 +00003 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above
11 * copyright notice, this list of conditions and the following
12 * disclaimer in the documentation and/or other materials provided
13 * with the distribution.
oliverschmidt9e652ff2004-07-11 12:24:52 +000014 * 3. All advertising materials mentioning features or use of this
15 * software must display the following acknowledgement:
16 * This product includes software developed by Adam Dunkels.
17 * 4. The name of the author may not be used to endorse or promote
oliverschmidt19032c62004-06-14 22:30:32 +000018 * products derived from this software without specific prior
19 * written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
22 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
25 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
27 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
oliverschmidt9e652ff2004-07-11 12:24:52 +000033 * This file is part of the Contiki desktop environment
oliverschmidt19032c62004-06-14 22:30:32 +000034 *
oliverschmidte31aaa92006-06-28 23:10:43 +000035 * $Id: config.h,v 1.8 2006/06/28 23:10:44 oliverschmidt Exp $
oliverschmidt19032c62004-06-14 22:30:32 +000036 *
37 */
38#ifndef __CONFIG_H__
39#define __CONFIG_H__
40
41typedef struct {
oliverschmidt76872e82004-12-26 14:13:34 +000042 unsigned char bkgnd;
oliverschmidtd5011942005-05-13 00:00:16 +000043 char screensaver[16];
44 unsigned char timeout;
oliverschmidt2fa33232005-01-26 21:33:29 +000045 char driver[16];
oliverschmidtd5011942005-05-13 00:00:16 +000046 unsigned char slot;
oliverschmidt1a1e6282006-05-25 00:11:10 +000047 char prefix[65];
oliverschmidt76872e82004-12-26 14:13:34 +000048 u16_t ipaddr[2];
49 u16_t netmask[2];
50 u16_t gateway[2];
51 u16_t dnsserver[2];
oliverschmidtd5011942005-05-13 00:00:16 +000052 unsigned char maclsb;
oliverschmidt19032c62004-06-14 22:30:32 +000053} config_t;
54
oliverschmidt2fa33232005-01-26 21:33:29 +000055extern unsigned char lanslot;
oliverschmidte31aaa92006-06-28 23:10:43 +000056extern unsigned char prefixok;
oliverschmidt2fa33232005-01-26 21:33:29 +000057
oliverschmidte31aaa92006-06-28 23:10:43 +000058#define config_getlanslot() lanslot
59#define config_setlanslot(slot) lanslot = (slot)
oliverschmidt1a1e6282006-05-25 00:11:10 +000060
oliverschmidte31aaa92006-06-28 23:10:43 +000061#define config_getprefixok() prefixok
62#define config_setprefixok(ok) prefixok = (ok)
oliverschmidt2fa33232005-01-26 21:33:29 +000063
oliverschmidt19032c62004-06-14 22:30:32 +000064#endif /* __CONFIG_H__ */