mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 18:13:49 +01:00
cpu/esp32/esp-idf: add ESP-IDF module for BLE support
This commit is contained in:
parent
cdc8a725a4
commit
e257652e1d
@ -18,6 +18,7 @@ config MODULE_ESP_IDF
|
|||||||
Espressif IoT Development Framework.
|
Espressif IoT Development Framework.
|
||||||
|
|
||||||
rsource "adc/Kconfig"
|
rsource "adc/Kconfig"
|
||||||
|
rsource "ble/Kconfig"
|
||||||
rsource "common/Kconfig"
|
rsource "common/Kconfig"
|
||||||
rsource "efuse/Kconfig"
|
rsource "efuse/Kconfig"
|
||||||
rsource "eth/Kconfig"
|
rsource "eth/Kconfig"
|
||||||
|
|||||||
@ -8,6 +8,10 @@ ifneq (,$(filter esp_idf_adc,$(USEMODULE)))
|
|||||||
DIRS += adc
|
DIRS += adc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(filter esp_idf_ble,$(USEMODULE)))
|
||||||
|
DIRS += ble
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter esp_idf_common,$(USEMODULE)))
|
ifneq (,$(filter esp_idf_common,$(USEMODULE)))
|
||||||
DIRS += common
|
DIRS += common
|
||||||
endif
|
endif
|
||||||
|
|||||||
16
cpu/esp32/esp-idf/ble/Kconfig
Normal file
16
cpu/esp32/esp-idf/ble/Kconfig
Normal 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.
|
||||||
34
cpu/esp32/esp-idf/ble/Makefile
Normal file
34
cpu/esp32/esp-idf/ble/Makefile
Normal 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
|
||||||
@ -18,6 +18,7 @@ ESP32_SDK_SRCXX = \
|
|||||||
|
|
||||||
# additional include pathes required by this module
|
# additional include pathes required by this module
|
||||||
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_rom/include
|
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_rom/include
|
||||||
|
INCLUDES += -I$(ESP32_SDK_DIR)/components/nvs_flash/include
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.base
|
include $(RIOTBASE)/Makefile.base
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user