From f27e4798eeb647d6cc32903c6bb2d27a1aeb87e1 Mon Sep 17 00:00:00 2001 From: Sergi Granell Date: Thu, 2 Feb 2017 22:01:58 +0100 Subject: Add psp2kern/kernel/suspend.h --- include/kernel/kernel/suspend.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 include/kernel/kernel/suspend.h 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 + +#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_ */ -- cgit v1.2.3