mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
power:add extern for public function prototypes
Signed-off-by: dulibo1 <dulibo1@xiaomi.com> Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
@@ -68,6 +68,15 @@ struct pm_runtime_ops_s
|
|||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#undef EXTERN
|
||||||
|
#if defined(__cplusplus)
|
||||||
|
#define EXTERN extern "C"
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
#else
|
||||||
|
#define EXTERN extern
|
||||||
|
#endif
|
||||||
|
|
||||||
void pm_runtime_init(FAR struct pm_runtime_s *rpm, rpm_state_e state,
|
void pm_runtime_init(FAR struct pm_runtime_s *rpm, rpm_state_e state,
|
||||||
FAR struct pm_runtime_ops_s *rops);
|
FAR struct pm_runtime_ops_s *rops);
|
||||||
int pm_runtime_get(FAR struct pm_runtime_s *rpm);
|
int pm_runtime_get(FAR struct pm_runtime_s *rpm);
|
||||||
@@ -75,5 +84,11 @@ int pm_runtime_put(FAR struct pm_runtime_s *rpm);
|
|||||||
int pm_runtime_put_autosuspend(FAR struct pm_runtime_s *rpm);
|
int pm_runtime_put_autosuspend(FAR struct pm_runtime_s *rpm);
|
||||||
void pm_runtime_set_autosuspend_delay(FAR struct pm_runtime_s *rpm,
|
void pm_runtime_set_autosuspend_delay(FAR struct pm_runtime_s *rpm,
|
||||||
unsigned int delay);
|
unsigned int delay);
|
||||||
|
|
||||||
|
#undef EXTERN
|
||||||
|
#if defined(__cplusplus)
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* CONFIG_PM_RUNTIME */
|
#endif /* CONFIG_PM_RUNTIME */
|
||||||
#endif /* __INCLUDE_NUTTX_POWER_PM_RUNTIME_H */
|
#endif /* __INCLUDE_NUTTX_POWER_PM_RUNTIME_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user