diff options
author | Sunguk Lee | 2017-10-09 03:44:44 +0900 |
---|---|---|
committer | GitHub | 2017-10-09 03:44:44 +0900 |
commit | 4d2d1798f6a34cd39005f7c618f2c98ff8d85d5a (patch) | |
tree | e94dce054ed67645818961568940c625b50a4f08 /include/kernel/lowio | |
parent | Merge pull request #230 from d3m3vilurr/rename-sceCompatGetDevInf-2 (diff) | |
parent | Hexa -> uppercase (diff) | |
download | vds-libraries-4d2d1798f6a34cd39005f7c618f2c98ff8d85d5a.tar.gz |
Merge pull request #227 from Rinnegatamante/kern_anon
Named anonymous enums in psp2kern
Diffstat (limited to 'include/kernel/lowio')
-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); |