From f983af68d98dcb897bcbd0c8a0337d5796cd486b Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 13 Jul 2012 20:06:43 +0000 Subject: [PATCH] Added noise maker support. --- Makefile | 4 ++-- cerebrum_firmware.c | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 07a249c..e7eee74 100644 --- a/Makefile +++ b/Makefile @@ -386,7 +386,7 @@ AVRDUDE_PROGRAMMER = stk500v2 -b 115200 # ==> Choose the port used by the programmer -AVRDUDE_PORT = /dev/ttyACM1 +AVRDUDE_PORT = /dev/ttyACM0 # <== @@ -523,7 +523,7 @@ gccversion : # Program the device. program: $(TARGET).hex $(TARGET).eep - sh -c 'echo>/dev/ttyACM1' + sh -c 'echo>/dev/ttyACM0' $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM) diff --git a/cerebrum_firmware.c b/cerebrum_firmware.c index 8145842..4fe4bbe 100644 --- a/cerebrum_firmware.c +++ b/cerebrum_firmware.c @@ -102,6 +102,14 @@ void loop(){ //one frame nbuf = 0; break; #endif//HAS_PWM_SUPPORT + case 'x': + //DDRF |= 0x01; + //PORTF |= 0x01; + break; + case 'X': + //DDRF &= 0xFE; + //PORTF &= 0xFE; + break; #ifdef HAS_LED_SUPPORT case 'r': uart_putc('r'); -- 2.11.4.GIT