-
Notifications
You must be signed in to change notification settings - Fork 13.3k
(WIP) update to latest nonos-sdk (SDK3) #4853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9d87d89
fwupdate
d-a-v a73e919
fw update to latest version:
d-a-v e2412da
helpers to follow sdk updates
d-a-v 561fb39
remove compare scripts - made a separate PR for them
d-a-v 50f2d83
add wep api, restore original espressif comment (wep enabled does not…
d-a-v dc7a73c
sdk3.0 (not using partition table api yet)
d-a-v 9827a40
wip
d-a-v 677323e
wip
d-a-v File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -251,6 +251,7 @@ struct station_config { | |
// with both ssid[] and bssid[] matched. Please check about this. | ||
uint8 bssid[6]; | ||
wifi_fast_scan_threshold_t threshold; | ||
bool open_and_wep_mode_disable; // Can connect to open/wep router by default. | ||
}; | ||
|
||
bool wifi_station_get_config(struct station_config *config); | ||
|
@@ -261,6 +262,9 @@ bool wifi_station_set_config_current(struct station_config *config); | |
bool wifi_station_connect(void); | ||
bool wifi_station_disconnect(void); | ||
|
||
void wifi_enable_signaling_measurement(void); | ||
void wifi_disable_signaling_measurement(void); | ||
|
||
sint8 wifi_station_get_rssi(void); | ||
|
||
typedef enum { | ||
|
@@ -427,6 +431,17 @@ typedef enum { | |
MODEM_SLEEP_T | ||
} sleep_type_t; | ||
|
||
typedef enum { | ||
MIN_SLEEP_T, | ||
MAX_SLEEP_T | ||
} sleep_level_t; | ||
|
||
bool wifi_set_sleep_level(sleep_level_t level); | ||
sleep_level_t wifi_get_sleep_level(void); | ||
|
||
bool wifi_set_listen_interval(uint8 interval); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there info about what this listen interval means, and the units of the argument (e.g. ms)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No doc to my knowledge yet. |
||
uint8 wifi_get_listen_interval(void); | ||
|
||
bool wifi_set_sleep_type(sleep_type_t type); | ||
sleep_type_t wifi_get_sleep_type(void); | ||
|
||
|
@@ -745,6 +760,68 @@ bool wifi_set_country(wifi_country_t *country); | |
*/ | ||
bool wifi_get_country(wifi_country_t *country); | ||
|
||
typedef enum { | ||
SYSTEM_PARTITION_INVALID = 0, | ||
SYSTEM_PARTITION_BOOTLOADER, /* user can't modify this partition address, but can modify size */ | ||
SYSTEM_PARTITION_OTA_1, /* user can't modify this partition address, but can modify size */ | ||
SYSTEM_PARTITION_OTA_2, /* user can't modify this partition address, but can modify size */ | ||
SYSTEM_PARTITION_RF_CAL, /* user must define this partition */ | ||
SYSTEM_PARTITION_PHY_DATA, /* user must define this partition */ | ||
SYSTEM_PARTITION_SYSTEM_PARAMETER, /* user must define this partition */ | ||
SYSTEM_PARTITION_AT_PARAMETER, | ||
SYSTEM_PARTITION_SSL_CLIENT_CERT_PRIVKEY, | ||
SYSTEM_PARTITION_SSL_CLIENT_CA, | ||
SYSTEM_PARTITION_SSL_SERVER_CERT_PRIVKEY, | ||
SYSTEM_PARTITION_SSL_SERVER_CA, | ||
SYSTEM_PARTITION_WPA2_ENTERPRISE_CERT_PRIVKEY, | ||
SYSTEM_PARTITION_WPA2_ENTERPRISE_CA, | ||
|
||
SYSTEM_PARTITION_CUSTOMER_BEGIN = 100, /* user can define partition after here */ | ||
SYSTEM_PARTITION_MAX | ||
} partition_type_t; | ||
|
||
typedef struct { | ||
partition_type_t type; /* the partition type */ | ||
uint32_t addr; /* the partition address */ | ||
uint32_t size; /* the partition size */ | ||
} partition_item_t; | ||
|
||
/** | ||
* @brief regist partition table information, user MUST call it in user_pre_init() | ||
* | ||
* @param partition_table: the partition table | ||
* @param partition_num: the partition number in partition table | ||
* @param map: the flash map | ||
* | ||
* @return true : succeed | ||
* @return false : fail | ||
*/ | ||
bool system_partition_table_regist( | ||
const partition_item_t* partition_table, | ||
uint32_t partition_num, | ||
uint32_t map | ||
); | ||
|
||
#if 0 // as of today, arduino core has its own ota api | ||
/** | ||
* @brief get ota partition size | ||
* | ||
* @return the size of ota partition | ||
*/ | ||
uint32_t system_partition_get_ota_partition_size(void); | ||
#endif // not using espressif ota | ||
|
||
/** | ||
* @brief get partition information | ||
* | ||
* @param type: the partition type | ||
* @param partition_item: the point to store partition information | ||
* | ||
* @return true : succeed | ||
* @return false : fail | ||
*/ | ||
bool system_partition_get_item(partition_type_t type, partition_item_t* partition_item); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1 +1 @@ | ||
v2.1.0-10-g509eae8 | ||
v2.2.0-28-g89920dc |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there info about what this sleep level means?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question already asked, no answer yet. Reading actual values and playing with them may help #2330.