diff --git a/boards/esp32-wrover-kit/Makefile.dep b/boards/esp32-wrover-kit/Makefile.dep index c79cb6fdc2..e899893606 100644 --- a/boards/esp32-wrover-kit/Makefile.dep +++ b/boards/esp32-wrover-kit/Makefile.dep @@ -5,4 +5,34 @@ endif # Sets up configuration for openocd USEMODULE += esp_jtag +# if compiled in CI, optional modules are selected for compile tests +ifneq (,$(RIOT_CI_BUILD)) + USEMODULE += esp_idf_heap + USEMODULE += esp_log_startup + USEMODULE += esp_log_tagged + USEMODULE += esp_qemu + USEMODULE += esp_spi_ram + + ifneq (,$(filter periph_i2c,$(USEMODULE))) + USEMODULE += esp_i2c_hw + endif + + ifneq (,$(filter periph_timer,$(USEMODULE))) + USEMODULE += esp_hw_counter + endif + + ifneq (,$(filter netdev_default,$(USEMODULE))) + # if netdev_default is used, we use gnrc modules that are enabled + # in different examples to use different esp_wifi modules + ifneq (,$(filter gnrc_netif_single,$(USEMODULE))) + # if gnrc_netif_single module is enabled, esp_wifi_enterprise is used + USEMODULE += esp_wifi_enterprise + else + # in all other case esp_wifi_ap is enabled + USEMODULE += esp_wifi_ap + endif + endif + +endif + include $(RIOTBOARD)/common/esp32/Makefile.dep diff --git a/boards/esp32-wrover-kit/include/board.h b/boards/esp32-wrover-kit/include/board.h index 8effa57fdb..918ff58b3b 100644 --- a/boards/esp32-wrover-kit/include/board.h +++ b/boards/esp32-wrover-kit/include/board.h @@ -125,6 +125,23 @@ #endif /** @} */ +#ifndef DOXYGEN +/** + * @name Default configuration parameters for ESP WiFi Enterprise netdev + * @{ + */ +#ifndef ESP_WIFI_EAP_USER +/** User name used in phase 2 (inner) EAP authentication. */ +#define ESP_WIFI_EAP_USER "riot-os@riot-os.org" +#endif /* ESP_WIFI_EAP_USER */ + +#ifndef ESP_WIFI_EAP_PASS +/** Password used in phase 2 (inner) EAP authentication. */ +#define ESP_WIFI_EAP_PASS "riot-os" +#endif /* ESP_WIFI_EAP_PASS */ +/** @} */ +#endif /* !DOXYGEN */ + /* include common board definitions as last step */ #include "board_common.h"