-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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)
- Loading branch information
Showing
46 changed files
with
794 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* ringbuf.h | ||
* | ||
* Created on: Apr 22, 2016 | ||
* Author: liuhan | ||
*/ | ||
|
||
#ifndef _ESPCONN_BUF_H_ | ||
#define _ESPCONN_BUF_H_ | ||
|
||
/* | ||
* ringbuffer.c | ||
* | ||
* Created on: Apr 22, 2016 | ||
* Author: liuhan | ||
*/ | ||
#include "c_types.h" | ||
|
||
#include "ets_sys.h" | ||
#include "os_type.h" | ||
|
||
typedef struct ringbuf_t { | ||
uint8_t *buf; | ||
uint8_t *head, *tail; | ||
size_t size; | ||
} ringbuf, *ringbuf_t; | ||
|
||
ringbuf_t ringbuf_new(size_t capacity); | ||
|
||
size_t ringbuf_buffer_size(const struct ringbuf_t *rb); | ||
|
||
void ringbuf_reset(ringbuf_t rb); | ||
|
||
void ringbuf_free(ringbuf_t *rb); | ||
|
||
size_t ringbuf_capacity(const struct ringbuf_t *rb); | ||
|
||
size_t ringbuf_bytes_free(const struct ringbuf_t *rb); | ||
|
||
size_t ringbuf_bytes_used(const struct ringbuf_t *rb); | ||
|
||
int ringbuf_is_full(const struct ringbuf_t *rb); | ||
|
||
int ringbuf_is_empty(const struct ringbuf_t *rb); | ||
|
||
const void* ringbuf_tail(const struct ringbuf_t *rb); | ||
|
||
const void* ringbuf_head(const struct ringbuf_t *rb); | ||
|
||
static uint8_t *ringbuf_nextp(ringbuf_t rb, const uint8_t *p); | ||
|
||
size_t ringbuf_findchr(const struct ringbuf_t *rb, int c, size_t offset); | ||
|
||
size_t ringbuf_memset(ringbuf_t dst, int c, size_t len); | ||
|
||
void *ringbuf_memcpy_into(ringbuf_t dst, const void *src, size_t count); | ||
|
||
void *ringbuf_memcpy_from(void *dst, ringbuf_t src, size_t count); | ||
|
||
#endif /* RINGBUF_H_ */ |
Oops, something went wrong.