summaryrefslogtreecommitdiff
path: root/board/discovery-stm32f072/gpio.inc
diff options
context:
space:
mode:
authorAnton Staaf <robotboy@chromium.org>2014-07-01 09:02:28 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-07-09 20:30:21 +0000
commitc14b0644e356c8edacdd2a8d0a070fbbc4c23b4c (patch)
treeb2006f1358a2a6b48fd8e2e3a28c9666162e8a3d /board/discovery-stm32f072/gpio.inc
parent0a9545cb9e48822d37073b2059848e66141803ff (diff)
downloadchrome-ec-c14b0644e356c8edacdd2a8d0a070fbbc4c23b4c.tar.gz
discovery-stm32f072: Initial working version
This version of the EC firmware just provides a console and some blinking lights for the stm32f0 discovery board. This is a convenient board to work with for peripheral bringup. Signed-off-by: Anton Staaf <robotboy@chromium.org> BRANCH=none TEST=make buildall -j Change-Id: I9ae87235e8a505d58fa7a5c996528c4dd6c3f2ac Reviewed-on: https://chromium-review.googlesource.com/207130 Reviewed-by: Bill Richardson <wfrichar@chromium.org> Commit-Queue: Anton Staaf <robotboy@chromium.org> Tested-by: Anton Staaf <robotboy@chromium.org>
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)