Commit Graph

4 Commits (0a58c80b56c8f9e806bb5b59cfe0c5d209e1d41f)

Author SHA1 Message Date
Hugues Kamba 462103feb5 Fix Coverity issues
Issues fixed are related to:
* Non-static class member initialization in constructors
* Unused function return value
* Always false statements
2019-10-16 11:53:52 +01:00
Laurent Meunier 23e61c02dd SysTimer deep sleep: Add local lock check and update comments
Suggested-by: @kjbracey-arm

Replace the sleep_manager_can_deep_sleep() with !_deep_sleep_locked.
Indeed, if we know we've taken the lock because we're using us_ticker,
no need to do the early wake.

Updated comments accordingly.
2019-09-19 17:29:56 +01:00
Laurent Meunier 5df60b59cd SysTimer should let deep sleep happen
When next SysTimer wake-up is scheduler far enough, always consider
that deep sleep may be entered and program an early wake-up.

So that even if deep sleep is only allowed some time later, it can be
entered. If not doing this, then the deep sleep would be prevented by
SysTimer itself and may not be entered at all.

This has been proved to happen in a simple blinly example.
2019-09-19 17:29:56 +01:00
George Psimenos 7df8b58e27 Move source files and add Doxygen labels 2019-09-12 17:18:37 +01:00