summaryrefslogtreecommitdiff
path: root/board/discovery-stm32f072/gpio.inc
diff options
context:
space:
mode:
Diffstat (limited to 'board/discovery-stm32f072/gpio.inc')
-rw-r--r--board/discovery-stm32f072/gpio.inc19
1 files changed, 19 insertions, 0 deletions
diff --git a/board/discovery-stm32f072/gpio.inc b/board/discovery-stm32f072/gpio.inc
new file mode 100644
index 0000000000..f3e2106452
--- /dev/null
+++ b/board/discovery-stm32f072/gpio.inc
@@ -0,0 +1,19 @@
+/* -*- mode:c -*-
+ *
+ * Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/* Inputs with interrupt handlers are first for efficiency */
+GPIO(USER_BUTTON, A, 0, GPIO_INT_FALLING, button_event)
+
+/* Outputs */
+GPIO(LED_U, C, 6, GPIO_OUT_LOW, NULL)
+GPIO(LED_D, C, 7, GPIO_OUT_LOW, NULL)
+GPIO(LED_L, C, 8, GPIO_OUT_LOW, NULL)
+GPIO(LED_R, C, 9, GPIO_OUT_LOW, NULL)
+
+/* Unimplemented signals which we need to emulate for now */
+UNIMPLEMENTED(ENTERING_RW)
+UNIMPLEMENTED(WP_L)