mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
drivers/power/pm_activity.c: Add pm_staycount API for get stay numbers. This function is currently not used and a waste of FLASH space.
This commit is contained in:
@@ -491,6 +491,26 @@ void pm_stay(int domain, enum pm_state_e state);
|
||||
|
||||
void pm_relax(int domain, enum pm_state_e state);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: pm_staycount
|
||||
*
|
||||
* Description:
|
||||
* This function is called to get current stay count.
|
||||
*
|
||||
* Input Parameters:
|
||||
* domain - The domain of the PM activity
|
||||
* state - The state want to relax.
|
||||
*
|
||||
* Returned Value:
|
||||
* Current pm stay count
|
||||
*
|
||||
* Assumptions:
|
||||
* This function may be called from an interrupt handler.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
uint32_t pm_staycount(int domain, enum pm_state_e state);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: pm_checkstate
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user