diff options
Diffstat (limited to 'demos/ARMCM3-STM32F103-GCC/board.h')
-rw-r--r-- | demos/ARMCM3-STM32F103-GCC/board.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/demos/ARMCM3-STM32F103-GCC/board.h b/demos/ARMCM3-STM32F103-GCC/board.h index 680668cc2..ef1ecbdaf 100644 --- a/demos/ARMCM3-STM32F103-GCC/board.h +++ b/demos/ARMCM3-STM32F103-GCC/board.h @@ -123,13 +123,13 @@ /*
* IO pins assignments.
*/
-#define GPIOA_BUTTON (1 << 0)
+#define GPIOA_BUTTON IOPORT_BIT(0)
-#define GPIOC_MMCWP (1 << 6)
-#define GPIOC_MMCCP (1 << 7)
-#define GPIOC_CANCNTL (1 << 10)
-#define GPIOC_DISC (1 << 11)
-#define GPIOC_LED (1 << 12)
+#define GPIOC_MMCWP IOPORT_BIT(6)
+#define GPIOC_MMCCP IOPORT_BIT(7)
+#define GPIOC_CANCNTL IOPORT_BIT(10)
+#define GPIOC_DISC IOPORT_BIT(11)
+#define GPIOC_LED IOPORT_BIT(12)
/*
* All inputs with pullups unless otherwise specified.
|