23423952a83cf88e8c86cac042c4ce72c04b8e15
Stefan Schuermans support for reading MAC/IP...

Stefan Schuermans authored 12 years ago

1) /* flaneth - flash and ethernet
Stefan Schuermans change email address in hea...

Stefan Schuermans authored 12 years ago

2)    Copyright (C) 2007-2012 Stefan Schuermans <stefan@blinkenarea.org>
Stefan Schuermans support for reading MAC/IP...

Stefan Schuermans authored 12 years ago

3)    Copyleft: GNU public license V2 - http://www.gnu.org/copyleft/gpl.html
4)    a BlinkenArea project - http://www.blinkenarea.org/ */
5) 
Stefan Schuermans iplemented 1st part of BBM...

Stefan Schuermans authored 12 years ago

6) #include "apps_tools.h"
Stefan Schuermans support for reading MAC/IP...

Stefan Schuermans authored 12 years ago

7) #include "app_cfg.h"
8) #include "config.h"
9) #include "debug.h"
10) #include "dosfs.h"
11) #include "rtl8019.h"
12) 
13) /**
14)  * @brief update configuration
15)  * @param[in] sectorBuf scratch buffer to store a sector
16)  * @param[in] vi volume information structure
17)  */
18) void AppCfgRun(uint8_t sectorBuf[SECTOR_SIZE], VOLINFO *vi) // (extern)
19) {
20)   // load config
Stefan Schuermans iplemented 1st part of BBM...

Stefan Schuermans authored 12 years ago

21)   debug_app_cfg_printf("reading config");
22)   if (AppsToolsReadMac(sectorBuf, vi, "cfg/mac", ConfigMac) == 0)
Stefan Schuermans support for reading MAC/IP...

Stefan Schuermans authored 12 years ago

23)     RtlInit();
Stefan Schuermans iplemented 1st part of BBM...

Stefan Schuermans authored 12 years ago

24)   AppsToolsReadIp(sectorBuf, vi, "cfg/ip", ConfigIp);
25)   AppsToolsReadIp(sectorBuf, vi, "cfg/mask", ConfigMask);
26)   AppsToolsReadIp(sectorBuf, vi, "cfg/gw", ConfigGw);