mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +03:00
Update SDK to 2.0.0
- Update SDK header files and libraries to SDK 2.0.0 plus 2.0.0_16_08_09 patch - Remove mem_manager.o from libmain.a (replaced with umm_malloc) - Disable switch from DIO to QIO mode for certain flash chips (saves IRAM space) - Add user_rf_cal_sector_set; it points to rf_init_data sector. - Change the way rf_init_data is spoofed. This is now done by wrapping spi_flash_read and returning the data we need during startup sequence. - Place lwip library into flash using linker script instead of section attributes (saves IRAM space)
This commit is contained in:
committed by
Ivan Grokhotkov
parent
61787b23af
commit
ae13809c81
@ -173,6 +173,11 @@
|
||||
//RTC reg {{
|
||||
#define REG_RTC_BASE PERIPHS_RTC_BASEADDR
|
||||
|
||||
#define RTC_STORE0 (REG_RTC_BASE + 0x030)
|
||||
#define RTC_STORE1 (REG_RTC_BASE + 0x034)
|
||||
#define RTC_STORE2 (REG_RTC_BASE + 0x038)
|
||||
#define RTC_STORE3 (REG_RTC_BASE + 0x03C)
|
||||
|
||||
#define RTC_GPIO_OUT (REG_RTC_BASE + 0x068)
|
||||
#define RTC_GPIO_ENABLE (REG_RTC_BASE + 0x074)
|
||||
#define RTC_GPIO_IN_DATA (REG_RTC_BASE + 0x08C)
|
||||
|
@ -10,6 +10,7 @@ enum esp_now_role {
|
||||
ESP_NOW_ROLE_IDLE = 0,
|
||||
ESP_NOW_ROLE_CONTROLLER,
|
||||
ESP_NOW_ROLE_SLAVE,
|
||||
ESP_NOW_ROLE_COMBO,
|
||||
ESP_NOW_ROLE_MAX,
|
||||
};
|
||||
|
||||
|
45
tools/sdk/include/simple_pair.h
Normal file
45
tools/sdk/include/simple_pair.h
Normal file
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright (C) 2015 -2018 Espressif System
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __SIMPLE_PAIR_H__
|
||||
#define __SIMPLE_PAIR_H__
|
||||
|
||||
typedef enum {
|
||||
SP_ST_STA_FINISH = 0,
|
||||
SP_ST_AP_FINISH = 0,
|
||||
SP_ST_AP_RECV_NEG,
|
||||
SP_ST_STA_AP_REFUSE_NEG,
|
||||
/* all following is err */
|
||||
SP_ST_WAIT_TIMEOUT,
|
||||
SP_ST_SEND_ERROR,
|
||||
SP_ST_KEY_INSTALL_ERR,
|
||||
SP_ST_KEY_OVERLAP_ERR, //means the same macaddr has two different keys
|
||||
SP_ST_OP_ERROR,
|
||||
SP_ST_UNKNOWN_ERROR,
|
||||
SP_ST_MAX,
|
||||
} SP_ST_t;
|
||||
|
||||
|
||||
typedef void (*simple_pair_status_cb_t)(u8 *sa, u8 status);
|
||||
|
||||
int register_simple_pair_status_cb(simple_pair_status_cb_t cb);
|
||||
void unregister_simple_pair_status_cb(void);
|
||||
|
||||
int simple_pair_init(void);
|
||||
void simple_pair_deinit(void);
|
||||
|
||||
int simple_pair_state_reset(void);
|
||||
int simple_pair_ap_enter_announce_mode(void);
|
||||
int simple_pair_sta_enter_scan_mode(void);
|
||||
|
||||
int simple_pair_sta_start_negotiate(void);
|
||||
int simple_pair_ap_start_negotiate(void);
|
||||
int simple_pair_ap_refuse_negotiate(void);
|
||||
|
||||
int simple_pair_set_peer_ref(u8 *peer_mac, u8 *tmp_key, u8 *ex_key);
|
||||
int simple_pair_get_peer_ref(u8 *peer_mac, u8 *tmp_key, u8 *ex_key);
|
||||
|
||||
|
||||
#endif /* __SIMPLE_PAIR_H__ */
|
@ -16,6 +16,7 @@
|
||||
#include "queue.h"
|
||||
#include "user_config.h"
|
||||
#include "spi_flash.h"
|
||||
#include "gpio.h"
|
||||
|
||||
#ifndef MAC2STR
|
||||
#define MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
|
||||
@ -178,6 +179,7 @@ typedef struct bss_info {
|
||||
sint16 freq_offset;
|
||||
sint16 freqcal_val;
|
||||
uint8 *esp_mesh_ie;
|
||||
uint8 simple_pair;
|
||||
} bss_info_t;
|
||||
|
||||
typedef struct _scaninfo {
|
||||
@ -606,4 +608,7 @@ bool wifi_set_user_ie(bool enable, uint8 *m_oui, uint8 type, uint8 *user_ie, uin
|
||||
int wifi_register_user_ie_manufacturer_recv_cb(user_ie_manufacturer_recv_cb_t cb);
|
||||
void wifi_unregister_user_ie_manufacturer_recv_cb(void);
|
||||
|
||||
void wifi_enable_gpio_wakeup(uint32 i, GPIO_INT_TYPE intr_status);
|
||||
void wifi_disable_gpio_wakeup(void);
|
||||
|
||||
#endif
|
||||
|
38
tools/sdk/include/wpa2_enterprise.h
Normal file
38
tools/sdk/include/wpa2_enterprise.h
Normal file
@ -0,0 +1,38 @@
|
||||
#ifndef __WPA2_ENTERPRISE_H__
|
||||
#define __WPA2_ENTERPRISE_H__
|
||||
|
||||
typedef long os_time_t;
|
||||
|
||||
struct os_time {
|
||||
os_time_t sec;
|
||||
os_time_t usec;
|
||||
};
|
||||
|
||||
typedef int (* get_time_func_t)(struct os_time *t);
|
||||
|
||||
int wifi_station_set_wpa2_enterprise_auth(int enable);
|
||||
|
||||
int wifi_station_set_enterprise_cert_key(u8 *client_cert, int client_cert_len,
|
||||
u8 *private_key, int private_key_len,
|
||||
u8 *private_key_passwd, int private_key_passwd_len);
|
||||
void wifi_station_clear_enterprise_cert_key(void);
|
||||
|
||||
int wifi_station_set_enterprise_ca_cert(u8 *ca_cert, int ca_cert_len);
|
||||
void wifi_station_clear_enterprise_ca_cert(void);
|
||||
|
||||
int wifi_station_set_enterprise_username(u8 *username, int len);
|
||||
void wifi_station_clear_enterprise_username(void);
|
||||
|
||||
int wifi_station_set_enterprise_password(u8 *password, int len);
|
||||
void wifi_station_clear_enterprise_password(void);
|
||||
|
||||
int wifi_station_set_enterprise_new_password(u8 *new_password, int len);
|
||||
void wifi_station_clear_enterprise_new_password(void);
|
||||
|
||||
void wifi_station_set_enterprise_disable_time_check(bool disable);
|
||||
bool wifi_station_get_enterprise_disable_time_check(void);
|
||||
|
||||
void wpa2_enterprise_set_user_get_time(get_time_func_t cb);
|
||||
|
||||
|
||||
#endif /* __WPA2_ENTERPRISE_H__ */
|
Reference in New Issue
Block a user