summaryrefslogtreecommitdiff
path: root/include/kernel/lowio
diff options
context:
space:
mode:
authorRinnegatamante2017-10-05 19:20:28 +0200
committerRinnegatamante2017-10-05 19:20:28 +0200
commite42bb51b42456f1f80bd58fe46a774086f8fcd08 (patch)
tree0e67037326e09dea019fc0b3691c55e46bac7ae8 /include/kernel/lowio
parentUpdate SceFiber and SceDeci4p (#226) (diff)
downloadvds-libraries-e42bb51b42456f1f80bd58fe46a774086f8fcd08.tar.gz
Named anonymous enums in psp2kern
Named anonymous enums in psp2kern
Diffstat (limited to '')
-rw-r--r--include/kernel/lowio/gpio.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/kernel/lowio/gpio.h b/include/kernel/lowio/gpio.h
index 2850494..9141d08 100644
--- a/include/kernel/lowio/gpio.h
+++ b/include/kernel/lowio/gpio.h
@@ -7,21 +7,21 @@
extern "C" {
#endif
-enum {
+typedef enum SceGpioErrorCode {
SCE_GPIO_ERROR_INVALID_BUS = 0x803F0100,
SCE_GPIO_ERROR_INVALID_PORT = 0x803F0101,
SCE_GPIO_ERROR_INVALID_MODE = 0x803F0102
-};
+} SceGpioErrorCode;
-enum SceGpioPortMasks {
+typedef enum SceGpioPortMasks {
SCE_GPIO_PORT_MASK_LED_GAMECARD = 1 << 6,
SCE_GPIO_PORT_MASK_LED_PS_BUTTON = 1 << 7
-};
+} SceGpioPortMasks;
-enum SceGpioPortMode {
+typedef enum SceGpioPortMode {
SCE_GPIO_PORT_MODE_OUTPUT = 0,
SCE_GPIO_PORT_MODE_INPUT = 1
-};
+} SceGpioPortMode;
int sceGpioPortRead(int bus, int port);
int sceGpioPortSet(int bus, int port);