ESP8266 part of the f105-motor-demo project (see f105-motor-demo_stm32)
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.
 
 
 
 
 
 

33 lines
614 B

#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