diff options
Diffstat (limited to 'include/kernel/lowio/gpio.h')
-rw-r--r-- | include/kernel/lowio/gpio.h | 12 |
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); |