Permalink
Browse files

makefile happy on MHV, fixed missing NUM_ELEM

  • Loading branch information...
1 parent 6993eec commit 433660e1080357649ea4cd7c2799717fd0649c2b @ladyada ladyada committed Feb 14, 2014
Showing with 502 additions and 518 deletions.
  1. +3 −8 firmware/Makefile
  2. +3 −0 firmware/main.h
  3. +496 −510 firmware/tvbgone.hex
View
@@ -30,12 +30,7 @@ SRC = main.c WORLDcodes.c
# -Wall...: warning level
# -Wa,...: tell GCC to pass this to the assembler.
# -ahlms: create assembler listing
-CFLAGS = -g -O$(OPT) \
--funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums \
--Wall -Wstrict-prototypes \
--DF_CPU=$(F_CPU) \
--Wa,-adhlns=$(<:.c=.lst) \
-$(patsubst %,-I%,$(EXTRAINCDIRS))
+CFLAGS = -g -O$(OPT) -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -DF_CPU=$(F_CPU) -Wa,-adhlns=$(<:.c=.lst) $(patsubst %,-I%,$(EXTRAINCDIRS))
# Set a "language standard" compiler flag.
@@ -211,10 +206,10 @@ end:
# Display size of file.
sizebefore:
- @if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); echo; fi
+# @if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); echo; fi
sizeafter:
- @if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi
+# @if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi
View
@@ -18,6 +18,9 @@
// is, the inverse!
#define freq_to_timerval(x) ((F_CPU / x - 1)/ 2)
+// Lets us calculate the size of the NA/EU databases
+#define NUM_ELEM(x) (sizeof (x) / sizeof (*(x)));
+
// The structure of compressed code entries
struct IrCode {
uint8_t timer_val;
Oops, something went wrong.

0 comments on commit 433660e

Please sign in to comment.