From 6cd51eb67e7b8b017f45761e8aad07435603a34a Mon Sep 17 00:00:00 2001 From: CelesteBlue-dev Date: Fri, 9 Mar 2018 15:25:02 +0100 Subject: Add ksceSysconSetAlarmCallback to db.yml --- nids/360/SceSyscon.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/nids/360/SceSyscon.yml b/nids/360/SceSyscon.yml index b0f64d6..dafeaa6 100644 --- a/nids/360/SceSyscon.yml +++ b/nids/360/SceSyscon.yml @@ -38,6 +38,7 @@ modules: sceSysconReadCommand: 0x299B1CE7 sceSysconResetDevice: 0x8A95D35C sceSysconSendCommand: 0xE26488B9 + sceSysconSetAlarmCallback: 0x32418370 sceSysconSetDebugHandlers: 0xF245CD6F sceSysconSetLowBatteryCallback: 0x3F0DB7C0 sceSysconSetThermalAlertCallback: 0x773B8126 -- cgit v1.2.3 From 4f442909a804ddc29a4b4c939e5bd8d33af83ca6 Mon Sep 17 00:00:00 2001 From: CelesteBlue-dev Date: Sat, 10 Mar 2018 02:24:11 +0100 Subject: Add ksceSysconSetAlarmCallback to syscon.h --- include/kernel/syscon.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/kernel/syscon.h b/include/kernel/syscon.h index 225f798..67a64bb 100644 --- a/include/kernel/syscon.h +++ b/include/kernel/syscon.h @@ -199,6 +199,16 @@ int sceSysconEndConfigstorageTransaction(void); int sceSysconLoadConfigstorageScript(unsigned short, const void *buff, unsigned int size); int sceSysconVerifyConfigstorageScript(unsigned short, const void *buff, unsigned int size); +/** + * Set the alarm callback, that will be ran when the alarm timer is passed. + * + * @param callback The callback function. + * @param argp The second argument that will be passed to the callback. + * + * @return 0. + */ +int sceSysconSetAlarmCallback(SceSysconCallback callback, void *argp); + /** * Set the low battery callback, that will be ran when the battery is low. * -- cgit v1.2.3