aboutsummaryrefslogtreecommitdiff
path: root/bin/build-25.sh
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-08-22 23:46:32 -0600
committerSelene ToyKeeper2018-08-22 23:46:32 -0600
commit00c177bb32715fc5b3f9873cc981e6c263b0ae66 (patch)
tree750f9763d723a443fcb008f5fa925e309ab1e33e /bin/build-25.sh
parentRemoved symlinks to fix Windows checkouts. Copies those files from their ori... (diff)
parentMade anduril.c no longer executable. (diff)
downloadanduril-00c177bb32715fc5b3f9873cc981e6c263b0ae66.tar.gz
anduril-00c177bb32715fc5b3f9873cc981e6c263b0ae66.tar.bz2
anduril-00c177bb32715fc5b3f9873cc981e6c263b0ae66.zip
merged in zeroflow's fixes and my related changes:
- fixed main emitters coming on while changing aux LED mode - made strobe group mode selection more configurable at compile time - refactored eeprom indexes in the same manner as strobe indexes, for cleaner and more robust code - added -fshort-enums to compile options for smaller ROM size - made interrupt_nice_delays() automatic every time the user completes a button press sequence, so all delays collapse until the next trip through main()... this reduces ROM size and simplifies code and eliminates risk of not responding right away Tested on D4 and D4S.
Diffstat (limited to 'bin/build-25.sh')
-rwxr-xr-xbin/build-25.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/build-25.sh b/bin/build-25.sh
index 2be8269..a775a0f 100755
--- a/bin/build-25.sh
+++ b/bin/build-25.sh
@@ -8,7 +8,7 @@ export ATTINY=25
export MCU=attiny$ATTINY
export CC=avr-gcc
export OBJCOPY=avr-objcopy
-export CFLAGS="-Wall -g -Os -mmcu=$MCU -c -std=gnu99 -DATTINY=$ATTINY -I.. -I../.. -I../../.."
+export CFLAGS="-Wall -g -Os -mmcu=$MCU -c -std=gnu99 -DATTINY=$ATTINY -I.. -I../.. -I../../.. -fshort-enums"
export OFLAGS="-Wall -g -Os -mmcu=$MCU"
export LDFLAGS=
export OBJCOPYFLAGS='--set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex'