-#define GPIO_PIN_TYPE_STD 0x00000008 //< Push-pull
-#define GPIO_PIN_TYPE_STD_WPU 0x0000000A //< Push-pull with weak pull-up
-#define GPIO_PIN_TYPE_STD_WPD 0x0000000C //< Push-pull with weak pull-down
-#define GPIO_PIN_TYPE_OD 0x00000009 //< Open-drain
-#define GPIO_PIN_TYPE_OD_WPU 0x0000000B //< Open-drain with weak pull-up
-#define GPIO_PIN_TYPE_OD_WPD 0x0000000D //< Open-drain with weak pull-down
-#define GPIO_PIN_TYPE_ANALOG 0x00000000 //< Analog comparator
+enum
+{
+ GPIO_PIN_TYPE_ANALOG = 0, //< Analog comparator
+ GPIO_PIN_TYPE_STD, //< Push-pull
+ GPIO_PIN_TYPE_STD_WPU, //< Push-pull with weak pull-up
+ GPIO_PIN_TYPE_STD_WPD, //< Push-pull with weak pull-down
+ GPIO_PIN_TYPE_OD, //< Open-drain
+ GPIO_PIN_TYPE_OD_WPU, //< Open-drain with weak pull-up
+ GPIO_PIN_TYPE_OD_WPD, //< Open-drain with weak pull-down
+};