Move OpenThread-related code from zephyr/subsys/net/l2/openthread/openthread.c to zephyr/modules/openthread/platform/openthread.c. The primary goal of this refactor is to enable the use of OpenThread as an independent module, without the necessity of Zephyr's networking layer. This change is particularly beneficial for simple applications that have their own implementation of the IEEE802.15.4 driver and do not require a networking layer. These applications can now disable Zephyr's L2 and IEEE802.15.4 shim layers and directly use the OpenThread module, saving valuable kilobytes of memory. In this approach if the CONFIG_NET_L2_OPENTHREAD Kconfig option is set, Zephyr's L2 and IEEE802.15.4 layers will be used, and everything will function as before. The main difference is the Zephyr's L2 layer now uses the OpenThread module, no longer implementing it. While most of the functions in include/net/openthread.h have been deprecated, they are still available for use to maintain backwards compatibility. Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| alarm.c | ||
| ble.c | ||
| CMakeLists.txt | ||
| crypto_psa.c | ||
| diag.c | ||
| entropy.c | ||
| hdlc_interface.cpp | ||
| hdlc_interface.hpp | ||
| logging.c | ||
| memory.c | ||
| messagepool.c | ||
| misc.c | ||
| openthread-core-zephyr-config.h | ||
| platform-zephyr.h | ||
| platform.c | ||
| radio_spinel.cpp | ||
| radio.c | ||
| settings.c | ||
| spi.c | ||
| uart.c | ||