aboutsummaryrefslogtreecommitdiff
path: root/board/board-stm32f0-discovery.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2015-07-07 12:31:15 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2015-07-07 12:31:15 +0900
commit4dc10d6b18730cb59c3ea25d435377c4adc2d549 (patch)
tree9e33786113b9de82e1df0b6f1841a328930fb36e /board/board-stm32f0-discovery.h
parent43bd3bcefd6dbd28e3fd68ca8ff6b9a877009774 (diff)
Update for FSM-55
Diffstat (limited to 'board/board-stm32f0-discovery.h')
-rw-r--r--board/board-stm32f0-discovery.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/board/board-stm32f0-discovery.h b/board/board-stm32f0-discovery.h
index 15b8b51..226efd4 100644
--- a/board/board-stm32f0-discovery.h
+++ b/board/board-stm32f0-discovery.h
@@ -12,19 +12,20 @@
#define STM32_PLLMUL_VALUE 12
#define STM32_HSICLK 8000000
-#define GPIO_LED_SET_TO_EMIT 8
+#define GPIO_LED_BASE GPIOC_BASE
+#define GPIO_LED_SET_TO_EMIT 8
+#define GPIO_OTHER_BASE GPIOA_BASE /* USER BUTTON */
/*
* Port C setup.
* PC9 - LED3 (LED 1:ON 0:OFF)
* PC8 - LED4 (LED 1:ON 0:OFF)
*/
-#define VAL_GPIO_MODER 0x00050000 /* Output Pin9 and Pin8 */
-#define VAL_GPIO_OTYPER 0x00000000 /* Push-Pull */
-#define VAL_GPIO_OSPEEDR 0x000f0000 /* High speed: Pin9 and Pin8 */
-#define VAL_GPIO_PUPDR 0x00000000 /* No pull-up/pull-down */
+#define VAL_GPIO_LED_MODER 0x00050000 /* Output Pin9 and Pin8 */
+#define VAL_GPIO_LED_OTYPER 0x00000000 /* Push-Pull */
+#define VAL_GPIO_LED_OSPEEDR 0x000f0000 /* High speed: Pin9 and Pin8 */
+#define VAL_GPIO_LED_PUPDR 0x00000000 /* No pull-up/pull-down */
-#define GPIO_LED_BASE GPIOC_BASE
#if 0
#define RCC_ENR_IOP_EN (RCC_AHBENR_IOPAEN | RCC_AHBENR_IOPCEN)
@@ -36,7 +37,6 @@
/* ??? NeuG settings for ADC2 is default (PA0: Analog IN0, PA1: Analog IN1). */
-#define GPIO_OTHER_BASE GPIOA_BASE /* USER BUTTON */
/*
* Port A setup.
* PA0 - USER Button