forked from espressif/esp-idf
-
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.
derive esp_wifi from esp32 component
- Loading branch information
1 parent
5b2247d
commit 79bb5de
Showing
48 changed files
with
162 additions
and
130 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Submodules normally added in component.mk, but fully qualified | ||
# paths can be added at this level (we need binary librtc to be | ||
# available to link bootloader). | ||
COMPONENT_SUBMODULES += $(IDF_PATH)/components/esp32/lib | ||
COMPONENT_SUBMODULES += $(IDF_PATH)/components/esp_wifi/lib_esp32 |
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 |
---|---|---|
@@ -1,42 +1,19 @@ | ||
[mapping] | ||
archive: libesp32.a | ||
entries: | ||
entries: | ||
panic (noflash) | ||
|
||
[mapping] | ||
archive: libphy.a | ||
entries: | ||
* (noflash_data) | ||
|
||
[mapping] | ||
archive: libhal.a | ||
entries: | ||
* (noflash_text) | ||
|
||
[mapping] | ||
archive: librtc.a | ||
entries: | ||
entries: | ||
* (noflash_text) | ||
|
||
[mapping] | ||
archive: libgcc.a | ||
entries: | ||
entries: | ||
lib2funcs (noflash_text) | ||
|
||
[mapping] | ||
archive: libgcov.a | ||
entries: | ||
entries: | ||
* (noflash) | ||
|
||
[mapping] | ||
archive: libpp.a | ||
entries: | ||
: ESP32_WIFI_IRAM_OPT = y | ||
* (wifi_iram) | ||
|
||
[mapping] | ||
archive: libnet80211.a | ||
entries: | ||
: ESP32_WIFI_IRAM_OPT = y | ||
* (wifi_iram) | ||
|
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,41 @@ | ||
set(COMPONENT_SRCS | ||
"src/coexist.c" | ||
"src/fast_crypto_ops.c" | ||
"src/lib_printf.c" | ||
"src/phy_init.c" | ||
"src/restore.c" | ||
"src/wifi_init.c") | ||
set(COMPONENT_ADD_INCLUDEDIRS "include") | ||
set(COMPONENT_PRIV_INCLUDEDIRS) | ||
set(COMPONENT_REQUIRES) | ||
set(COMPONENT_PRIV_REQUIRES "wpa_supplicant" "nvs_flash") | ||
set(COMPONENT_ADD_LDFRAGMENTS "linker.lf") | ||
|
||
register_component() | ||
|
||
target_link_libraries(${COMPONENT_TARGET} "-L ${CMAKE_CURRENT_SOURCE_DIR}/lib_${IDF_TARGET}") | ||
|
||
if(NOT CONFIG_NO_BLOBS) | ||
target_link_libraries(${COMPONENT_TARGET} coexist core espnow mesh net80211 phy pp rtc smartconfig wpa2 wpa wps) | ||
endif() | ||
|
||
if(CONFIG_ESP32_PHY_INIT_DATA_IN_PARTITION AND IDF_BUILD_ARTIFACTS) | ||
partition_table_get_partition_info(phy_partition_offset "--partition-type data --partition-subtype phy" "offset") | ||
set(phy_init_data_bin "${IDF_BUILD_ARTIFACTS_DIR}/phy_init_data.bin") | ||
# To get the phy_init_data.bin file, compile phy_init_data.h as a C file and then objcopy | ||
# the object file to a raw binary | ||
add_custom_command( | ||
OUTPUT ${phy_init_data_bin} | ||
DEPENDS ${CMAKE_CURRENT_LIST_DIR}/include/phy_init_data.h | ||
COMMAND ${CMAKE_C_COMPILER} -x c -c | ||
-I ${CMAKE_CURRENT_LIST_DIR} -I ${CMAKE_CURRENT_LIST_DIR}/include -I ${IDF_BUILD_ARTIFACTS_DIR} | ||
-o phy_init_data.obj | ||
${CMAKE_CURRENT_LIST_DIR}/include/phy_init_data.h | ||
COMMAND ${CMAKE_OBJCOPY} -O binary phy_init_data.obj ${phy_init_data_bin} | ||
) | ||
add_custom_target(phy_init_data ALL DEPENDS ${phy_init_data_bin}) | ||
add_dependencies(flash phy_init_data) | ||
|
||
esptool_py_flash_project_args(phy ${phy_partition_offset} ${phy_init_data_bin} FLASH_IN_PROJECT) | ||
|
||
endif() |
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,21 @@ | ||
# | ||
# Component Makefile | ||
# | ||
|
||
COMPONENT_ADD_INCLUDEDIRS := include | ||
COMPONENT_SRCDIRS := src | ||
|
||
LIBS ?= | ||
ifndef CONFIG_NO_BLOBS | ||
LIBS += core rtc net80211 pp wpa smartconfig coexist wps wpa2 espnow phy mesh | ||
endif | ||
|
||
COMPONENT_ADD_LDFLAGS += -L$(COMPONENT_PATH)/lib_esp32 \ | ||
$(addprefix -l,$(LIBS)) \ | ||
|
||
COMPONENT_ADD_LDFRAGMENTS += linker.lf | ||
|
||
COMPONENT_SUBMODULES += lib_esp32 | ||
|
||
ALL_LIB_FILES := $(patsubst %,$(COMPONENT_PATH)/lib_esp32/lib%.a,$(LIBS)) | ||
COMPONENT_ADD_LINKER_DEPS += $(ALL_LIB_FILES) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Submodule lib_esp32
updated
from 000000 to 064ebf
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,22 @@ | ||
[mapping] | ||
archive: libphy.a | ||
entries: | ||
* (noflash_data) | ||
|
||
[mapping] | ||
archive: librtc.a | ||
entries: | ||
* (noflash_text) | ||
|
||
[mapping] | ||
archive: libpp.a | ||
entries: | ||
: ESP32_WIFI_IRAM_OPT = y | ||
* (wifi_iram) | ||
|
||
[mapping] | ||
archive: libnet80211.a | ||
entries: | ||
: ESP32_WIFI_IRAM_OPT = y | ||
* (wifi_iram) | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
Oops, something went wrong.