Samsung / TizenRT

TizenRT is a lightweight RTOS-based platform to support low-end IoT devices
Apache License 2.0
566 stars 571 forks source link

os: Refactor PM & BSP Code #6230

Closed gSahitya-samsung closed 3 months ago

gSahitya-samsung commented 3 months ago

Move PM Specific Code from BSP to PM Module. Create new pm_idle API to check board ready to go sleep state. This PR also give functionality to do all the pre processing related to PM inside PM module only.

edwakuwaku commented 3 months ago

Hi @gSahitya-samsung , please check this and revise it accordingly: https://github.com/Samsung/TizenRT/blob/master/apps/shell/tash_command.c#L568 https://github.com/Samsung/TizenRT/blob/master/apps/shell/tash_command.c#L579 We should pass a domain as arg instead of PM state now.

edwakuwaku commented 3 months ago

Also, could you please change the PR title? I think the wakeup fix should be done in https://github.com/Samsung/TizenRT/pull/6238 already. In this PR, it seems revising the logic flow for PM state control.