mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +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
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__ */
|
Reference in New Issue
Block a user