Chau Vo / device_configuration

Dependents:   F103-Web-Server

Fork of my_eeprom_funcs by Chau Vo

Revision:
8:4fc4b1b5509b
Parent:
6:241d1539914a
Child:
10:f37acffddef9
--- a/my_eeprom_funcs.h	Sat Dec 06 17:28:30 2014 +0000
+++ b/my_eeprom_funcs.h	Sun Dec 07 00:17:32 2014 +0000
@@ -28,7 +28,7 @@
 #define IP_GATEWAY_POS         8
 #define TCP_SERVER_LOCAL_PORT_POS    12
 #define UDP_SERVER_LOCAL_PORT_POS    13
-#define FIRST_RUN_FLAG_POS     14
+#define CONFIGURED_IP_FLAG_POS     14
 #define MAC_ADDRESS_POS        15
 // EEPROM: for setting TCP server where this device connects to in TCP client mode
 #define AUTO_TRANSMIT_FLAG_POS  18
@@ -48,7 +48,7 @@
 extern uint8_t u8mac[], u8ip_addr[];// keep mac and ip address in 8-bits
 extern uint16_t u16mac_addr[], u16ip_addr[], u16ip_subnet[], u16ip_gateway[]; // 16-bits, directly loaded from eeprom
 extern char str_ip_addr[], str_ip_subnet[], str_ip_gateway[]; // for printf, converted from 16-bits u16ip_xxx
-extern uint16_t first_run;  // first run flag
+extern uint16_t configured_ip;  // first run flag
 
 extern const uint16_t tcp_server_local_port; // fixed
 extern const uint16_t udp_server_local_port; // fixed