aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2015-08-06 11:01:49 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2015-08-06 11:02:34 +0900
commit1bbbaabe0dd7b9b501d7fc5cac6cddba2e7785bf (patch)
tree9d6ad0192c59a959966c89a87f41831316951ea1 /board
parent218102c5c4232876dd74ce537eb0f13fdd8701dc (diff)
Add a speaker
Diffstat (limited to 'board')
-rw-r--r--board/board-fsm-55.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/board/board-fsm-55.h b/board/board-fsm-55.h
index 54b486d..edf3cea 100644
--- a/board/board-fsm-55.h
+++ b/board/board-fsm-55.h
@@ -31,13 +31,12 @@
#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). */
-
/*
* Port F setup.
* PF0 - USER Button
+ * PF1 - SPEAKER
*/
-#define VAL_GPIO_OTHER_MODER 0x00000000 /* Input Pin0 */
-#define VAL_GPIO_OTHER_OTYPER 0x00000000
+#define VAL_GPIO_OTHER_MODER 0x00000004 /* Input Pin0, Output Pin1 */
+#define VAL_GPIO_OTHER_OTYPER 0x00000000 /* Push-Pull Pin1 */
#define VAL_GPIO_OTHER_OSPEEDR 0x00000000
-#define VAL_GPIO_OTHER_PUPDR 0x00000001 /* Pull-up Pin0 */
+#define VAL_GPIO_OTHER_PUPDR 0x00000009 /* Pull-up Pin0, Pull-down Pin1 */