-
Notifications
You must be signed in to change notification settings - Fork 0
/
eemem.h
50 lines (40 loc) · 1.22 KB
/
eemem.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/***************************************************************************
* eemem.h
*
* 11.10.2007
* Copyright 2007 jkrause
*
* Diese Datei enthält alle Definitionen von EEMEM Variablen, die
* im EEPROM gespeichert werden
****************************************************************************/
#ifndef __EEMEM_H__
#define __EEMEM_H__
extern unsigned long EEMEM mlIpEEP;
extern unsigned long EEMEM mlNetmaskEEP;
extern unsigned long EEMEM mlGatewayEEP;
extern unsigned long EEMEM mlDNSserverEEP;
#ifdef FIXED_TFTP_SRV
extern unsigned long EEMEM mlTFTPipEEP;
#endif
typedef struct
{
unsigned short opcode;
unsigned char fnandmode[];
} TFTPREQ;
extern TFTPREQ maTFTPReqStr EEMEM;
#define TFTPReqStrSize 16 // stupid compiler does not want to calculate
// sizeof(maTFTPReqStr), has to be done by hand
typedef struct
{
unsigned short opcode;
unsigned short errcode;
unsigned char errstring[];
} TFTPERR;
extern TFTPERR maTFTPErrStr EEMEM;
#define TFTPErrStrSize 34 // stupid compiler does not want to calculate
// sizeof(maTFTPErrStr), has to be done by hand
#if USE_ENC28J60
extern unsigned char EEMEM enc28j60_config[];
#define ENC28J60_CONFIG_OFFSET_MAC 33
#endif
#endif