zephyr/tests
Seppo Takalo ec3ec8cd2a net: lwm2m: Add LWM2M_ON_INIT() macro
Add macro that allows registration of initialization functions that
are called when LwM2M engine starts.

On LwM2M engine starts up, it first executes all initialization
functions in following priority order:
1. LWM2M_PRIO_ENGINE
2. LWM2M_PRIO_CORE, this is where all LwM2M core objects are initialized
3. LWM2M_PRIO_OBJ, this is where all other objects are initialized
4. LwM2M_PRIO_APP, application initialization.

Now on the initialization phase, we could rely that certain objects have
already been registered.
For example custom objects can register callbacks to core objects.
On application phase, we can initialize sensor objects and register
their callbacks because objects have already been initialized.

This LWM2M_ON_INIT() should replace all use of SYS_INIT()
with the default CONFIG_KERNEL_INIT_PRIORITY_DEFAULT.

Priority order is actually just alphabetical order of names, so
the order is set on a linkin phase, and we don't need any
runtime checking for it.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2024-01-24 10:44:28 +01:00
..
application_development code_relocation: Add NOKEEP option 2024-01-15 13:20:17 +01:00
arch tf-m: Change NS include path for TF-M 2.0.0 2024-01-17 16:52:52 +01:00
benchmarks tests: latency_measure: Fix MPU fault 2024-01-23 10:02:46 +01:00
bluetooth Bluetooth: BAP: Add ISO state callbacks 2024-01-22 12:59:11 +01:00
boards kernel: smp: introduce k_smp_cpu_start 2024-01-17 11:57:20 -05:00
boot test: mcuboot: enable test on lpc55s platforms 2024-01-19 10:33:44 +01:00
bsim tests: bsim: Bluetooth: Mesh: Adjust timeout for Adv Extensions use 2024-01-24 10:44:12 +01:00
cmake tests/cmake/*: Switch to native_sim 2023-11-27 16:06:42 +00:00
crypto tests: crypto: rand32: Check return code of sys_csrand_get 2024-01-03 23:57:13 -06:00
drivers tests: flash: Add erase_blocks test for flash controllers 2024-01-23 15:22:26 +00:00
kconfig/configdefault tests: Remove stray uses of CONFIG_ZTEST_NEW_API 2023-10-26 10:55:38 +02:00
kernel tests: smp_suspend: Tweak duration and timeouts 2024-01-19 12:13:30 -05:00
lib tests: devicetree: api: align DT_IRQN test 2024-01-23 06:48:16 -05:00
misc tests/*: Switch integration platform to native_sim 2023-11-30 09:42:25 -05:00
modules tests: modules: nanopb: Add a custom nested library 2023-12-01 10:50:26 +00:00
net net: lwm2m: Add LWM2M_ON_INIT() macro 2024-01-24 10:44:28 +01:00
posix tests: posix: timer: run tests for realtime as well 2024-01-22 06:48:55 -05:00
robot Twister: Add integration with renode-test 2023-05-26 09:43:49 -04:00
subsys logging: add flag to skip source info 2024-01-22 14:05:11 -05:00
unit tests: unit: util: Add test for CONCAT macro 2024-01-12 09:57:57 +01:00
ztest ztest: fix ztest_run_test_suite usage and macros 2024-01-09 08:15:22 -05:00
test_config.yaml twister: tests: Add some generic driver tests to the scope 2023-11-30 19:38:50 -05:00