From e42bb51b42456f1f80bd58fe46a774086f8fcd08 Mon Sep 17 00:00:00 2001 From: Rinnegatamante Date: Thu, 5 Oct 2017 19:20:28 +0200 Subject: Named anonymous enums in psp2kern Named anonymous enums in psp2kern --- include/kernel/lowio/gpio.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include/kernel/lowio/gpio.h') 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); -- cgit v1.2.3