Skip to content

Commit bb778aa

Browse files
committed
update stm.c
1 parent b15110b commit bb778aa

File tree

2 files changed

+183
-172
lines changed

2 files changed

+183
-172
lines changed

gc/ogc/stm.h

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,38 @@ distribution.
3636
#include <gctypes.h>
3737
#include <gcutil.h>
3838

39-
#define STM_EVENT_RESET 0x00020000
40-
#define STM_EVENT_POWER 0x00000800
39+
#define STM_EVENT_RESET 0x00020000
40+
#define STM_EVENT_POWER 0x00000800
4141

42-
#define STM_EINVAL -0x2004
43-
#define STM_ENOTINIT -0x2100
44-
#define STM_ENOHANDLER -0x2101
42+
#define STM_EINVAL -0x2004
43+
#define STM_ENOTINIT -0x2100
44+
#define STM_ENOHANDLER -0x2101
45+
46+
#define STM_LEDFLASH_USER 0x01
47+
#define STM_LEDFLASH_NOEXEC 0x02
48+
49+
#define STM_MAX_LED_PATTERNS 128
4550

4651
#ifdef __cplusplus
47-
extern "C" {
52+
extern "C" {
4853
#endif /* __cplusplus */
4954

5055
typedef void (*stmcallback)(u32 event);
5156

5257
s32 __STM_Init(void);
5358
s32 __STM_Close(void);
59+
60+
stmcallback STM_RegisterEventHandler(stmcallback newhandler);
61+
5462
s32 STM_ShutdownToStandby(void);
5563
s32 STM_ShutdownToIdle(void);
56-
s32 STM_SetLedMode(u32 mode);
5764
s32 STM_RebootSystem(void);
58-
stmcallback STM_RegisterEventHandler(stmcallback newhandler);
65+
66+
s32 STM_SetLedMode(u32 mode);
67+
s32 STM_StartLEDFlashLoop(u8 id, u8 priority, u8 flags, const u16* patterns, u32 num_patterns);
5968

6069
#ifdef __cplusplus
61-
}
70+
}
6271
#endif /* __cplusplus */
6372

6473
#endif /* defined(HW_RVL) */

0 commit comments

Comments
 (0)