Skip to content

Commit

Permalink
ESP32 Wi-Fi driver support (#423)
Browse files Browse the repository at this point in the history
* Add ESP-32 driver

* Resolve header issues

* Allow smaller blocks

* reset timeout can take 2s

* Documentation & style fixes

* quick JSON update

* Augh fix style again

* Astyle you are trippin

---------

Co-authored-by: Chris Snow <[email protected]>
  • Loading branch information
multiplemonomials and Chris Snow authored Jan 18, 2025
1 parent 42d24a8 commit 6368e52
Show file tree
Hide file tree
Showing 19 changed files with 4,218 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Build the HTML documentation
- name: Doxygen Action
uses: mattnotmitt/[email protected].5
uses: mattnotmitt/[email protected].8
with:
doxyfile-path: ./doxyfile_options

Expand Down
5 changes: 5 additions & 0 deletions connectivity/drivers/wifi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ if("COMPONENT_ESPRESSIF_ESP8266=1" IN_LIST MBED_TARGET_DEFINITIONS)
add_subdirectory(COMPONENT_ESPRESSIF_ESP8266)
endif()

if("COMPONENT_ESPRESSIF_ESP32=1" IN_LIST MBED_TARGET_DEFINITIONS)
create_mbed_wifi_target()
add_subdirectory(COMPONENT_ESPRESSIF_ESP32)
endif()

28 changes: 28 additions & 0 deletions connectivity/drivers/wifi/COMPONENT_ESPRESSIF_ESP32/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

target_sources(mbed-wifi
PRIVATE
./ESP32Interface.cpp
./ESP32InterfaceAP.cpp
./ESP32Stack.cpp
./ESP32/ESP32.cpp
)

target_include_directories(mbed-wifi
PUBLIC
./
./ESP32/
)

# Link override object file coming from static library anyway
#
# NOTE: This linker option is to pretend undefined symbol and won't cause
# undefined symbol error even though the override object file actually
# doesn't provide such symbol definition.
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
target_link_options(mbed-wifi
INTERFACE
LINKER:--undefined=LINK_ESP32INTERFACE_CPP
)
endif()
Loading

0 comments on commit 6368e52

Please sign in to comment.