1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-15 17:43:51 +01:00

cpu/esp32/esp-idf: add ESP-IDF module for BLE support

This commit is contained in:
Gunar Schorcht 2022-08-11 10:05:59 +02:00
parent cdc8a725a4
commit e257652e1d
5 changed files with 56 additions and 0 deletions

View File

@ -18,6 +18,7 @@ config MODULE_ESP_IDF
Espressif IoT Development Framework.
rsource "adc/Kconfig"
rsource "ble/Kconfig"
rsource "common/Kconfig"
rsource "efuse/Kconfig"
rsource "eth/Kconfig"

View File

@ -8,6 +8,10 @@ ifneq (,$(filter esp_idf_adc,$(USEMODULE)))
DIRS += adc
endif
ifneq (,$(filter esp_idf_ble,$(USEMODULE)))
DIRS += ble
endif
ifneq (,$(filter esp_idf_common,$(USEMODULE)))
DIRS += common
endif

View File

@ -0,0 +1,16 @@
# Copyright (c) 2022 Gunar Schorcht
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
config MODULE_ESP_IDF_BLE
bool
depends on TEST_KCONFIG
depends on MODULE_ESP_IDF
default y if MODULE_ESP_BLE
help
ESP-IDF code for Bluetooth LE interface.

View File

@ -0,0 +1,34 @@
MODULE = esp_idf_ble
# source files to be compiled for this module
ESP32_SDK_SRC = \
components/bt/controller/$(CPU_FAM)/bt.c \
#
ifeq (,$(filter esp_idf_wifi,$(USEMODULE)))
ESP32_SDK_SRC += \
components/esp_hw_support/port/$(CPU_FAM)/dport_access.c \
components/esp_phy/src/phy_init.c \
components/esp_wifi/src/wifi_init.c \
#
endif
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_event/include
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_netif/include
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_phy/include
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_phy/$(CPU_FAM)/include
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_wifi/include
INCLUDES += -I$(ESP32_SDK_DIR)/components/nvs_flash/include
INCLUDES += -I$(ESP32_SDK_DIR)/components/wpa_supplicant/esp_supplicant/include
INCLUDES += -I$(ESP32_SDK_DIR)/components/tcpip_adapter/include
CFLAGS += -Wno-cast-function-type
CFLAGS += -Wno-implicit-fallthrough
include $(RIOTBASE)/Makefile.base
ESP32_SDK_BIN = $(BINDIR)/$(MODULE)
include ../esp_idf.mk
include ../esp_idf_cflags.mk

View File

@ -18,6 +18,7 @@ ESP32_SDK_SRCXX = \
# additional include pathes required by this module
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_rom/include
INCLUDES += -I$(ESP32_SDK_DIR)/components/nvs_flash/include
include $(RIOTBASE)/Makefile.base