You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ra...@apache.org on 2020/08/29 07:04:02 UTC

[incubator-nuttx] 03/06: nrf52_gpiote.h: fix incorrect naming of definition

This is an automated email from the ASF dual-hosted git repository.

raiden00 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 31057ec81bbc1e7b90ea4499cc918860cbf555e4
Author: Matias N <ma...@protobits.dev>
AuthorDate: Sat Aug 22 17:11:10 2020 -0300

    nrf52_gpiote.h: fix incorrect naming of definition
---
 arch/arm/src/nrf52/hardware/nrf52_gpiote.h | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/arch/arm/src/nrf52/hardware/nrf52_gpiote.h b/arch/arm/src/nrf52/hardware/nrf52_gpiote.h
index b313d5d..d5a78ac 100644
--- a/arch/arm/src/nrf52/hardware/nrf52_gpiote.h
+++ b/arch/arm/src/nrf52/hardware/nrf52_gpiote.h
@@ -84,20 +84,20 @@
 
 /* CONFIG Register */
 
-#define GPIOTE_CONFIG_MODE_SHIFT 0    /* Bits 0-1: Mode */
-#define GPIOTE_CONFIG_MODE_MASK  (0x3 << GPIOTE_CONFIG_MODE_SHIFT)
-#  define GPIOTE_CONFIG_MODE_DIS (0x0 << GPIOTE_CONFIG_MODE_SHIFT) /* 0: Disabled */
-#  define GPIOTE_CONFIG_MODE_EV  (0x1 << GPIOTE_CONFIG_MODE_SHIFT) /* 1: Event */
-#  define GPIOTE_CONFIG_MODE_TS  (0x3 << GPIOTE_CONFIG_MODE_SHIFT) /* 2: Task */
-#define GPIOTE_CONFIG_PSEL_SHIFT (8)  /* Bits 8-12: GPIO number */
-#define GPIOTE_CONFIG_PSEL_MASK  (0x1f << GPIOTE_CONFIG_PSEL_SHIFT)
-#define GPIOTE_CONFIG_PORT_SHIFT (13) /* Bit 13: GPIO port */
-#define GPIOTE_CONFIG_POL_SHIFT  (16) /* Bits 16-17: Polarity */
-#define GPIOTE_CONFIG_POL_MASK   (0x3 << GPIOTE_CONFIG_POL_SHIFT)
-#  define GPIOTE_CONFIG_POL_NONE (0x0 << GPIOTE_CONFIG_POL_SHIFT) /* 0: None */
-#  define GPIOTE_CONFIG_POL_LTH  (0x1 << GPIOTE_CONFIG_POL_SHIFT) /* 1: LoToHi */
-#  define GPIOTE_CONFIG_POL_HTL  (0x2 << GPIOTE_CONFIG_POL_SHIFT) /* 2: HiToLo */
-#  define GPIOTE_CONFIG_POL_TG   (0x3 << GPIOTE_CONFIG_POL_SHIFT) /* 3: Toggle */
-#define GPIOTE_CONFIG_OUTINIT    (20) /* Bit 20: Initial value */
+#define GPIOTE_CONFIG_MODE_SHIFT    0    /* Bits 0-1: Mode */
+#define GPIOTE_CONFIG_MODE_MASK     (0x3 << GPIOTE_CONFIG_MODE_SHIFT)
+#  define GPIOTE_CONFIG_MODE_DIS    (0x0 << GPIOTE_CONFIG_MODE_SHIFT) /* 0: Disabled */
+#  define GPIOTE_CONFIG_MODE_EV     (0x1 << GPIOTE_CONFIG_MODE_SHIFT) /* 1: Event */
+#  define GPIOTE_CONFIG_MODE_TS     (0x3 << GPIOTE_CONFIG_MODE_SHIFT) /* 2: Task */
+#define GPIOTE_CONFIG_PSEL_SHIFT    (8)  /* Bits 8-12: GPIO number */
+#define GPIOTE_CONFIG_PSEL_MASK     (0x1f << GPIOTE_CONFIG_PSEL_SHIFT)
+#define GPIOTE_CONFIG_PORT_SHIFT    (13) /* Bit 13: GPIO port */
+#define GPIOTE_CONFIG_POL_SHIFT     (16) /* Bits 16-17: Polarity */
+#define GPIOTE_CONFIG_POL_MASK      (0x3 << GPIOTE_CONFIG_POL_SHIFT)
+#  define GPIOTE_CONFIG_POL_NONE    (0x0 << GPIOTE_CONFIG_POL_SHIFT) /* 0: None */
+#  define GPIOTE_CONFIG_POL_LTH     (0x1 << GPIOTE_CONFIG_POL_SHIFT) /* 1: LoToHi */
+#  define GPIOTE_CONFIG_POL_HTL     (0x2 << GPIOTE_CONFIG_POL_SHIFT) /* 2: HiToLo */
+#  define GPIOTE_CONFIG_POL_TG      (0x3 << GPIOTE_CONFIG_POL_SHIFT) /* 3: Toggle */
+#define GPIOTE_CONFIG_OUTINIT_SHIFT (20) /* Bit 20: Initial value */
 
 #endif /* __ARCH_ARM_SRC_NRF52_HARDWARE_NRF52_GPIOTE_H */