369747f9826f95bfe3e6684404f2cc83635f294b
Stefan Schuermans support for reading MAC/IP...

Stefan Schuermans authored 12 years ago

1) /* flaneth - flash and ethernet
2)    Copyright (C) 2007-2012 Stefan Schuermans <stefan@schuermans.info>
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);