Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of my_eeprom_funcs by
Diff: my_eeprom_funcs.h
- Revision:
- 1:6bdc99dd8e0a
- Parent:
- 0:aa07a25a9005
- Child:
- 3:69e1c4ed69e1
--- a/my_eeprom_funcs.h Sun Sep 28 16:53:27 2014 +0000 +++ b/my_eeprom_funcs.h Sun Sep 28 17:35:07 2014 +0000 @@ -29,7 +29,7 @@ #define MAC_ADDRESS_POS 15 // EEPROM: for TCP server this device connects to in TCP client mode #define AUTO_TRANSMIT_FLAG_POS 18 -#define TIME_PERIOD_POS 19 +#define AUTO_TRANSMIT_TIME_PERIOD_POS 19 #define TCP_SERVER_IP_ADDR_POS 20 #define TCP_SERVER_PORT_POS 24 @@ -48,18 +48,20 @@ extern const uint16_t udp_server_local_port; // fixed // this section is for the TCP server that this device connects to in TCP client mode -extern uint16_t auto_transmit, time_period; // auto transmit status, time period = 1s +extern uint16_t auto_transmit_flag, transmit_time_period; // auto transmit status, time period = 1s +extern uint16_t u16server_ip_addr[]; // directly loaded from eeprom +extern uint16_t u16tcp_server_port; // directly loaded from eeprom extern uint8_t u8server_ip_addr[]; extern char * server_ip_addr; extern char str_server_ip_addr[]; -extern uint16_t tcp_server_port; /* * My eeprom functions */ +void write_eeprom_network(char* buf); void load_eeprom_network(void); -void write_eeprom_network(char* buf); +void write_eeprom_tcpserver(char* buf); void load_eeprom_tcpserver(void); -void write_eeprom_tcpserver(char* buf); + #endif
