mirror of
https://github.com/espressif/openthread.git
synced 2026-09-24 01:47:41 +00:00
[instance] require MULTIPLE_INSTANCE_ENABLE for static instances (#12734)
This commit updates the conditional compilation for the multiple static instances array in `Instance`. It adds a check for `OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE` alongside `OPENTHREAD_CONFIG_MULTIPLE_STATIC_INSTANCE_ENABLE`.
This commit is contained in:
@@ -51,7 +51,7 @@ OT_DEFINE_ALIGNED_VAR(gInstanceRaw, sizeof(Instance), uint64_t);
|
||||
|
||||
#endif
|
||||
|
||||
#if OPENTHREAD_CONFIG_MULTIPLE_STATIC_INSTANCE_ENABLE
|
||||
#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE && OPENTHREAD_CONFIG_MULTIPLE_STATIC_INSTANCE_ENABLE
|
||||
|
||||
#define INSTANCE_SIZE_ALIGNED OT_ALIGNED_VAR_SIZE(sizeof(ot::Instance), uint64_t)
|
||||
#define MULTI_INSTANCE_SIZE (OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_NUM * INSTANCE_SIZE_ALIGNED)
|
||||
|
||||
Reference in New Issue
Block a user