diff options
author | Sergi Granell | 2017-02-02 22:01:58 +0100 |
---|---|---|
committer | Sergi Granell | 2017-02-02 22:01:58 +0100 |
commit | f27e4798eeb647d6cc32903c6bb2d27a1aeb87e1 (patch) | |
tree | 2e9670112925da2ed3a7d08dc5472831a6de2b78 /include/kernel/kernel/suspend.h | |
parent | Added two more kernel nids (diff) | |
download | vds-libraries-f27e4798eeb647d6cc32903c6bb2d27a1aeb87e1.tar.gz |
Add psp2kern/kernel/suspend.h
Diffstat (limited to '')
-rw-r--r-- | include/kernel/kernel/suspend.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/kernel/kernel/suspend.h b/include/kernel/kernel/suspend.h new file mode 100644 index 0000000..712e9b3 --- /dev/null +++ b/include/kernel/kernel/suspend.h @@ -0,0 +1,35 @@ +#ifndef _PSP2_KERNEL_SUSPEND_H_ +#define _PSP2_KERNEL_SUSPEND_H_ + +#include <psp2kern/types.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum SceKernelPowerTickType { + /** Cancel all timers */ + SCE_KERNEL_POWER_TICK_DEFAULT = 0, + /** Cancel automatic suspension timer */ + SCE_KERNEL_POWER_TICK_DISABLE_AUTO_SUSPEND = 1, + /** Cancel OLED-off timer */ + SCE_KERNEL_POWER_TICK_DISABLE_OLED_OFF = 4, + /** Cancel OLED dimming timer */ + SCE_KERNEL_POWER_TICK_DISABLE_OLED_DIMMING = 6 +} SceKernelPowerTickType; + + +/*** + * Cancel specified idle timers to prevent entering in power save processing. + * + * @param[in] type - One of ::SceKernelPowerTickType + * + * @return 0 +*/ +int sceKernelPowerTick(int type); + +#ifdef __cplusplus +} +#endif + +#endif /* _PSP2_KERNEL_SUSPEND_H_ */ |