-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
esp_wifi working partial bindings, enable drawer & wifi again
- Loading branch information
1 parent
d3c86f2
commit 06f2c5a
Showing
25 changed files
with
1,955 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/idf-project/*/build | ||
/idf-project/*/sdkconfig | ||
/idf-project/*/sdkconfig.old | ||
|
||
.dub | ||
*.a |
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 @@ | ||
../partitions.csv |
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,2 @@ | ||
#CONFIG_PARTITION_TABLE_CUSTOM=y | ||
#CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y |
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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
idf_component_register( | ||
SRCS | ||
"../../../source/idfd/signalio/idfd_signalio_i2s_c_code.c" | ||
"../../../source/idf/esp_wifi/idf_esp_wifi_c_code.c" | ||
"../../../source/idf/sys/socket/idf_sys_socket_c_code.c" | ||
INCLUDE_DIRS "." | ||
) | ||
target_link_libraries("${COMPONENT_LIB}" "${PROJECT_DIR}/dcode.a") | ||
target_link_options("${COMPONENT_LIB}" INTERFACE "-Wl,--start-group") # Allow forward references during linkage | ||
#target_link_options("${COMPONENT_LIB}" INTERFACE "-Wl,--print-gc-sections") |
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,5 @@ | ||
# Name, Type, SubType, Offset, Size, Flags | ||
# 4M total | ||
nvs, data, nvs, , 0x6000, | ||
phy_init, data, phy, , 0x1000, | ||
factory, app, factory, , 0x3F0000, |
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 @@ | ||
../partitions.csv |
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
CONFIG_COMPILER_OPTIMIZATION_PERF=y | ||
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_ENABLE=n | ||
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE=y | ||
#CONFIG_PARTITION_TABLE_CUSTOM=y | ||
#CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y |
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,11 @@ | ||
module idf.esp_hw_support.esp_interface; | ||
|
||
@safe pure nothrow extern(C): | ||
|
||
enum esp_interface_t | ||
{ | ||
ESP_IF_WIFI_STA = 0, /**< ESP32 station interface */ | ||
ESP_IF_WIFI_AP, /**< ESP32 soft-AP interface */ | ||
ESP_IF_ETH, /**< ESP32 ethernet interface */ | ||
ESP_IF_MAX | ||
} |
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,64 @@ | ||
module idf.esp_netif; | ||
|
||
import idf.esp_common.esp_err : esp_err_t; | ||
import idf.esp_event : esp_event_base_t; | ||
|
||
@safe nothrow @nogc extern (C): | ||
// dfmt off | ||
|
||
alias esp_netif_t = void; | ||
|
||
/** IP event declarations */ | ||
enum ip_event_t | ||
{ | ||
IP_EVENT_STA_GOT_IP, /*!< station got IP from connected AP */ | ||
IP_EVENT_STA_LOST_IP, /*!< station lost IP and the IP is reset to 0 */ | ||
IP_EVENT_AP_STAIPASSIGNED, /*!< soft-AP assign an IP to a connected station */ | ||
IP_EVENT_GOT_IP6, /*!< station or ap or ethernet interface v6IP addr is preferred */ | ||
IP_EVENT_ETH_GOT_IP, /*!< ethernet got IP from connected AP */ | ||
IP_EVENT_ETH_LOST_IP, /*!< ethernet lost IP and the IP is reset to 0 */ | ||
IP_EVENT_PPP_GOT_IP, /*!< PPP interface got IP */ | ||
IP_EVENT_PPP_LOST_IP, /*!< PPP interface lost IP */ | ||
} | ||
|
||
/** | ||
* @brief IPv4 address | ||
* | ||
*/ | ||
struct esp_ip4_addr_t | ||
{ | ||
uint addr; /*!< IPv4 address */ | ||
} | ||
|
||
struct esp_netif_ip_info_t | ||
{ | ||
esp_ip4_addr_t ip; /**< Interface IPV4 address */ | ||
esp_ip4_addr_t netmask; /**< Interface IPV4 netmask */ | ||
esp_ip4_addr_t gw; /**< Interface IPV4 gateway address */ | ||
} | ||
|
||
/** | ||
* @brief Event structure for IP_EVENT_GOT_IP event | ||
* | ||
*/ | ||
struct ip_event_got_ip_t | ||
{ | ||
int if_index; /*!< Interface index for which the event is received (left for legacy compilation) */ | ||
esp_netif_t* esp_netif; /*!< Pointer to corresponding esp-netif object */ | ||
esp_netif_ip_info_t ip_info; /*!< IP address, netmask, gatway IP address */ | ||
bool ip_changed; /*!< Whether the assigned IP has changed or not */ | ||
} | ||
|
||
/** | ||
* @brief Initialize the underlying TCP/IP stack | ||
* | ||
* @return | ||
* - ESP_OK on success | ||
* - ESP_FAIL if initializing failed | ||
* @note This function should be called exactly once from application code, when the application starts up. | ||
*/ | ||
esp_err_t esp_netif_init(); | ||
|
||
/** @brief IP event base declaration */ | ||
extern __gshared esp_event_base_t IP_EVENT; |
Oops, something went wrong.