mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
814d718d7b
There are new pseudomodules for this driver: - atwinc15x0_static_connect: Should behave as before, by trying to connect to an AP by specified WIFI_SSIS and WIFI_PASS - atwinc15x0_dynamic_connect: takes connection request via NETOPT_CONNECT and provides the connection result via callback - atwinc15x0_dynamic_scan: takes network scan requests via NETOPT_SCAN and provides the scan result as a sorted list via callback
27 lines
859 B
Makefile
27 lines
859 B
Makefile
USEMODULE += netdev_eth
|
|
USEMODULE += ztimer_msec
|
|
USEMODULE += netdev_legacy_api
|
|
|
|
ifeq (,$(filter atwinc15x0_dynamic_%,$(USEMODULE)))
|
|
# use static connect by default when no dynamic module is loaded
|
|
USEMODULE += atwinc15x0_static_connect
|
|
endif
|
|
ifneq (,$(filter atwinc15x0_dynamic_scan,$(USEMODULE)))
|
|
USEMODULE += wifi_scan_list
|
|
endif
|
|
ifneq (,$(filter atwinc15x0_static_connect,$(USEMODULE)))
|
|
USEMODULE += ztimer
|
|
endif
|
|
|
|
USEPKG += driver_atwinc15x0
|
|
FEATURES_REQUIRED += periph_gpio
|
|
FEATURES_REQUIRED += periph_gpio_irq
|
|
FEATURES_REQUIRED += periph_spi
|
|
|
|
# esp8266 and esp32 vendor code and atwinc15x0 both define conflicting
|
|
# spi_flash_{read, write} functions.
|
|
# esp8266 and esp32 already have build-in WiFi, so it's unlikely to ever
|
|
# use this driver - just blacklist the architecture.
|
|
FEATURES_BLACKLIST += arch_esp8266
|
|
FEATURES_BLACKLIST += arch_esp32
|