You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
614 B
34 lines
614 B
8 years ago
|
#ifndef __USER_DEVICE_H__
|
||
|
#define __USER_DEVICE_H__
|
||
|
|
||
|
/* NOTICE---this is for 512KB spi flash.
|
||
|
* you can change to other sector if you use other size spi flash. */
|
||
|
#define ESP_PARAM_START_SEC 0x3D
|
||
|
|
||
|
#define packet_size (2 * 1024)
|
||
|
|
||
|
#define token_size 41
|
||
|
|
||
|
struct esp_platform_saved_param {
|
||
|
uint8 devkey[40];
|
||
|
uint8 token[40];
|
||
|
uint8 activeflag;
|
||
|
uint8 pad[3];
|
||
|
};
|
||
|
|
||
|
enum {
|
||
|
DEVICE_CONNECTING = 40,
|
||
|
DEVICE_ACTIVE_DONE,
|
||
|
DEVICE_ACTIVE_FAIL,
|
||
|
DEVICE_CONNECT_SERVER_FAIL
|
||
|
};
|
||
|
|
||
|
struct dhcp_client_info {
|
||
|
ip_addr_t ip_addr;
|
||
|
ip_addr_t netmask;
|
||
|
ip_addr_t gw;
|
||
|
uint8 flag;
|
||
|
uint8 pad[3];
|
||
|
};
|
||
|
#endif
|