aboutsummaryrefslogtreecommitdiff
path: root/board/board-fsm-55.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-fsm-55.h
parent43bd3bcefd6dbd28e3fd68ca8ff6b9a877009774 (diff)
Update for FSM-55
Diffstat (limited to 'board/board-fsm-55.h')
-rw-r--r--board/board-fsm-55.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/board/board-fsm-55.h b/board/board-fsm-55.h
index 9cb405e..7a05c9d 100644
--- a/board/board-fsm-55.h
+++ b/board/board-fsm-55.h
@@ -12,26 +12,26 @@
#define STM32_PLLMUL_VALUE 12
#define STM32_HSICLK 8000000
-#define GPIO_LED_SET_TO_EMIT 5
+#define GPIO_LED_BASE GPIOA_BASE
+#define GPIO_LED_SET_TO_EMIT 5
+#define GPIO_OTHER_BASE GPIOF_BASE /* USER BUTTON */
/*
* Port A setup.
* PA5 - ON (LED 1:ON 0:OFF)
* PA4 - Pull DOWN
*/
-#define VAL_GPIO_MODER 0x00145555 /* Output Pin0-7, Pin9 and Pin10 */
-#define VAL_GPIO_OTYPER 0x0000001f /* Open-drain for Pin0-4, Push-Pull*/
-#define VAL_GPIO_OSPEEDR 0x003cffff /* High speed */
-#define VAL_GPIO_PUPDR 0x00000000 /* No pull-up/pull-down */
+#define VAL_GPIO_LED_MODER 0x00145555 /* Output Pin0-7, Pin9 and Pin10 */
+#define VAL_GPIO_LED_OTYPER 0x0000001f /* Open-drain for Pin0-4, Push-Pull*/
+#define VAL_GPIO_LED_OSPEEDR 0x003cffff /* High speed */
+#define VAL_GPIO_LED_PUPDR 0x00000000 /* No pull-up/pull-down */
-#define GPIO_LED_BASE GPIOA_BASE
#define RCC_ENR_IOP_EN (RCC_AHBENR_IOPAEN | RCC_AHBENR_IOPFEN)
#define RCC_RSTR_IOP_RST (RCC_AHBRSTR_IOPARST | RCC_AHBRSTR_IOPFRST)
/* ??? NeuG settings for ADC2 is default (PA0: Analog IN0, PA1: Analog IN1). */
-#define GPIO_OTHER_BASE GPIOF_BASE /* USER BUTTON */
/*
* Port F setup.
* PF0 - USER Button