Skip to content

Commit

Permalink
Raw bindings to OpenThread (#339)
Browse files Browse the repository at this point in the history
* Raw bindings to OpenThread

* Raw bindings to OpenThread
  • Loading branch information
ivmarkov authored Sep 17, 2024
1 parent 36cea24 commit f4faf36
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/configs/sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ CONFIG_PTHREAD_TASK_STACK_SIZE_DEFAULT=8192

# Go figure...
CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=4096

# OpenThread support
CONFIG_OPENTHREAD_ENABLED=y
19 changes: 17 additions & 2 deletions src/include/esp-idf/bindings.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,21 @@
#endif
#endif

// OpenThread support
#ifdef ESP_IDF_COMP_OPENTHREAD_ENABLED
#ifdef CONFIG_OPENTHREAD_ENABLED
#include "esp_openthread.h"
#include "esp_openthread_border_router.h"
#include "esp_openthread_cli.h"
#if (ESP_IDF_VERSION_MAJOR > 4)
#include "esp_openthread_dns64.h"
#endif
#include "esp_openthread_lock.h"
#include "esp_openthread_netif_glue.h"
#include "esp_openthread_types.h"
#endif
#endif

#ifdef ESP_IDF_COMP_VFS_ENABLED
#include "esp_vfs.h"
#include "esp_vfs_cdcacm.h"
Expand Down Expand Up @@ -516,12 +531,12 @@
#endif // (ESP_IDF_VERSION_MAJOR >= 5 && ESP_IDF_VERSION_MINOR >= 3
#endif // ESP_IDF_COMP_LCD_ENABLED

// usb serial support
// Usb serial support
#ifdef SOC_USB_SERIAL_JTAG_SUPPORTED
#include "driver/usb_serial_jtag.h"
#endif

// official onewire_bus remote component
// Official onewire_bus remote component
#ifdef ESP_IDF_COMP_ESPRESSIF__ONEWIRE_BUS_ENABLED
#include "onewire_bus.h"
#include "onewire_device.h"
Expand Down

0 comments on commit f4faf36

Please sign in to comment.