From 2e1d846a31bc9f45851b46ac70fa75be685a5041 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 9 Aug 2018 12:55:48 +0200 Subject: Optionally disable stdout --- src/arch/blinkenrocket/driver/stdout.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/arch') diff --git a/src/arch/blinkenrocket/driver/stdout.cc b/src/arch/blinkenrocket/driver/stdout.cc index 961cf46..195ba96 100644 --- a/src/arch/blinkenrocket/driver/stdout.cc +++ b/src/arch/blinkenrocket/driver/stdout.cc @@ -4,12 +4,15 @@ void StandardOutput::setup() { +#ifndef KOUT_NOP PORTC |= _BV(PC1); DDRC |= _BV(DDC1); +#endif } void StandardOutput::put(char c) { +#ifndef KOUT_NOP unsigned char i = 1; PORTC &= ~_BV(PC1); __builtin_avr_delay_cycles(59); @@ -30,6 +33,7 @@ void StandardOutput::put(char c) if (c == '\n') { put('\r'); } +#endif } StandardOutput kout; -- cgit v1.2.3