summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/nuc1xx/chip/nuc_gpio.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm/src/nuc1xx/chip/nuc_gpio.h')
-rw-r--r--nuttx/arch/arm/src/nuc1xx/chip/nuc_gpio.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/arch/arm/src/nuc1xx/chip/nuc_gpio.h b/nuttx/arch/arm/src/nuc1xx/chip/nuc_gpio.h
index 4bc1b61f9..5ad806ea1 100644
--- a/nuttx/arch/arm/src/nuc1xx/chip/nuc_gpio.h
+++ b/nuttx/arch/arm/src/nuc1xx/chip/nuc_gpio.h
@@ -421,14 +421,14 @@
/* GPIO port pin I/O mode control */
-#define GPIO_PMD_INPUT 0
-#define GPIO_PMD_OUTPUT 1
-#define GPIO_PMD_OPENDRAIN 2
-#define GPIO_PMD_BIDI 3
+#define GPIO_PMD_INPUT 0 /* Input */
+#define GPIO_PMD_OUTPUT 1 /* Push-pull output */
+#define GPIO_PMD_OPENDRAIN 2 /* Open drain output */
+#define GPIO_PMD_BIDI 3 /* Quasi bi-directional */
#define GPIO_PMD_SHIFT(n) ((n) << 1) /* Bits 2n-2n+_1: GPIOx Pin[n] mode control */
#define GPIO_PMD_MASK(n) (3 << GPIO_PMD_SHIFT(n))
-# define GPIO_PMD_MASK(n,v) ((v) << GPIO_PMD_SHIFT(n))
+# define GPIO_PMD(n,v) ((v) << GPIO_PMD_SHIFT(n))
#define GPIO_PMD0_SHIFT (0) /* Bits 0-1: GPIOx Pin0 mode control */
#define GPIO_PMD0_MASK (3 << GPIO_PMD0_SHIFT)