summaryrefslogtreecommitdiff
path: root/src/lambdakey-v1.0/ao_pins.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-01-07 23:06:51 -0800
committerKeith Packard <keithp@keithp.com>2018-01-07 23:06:51 -0800
commitf8a967959b2f5ca3486ab3422f30fe4ad4ba17a8 (patch)
treec6291fcec63defe6b2e3867901a5d349d5f76a85 /src/lambdakey-v1.0/ao_pins.h
parent6ae22601bbf018193ac093fb0f745ebe213bfb64 (diff)
altos/lambdakey-v1.0: Add LED function back in
We've made things smaller, so there's (barely) space for this now. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lambdakey-v1.0/ao_pins.h')
-rw-r--r--src/lambdakey-v1.0/ao_pins.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lambdakey-v1.0/ao_pins.h b/src/lambdakey-v1.0/ao_pins.h
index f330213d..58a75080 100644
--- a/src/lambdakey-v1.0/ao_pins.h
+++ b/src/lambdakey-v1.0/ao_pins.h
@@ -22,15 +22,15 @@
#define fprintf(file, ...) ({ (void) (file); printf(__VA_ARGS__); })
#undef putc
#define putc(c,file) ({ (void) (file); putchar(c); })
-#define fputs(s,file) ({ (void) (file); printf("%s", s); })
-#define puts(s) ({ printf("%s\n", s); })
+#define fputs(s,file) ({ (void) (file); ao_put_string(s); })
#undef getc
#define getc(file) ({ (void) (file); getchar(); })
+#define fflush(file) ({ (void) (file); flush(); })
#define HAS_TASK 0
#define HAS_AO_DELAY 1
-#if 0
+#if 1
#define LED_PORT_ENABLE STM_RCC_AHBENR_IOPBEN
#define LED_PORT (&stm_gpiob)
#define LED_PIN_RED 4