summaryrefslogtreecommitdiff
path: root/chip/nrf51/config_chip.h
diff options
context:
space:
mode:
Diffstat (limited to 'chip/nrf51/config_chip.h')
-rw-r--r--chip/nrf51/config_chip.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/nrf51/config_chip.h b/chip/nrf51/config_chip.h
index 374101d1bb..eb2ee93509 100644
--- a/chip/nrf51/config_chip.h
+++ b/chip/nrf51/config_chip.h
@@ -57,7 +57,7 @@
#undef CONFIG_UART_TX_BUF_SIZE
#define CONFIG_UART_TX_BUF_SIZE 1024
-#define GPIO_PIN(port, index) GPIO_##port, (1 << index)
+#define GPIO_PIN(port, index) GPIO_##port, BIT(index)
#define GPIO_PIN_MASK(p, m) .port = GPIO_##p, .mask = (m)
#endif /* __CROS_EC_CONFIG_CHIP_H */