2024-05-27 22:54:32 +02:00
|
|
|
FEATURES_REQUIRED += netif_openwsn
|
|
|
|
FEATURES_REQUIRED += periph_uart
|
|
|
|
|
2020-06-25 22:35:50 +02:00
|
|
|
ifneq (,$(filter openwsn_openstack,$(USEMODULE)))
|
|
|
|
USEMODULE += openwsn_iphc
|
|
|
|
USEMODULE += openwsn_ipv6
|
|
|
|
USEMODULE += openwsn_mac_low
|
|
|
|
USEMODULE += openwsn_mac_high
|
|
|
|
USEMODULE += openwsn_crosslayers
|
|
|
|
USEMODULE += openwsn_drivers
|
|
|
|
USEMODULE += openwsn_sctimer
|
|
|
|
USEMODULE += openwsn_radio
|
|
|
|
|
2020-07-24 16:57:58 +02:00
|
|
|
USEMODULE += openwsn_openweb
|
|
|
|
USEMODULE += openwsn_openapps
|
2020-08-19 17:20:22 +02:00
|
|
|
USEMODULE += openwsn_scheduler
|
2020-07-24 16:57:58 +02:00
|
|
|
|
2020-06-25 22:35:50 +02:00
|
|
|
DEFAULT_MODULE += auto_init_openwsn
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2020-08-19 17:20:22 +02:00
|
|
|
ifneq (,$(filter openwsn_scheduler,$(USEMODULE)))
|
2020-12-01 12:25:07 +01:00
|
|
|
# allow to mock the scheduler as needed
|
|
|
|
ifeq (,$(filter openwsn_scheduler_mock,$(USEMODULE)))
|
|
|
|
USEMODULE += openwsn_riotos
|
|
|
|
endif
|
2020-06-25 22:35:50 +02:00
|
|
|
endif
|
|
|
|
|
2020-08-19 17:20:22 +02:00
|
|
|
ifneq (,$(filter openwsn_riotos,$(USEMODULE)))
|
|
|
|
USEMODULE += event
|
|
|
|
USEMODULE += event_callback
|
|
|
|
USEMODULE += memarray
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter openwsn_ipv6,$(USEMODULE)))
|
2021-10-08 01:09:38 +02:00
|
|
|
USEMODULE += ipv6
|
2020-08-19 17:20:22 +02:00
|
|
|
DEFAULT_MODULE += openwsn_icmpv6_echo
|
|
|
|
endif
|
|
|
|
|
2020-06-25 22:35:50 +02:00
|
|
|
ifneq (,$(filter openwsn_cjoin,$(USEMODULE)))
|
2020-08-05 17:13:38 +02:00
|
|
|
USEMODULE += openwsn_coap
|
2020-07-24 16:57:58 +02:00
|
|
|
USEMODULE += openwsn_crypto
|
2020-06-25 22:35:50 +02:00
|
|
|
endif
|
|
|
|
|
2020-08-05 17:13:38 +02:00
|
|
|
ifneq (,$(filter openwsn_coap,$(USEMODULE)))
|
|
|
|
# The implementation of sock_udp used by openwsn_coap is asynchronous
|
|
|
|
USEMODULE += openwsn_sock_async
|
|
|
|
endif
|
|
|
|
|
2020-07-24 16:57:58 +02:00
|
|
|
ifneq (,$(filter openwsn_crypto,$(USEMODULE)))
|
2020-06-25 22:35:50 +02:00
|
|
|
USEMODULE += cipher_modes
|
|
|
|
endif
|
|
|
|
|
2020-09-30 11:33:26 +02:00
|
|
|
ifneq (,$(filter openwsn_radio,$(USEMODULE)))
|
2021-01-29 13:28:30 +01:00
|
|
|
# enable default network devices on the platform
|
2020-09-30 11:33:26 +02:00
|
|
|
USEMODULE += netdev_default
|
2021-01-29 13:28:30 +01:00
|
|
|
USEMODULE += netdev
|
2020-09-30 11:33:26 +02:00
|
|
|
USEMODULE += luid
|
|
|
|
ifneq (,$(filter cc2538_rf nrf802154,$(USEMODULE)))
|
|
|
|
USEMODULE += openwsn_radio_hal
|
|
|
|
endif
|
|
|
|
ifneq (,$(filter at86rf2xx,$(USEMODULE)))
|
|
|
|
USEMODULE += openwsn_radio_netdev
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter openwsn_radio_hal,$(USEMODULE)))
|
|
|
|
# Used here only for dependency resolution
|
|
|
|
DISABLE_MODULE += auto_init_gnrc_netif
|
|
|
|
endif
|
|
|
|
|
2020-06-25 22:35:50 +02:00
|
|
|
ifneq (,$(filter openwsn_sctimer,$(USEMODULE)))
|
|
|
|
ifeq (,$(filter openwsn_sctimer_ztimer,$(USEMODULE)))
|
|
|
|
USEMODULE += openwsn_sctimer_rtt
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter openwsn_sctimer_ztimer,$(USEMODULE)))
|
|
|
|
USEMODULE += ztimer_usec
|
|
|
|
USEMODULE += ztimer_msec
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter openwsn_sctimer_rtt,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_rtt
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter openwsn_serial,$(USEMODULE)))
|
|
|
|
USEMODULE += openwsn_drivers
|
|
|
|
USEMODULE += ztimer_usec
|
|
|
|
FEATURES_REQUIRED += periph_uart
|
|
|
|
FEATURES_OPTIONAL += periph_uart_nonblocking
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter openwsn_leds openwsn_debugpins,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_gpio
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter openwsn_debugpins,$(USEMODULE)))
|
|
|
|
FEATURES_REQUIRED += periph_gpio_irq
|
|
|
|
endif
|
|
|
|
|
2020-08-05 17:13:38 +02:00
|
|
|
ifneq (,$(filter sock_udp,$(USEMODULE)))
|
|
|
|
USEMODULE += ipv6_addr
|
|
|
|
USEMODULE += openwsn_udp
|
|
|
|
USEMODULE += openwsn_sock_udp
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter openwsn_sock%,$(USEMODULE)))
|
|
|
|
USEMODULE += openwsn_sock
|
|
|
|
USEMODULE += core_mbox
|
|
|
|
USEMODULE += ztimer_usec
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter openwsn_sock_async,$(USEMODULE)))
|
|
|
|
USEMODULE += sock_async
|
|
|
|
endif
|
|
|
|
|
2024-03-19 15:10:51 +01:00
|
|
|
ifneq (,$(filter shell_cmds_default,$(USEMODULE)))
|
2020-11-14 16:35:41 +01:00
|
|
|
USEMODULE += l2util
|
|
|
|
endif
|
2020-06-25 22:35:50 +02:00
|
|
|
# This port currently requires setting ISR_STACKSIZE
|
|
|
|
FEATURES_BLACKLIST += arch_esp32 arch_esp8266 arch_riscv arch_avr8
|