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: device_configuration.h
- Revision:
- 20:858384cac44a
- Parent:
- 19:5671f3c25342
- Child:
- 21:23ae23754f0b
--- a/device_configuration.h Tue Aug 23 11:05:38 2016 +0000 +++ b/device_configuration.h Mon Aug 29 21:29:38 2016 +0000 @@ -26,6 +26,9 @@ #define DEFAULT_ENABLE_FLAG_VALUE 0xA5A5 #define DEFAULT_DISABLE_FLAG_VALUE 0xAAAA +#define DEFAULT_INTER_DATA_PERIOD 500 // in ms +#define DEFAULT_SPECIAL_CHARACTER '\n' // LF + // Positions of variables in EEPROM array #define IP_ADDRESS_POS 0 // 4x16-bit #define IP_SUBNET_POS 8 // 4x16-bit @@ -47,6 +50,10 @@ #define ENABLE_TCP_CLIENT_POS 62 // 16-bit #define ENABLE_UDP_SERVER_POS 64 // 16-bit #define ENABLE_UDP_CLIENT_POS 66 // 16-bit +// serial inter-data period +#define INTER_DATA_PERIOD_POS 68 // 16-bit +// special character signals sending data +#define SPECIAL_CHAR_POS 70 // 16-bit // prototypes @@ -55,7 +62,8 @@ uint16_t tcp_port, uint16_t udp_port, uint16_t* remote_tcp_ip, uint16_t remote_tcp_port, uint16_t auto_transmit, uint16_t transmit_period, uint16_t* remote_udp_ip, uint16_t remote_udp_port, - uint16_t enable_tcp_server, uint16_t enable_tcp_client, uint16_t enable_udp_server, uint16_t enable_udp_client); + uint16_t enable_tcp_server, uint16_t enable_tcp_client, uint16_t enable_udp_server, uint16_t enable_udp_client, + uint16_t inter_data_period, uint16_t special_char); void read_device_configuration(); void reset_default_device_configuration();