Skip to content

Commit

Permalink
Create MiniPOV Code Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NerdiusMaximus committed Aug 1, 2014
1 parent ee556bf commit 8988641
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Posts/MiniPOV Code Fix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
While following the <a href="http://www.ladyada.net/make/minipov3/programming.html" target="_blank">miniPOV programming instructions</a> from Adafruit, we ran into the following error while compiling mypov.c (running make mypov.hex):

[code]
mypov.c:81:9: error: attempt to use poisoned &quot;SIG_TIMER1_COMPA&quot;
mypov.c: In function ‘SIG_TIMER1_COMPA’:
mypov.c:81:1: warning: ‘SIG_TIMER1_COMPA’ appears to be a misspelled signal handler [enabled by default]
make: *** [mypov.o] Error 1
[/code]

We fix it by modifying the Makefile in the minipovfirmware directory from:
[code]
CFLAGS = -g -O$(OPT) \
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums \
-Wall -Wstrict-prototypes \
-DF_CPU=$(F_CPU) \
-Wa,-adhlns=$(&amp;lt;:.c=.lst) \
$(patsubst %,-I%,$(EXTRAINCDIRS)) \
-mmcu=$(MCU)
[/code]
to:

[code highlight="7,8"]
CFLAGS = -g -O$(OPT) \
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums \
-Wall -Wstrict-prototypes \
-DF_CPU=$(F_CPU) \
-Wa,-adhlns=$(&amp;lt;:.c=.lst) \
$(patsubst %,-I%,$(EXTRAINCDIRS)) \
-mmcu=$(MCU) \
-D__AVR_LIBC_DEPRECATED_ENABLE__
[/code]

0 comments on commit 8988641

Please sign in to comment.