aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-22 17:40:25 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-26 16:50:31 -0400
commit924505a95ca4e62b46032fdeab76abd4b860246d (patch)
tree354a8da65df2d6417b72965b4ad37009d90f5cf5
parent30b2d02c01baae1bb21c8e32a2ff646b01c555cb (diff)
downloadlibrambutan-924505a95ca4e62b46032fdeab76abd4b860246d.tar.gz
librambutan-924505a95ca4e62b46032fdeab76abd4b860246d.zip
Bring back throb().
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
-rw-r--r--libmaple/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmaple/util.c b/libmaple/util.c
index 0c066d6..592037a 100644
--- a/libmaple/util.c
+++ b/libmaple/util.c
@@ -149,13 +149,13 @@ void abort() {
* @sideeffect Sets output push-pull on ERROR_LED_PIN.
*/
void throb(void) {
-#if 0
+#ifdef HAVE_ERROR_LED
int32 slope = 1;
uint32 CC = 0x0000;
uint32 TOP_CNT = 0x0200;
uint32 i = 0;
- gpio_set_mode(ERROR_LED_PORT, ERROR_LED_PIN, GPIO_OUTPUT_PP);
+ gpio_set_mode(ERROR_LED_PORT, ERROR_LED_PIN, GPIO_MODE_OUTPUT);
/* Error fade. */
while (1) {
if (CC == TOP_CNT) {