-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop customer new v3.3 #392
base: develop_customer_new_base
Are you sure you want to change the base?
Conversation
- update commit id for zephyr. - add NVS_RAM_OPTIMIZATION option. Signed-off-by: Haiwen Xia <[email protected]>
- set csma backoff in retention mode . Signed-off-by: Haiwen Xia <[email protected]>
* [Telink] ieee802154 optimization for power consumption - reduce COMMON_LIBC_MALLOC_ARENA_SIZE to 13.5KB. - add configs - OPENTHREAD_CSMABACKOFF_OPTIMIZATION, - ZEPHYR_NETBUFFER_OPTIMIZATION, - IEEE802154_TLX_OPTIMIZATION. - reduce PACKETBUFFER_CAPACITY_MAX to 1024. - remove shell in tl321x light switch app CI. - update zephyr revision. Signed-off-by: Damien Ji <[email protected]> --------- Signed-off-by: Damien Ji <[email protected]>
- fix retention ram. Signed-off-by: Haiwen Xia <[email protected]>
- optimize the power. Signed-off-by: Haiwen Xia <[email protected]>
default 2048 if SOC_RISCV_TELINK_TL321X | ||
default 2048 if !PM | ||
default 2048 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case if all values are same we can use only one default value instead of three:
default 2048
@@ -66,6 +66,10 @@ extern "C" void otSysProcessDrivers(otInstance * aInstance); | |||
extern "C" void otAppCliInit(otInstance * aInstance); | |||
#endif | |||
|
|||
#if defined CONFIG_IEEE802154_TLX_OPTIMIZATION && CONFIG_IEEE802154_TLX_OPTIMIZATION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think better to use #if defined
for both configs like:
#if defined CONFIG_IEEE802154_TLX_OPTIMIZATION && defined CONFIG_IEEE802154_TLX_OPTIMIZATION
because in case if CONFIG_IEEE802154_TLX_OPTIMIZATION=n
it will be undefined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i agree
@@ -379,6 +383,14 @@ bool GenericThreadStackManagerImpl_OpenThread<ImplClass>::_IsThreadAttached() | |||
curRole = otThreadGetDeviceRole(mOTInst); | |||
Impl()->UnlockThreadStack(); | |||
|
|||
#if defined CONFIG_IEEE802154_TLX_OPTIMIZATION && CONFIG_IEEE802154_TLX_OPTIMIZATION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
#if defined CONFIG_IEEE802154_TLX_OPTIMIZATION && defined CONFIG_IEEE802154_TLX_OPTIMIZATION
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i agree
- test CI Signed-off-by: Lingzhi Chen <[email protected]>
Also I suggest you to include changes from project-chip#36691 which add Matter GitHub CI builds for both Zephyr versions or wait till this PR will be merged into master and after you can rebase your branch. |
- Optimizing the code Signed-off-by: Lingzhi Chen <[email protected]>
Testing
Verified by CI