aboutsummaryrefslogtreecommitdiff
path: root/tools/avr_codegen
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2016-12-08 19:40:50 -0500
committercnlohr <lohr85@gmail.com>2016-12-08 19:40:50 -0500
commit74662206d2031c6dcbdb1a1969985defb71adf21 (patch)
tree5fa1f3ed36a3b1a79df6dd760ae10c908c5576c5 /tools/avr_codegen
parent952289cbcf13ad48369002fac7d4765e4fe4d748 (diff)
downloadlibsurvive-74662206d2031c6dcbdb1a1969985defb71adf21.tar.gz
libsurvive-74662206d2031c6dcbdb1a1969985defb71adf21.tar.bz2
Update code to fix timing issues.
Diffstat (limited to 'tools/avr_codegen')
-rw-r--r--tools/avr_codegen/test.c16
-rwxr-xr-xtools/avr_codegen/test.elfbin7040 -> 6960 bytes
-rw-r--r--tools/avr_codegen/test.hex20
3 files changed, 24 insertions, 12 deletions
diff --git a/tools/avr_codegen/test.c b/tools/avr_codegen/test.c
index d245e16..89829a2 100644
--- a/tools/avr_codegen/test.c
+++ b/tools/avr_codegen/test.c
@@ -71,7 +71,7 @@ int main( )
#define DO_MARKER( time, LEDS ) \
marker = time; do { PORTB = LEDS; marker--; PORTB = 0; } while( marker );
-#if 1 //this breaks it?
+#if 0 //this breaks it?
DO_MARKER(20, LED50);
DO_MARKER(20, LED50|LED48);
DO_MARKER(20, LED48);
@@ -87,6 +87,20 @@ int main( )
DO_MARKER(20, LED40);
#endif
+#if 1
+DO_MARKER(30, LED48);
+DO_MARKER(20, LED48|LED40|LED50);
+DO_MARKER(20, LED48|LED40);
+DO_MARKER(30, LED48);
+DO_MARKER(20, LED48|LED40);
+DO_MARKER(20, LED48|LED50);
+DO_MARKER(30, LED48);
+DO_MARKER(20, LED48|LED40);
+DO_MARKER(20, LED48|LED40|LED50);
+DO_MARKER(30, LED48);
+
+#endif
+
#if 0
DO_MARKER(10, LED50);
DO_MARKER(50, LED50|LED48);
diff --git a/tools/avr_codegen/test.elf b/tools/avr_codegen/test.elf
index 3d55c28..56a580f 100755
--- a/tools/avr_codegen/test.elf
+++ b/tools/avr_codegen/test.elf
Binary files differ
diff --git a/tools/avr_codegen/test.hex b/tools/avr_codegen/test.hex
index 2038204..c89f46a 100644
--- a/tools/avr_codegen/test.hex
+++ b/tools/avr_codegen/test.hex
@@ -1,18 +1,16 @@
:100000000EC015C014C013C012C011C010C00FC064
:100010000EC00DC00CC00BC00AC009C008C011241E
-:100020001FBECFE5D2E0DEBFCDBF1AD06EC0E8CF95
+:100020001FBECFE5D2E0DEBFCDBF1AD05EC0E8CFA5
:100030000F931F9300E010E0980106171707280799
:10004000390759F0EFECF7E03197F1F700C0000005
:100050000F5F1F4F2F4F3F4FF0CF1F910F9108950C
:10006000F89480E886BD16BC82E481BF8AE187BB34
-:1000700032E04AE058E088E190E124E138BB18BA68
-:100080002150E1F724E148BB18BA2150E1F724E1FF
-:1000900058BB18BA2150E1F724E188BB18BA2150A7
-:1000A000E1F724E198BB18BA2150E1F724E188BBBD
-:1000B00018BA2150E1F724E198BB18BA2150E1F7B2
-:1000C00024E188BB18BA2150E1F724E198BB18BAA3
-:1000D0002150E1F724E188BB18BA2150E1F724E16F
-:1000E00098BB18BA2150E1F724E188BB18BA215017
-:1000F000E1F724E198BB18BA2150E1F7EFEFF9EFEF
-:0E0100003197F1F700C00000B8CFF894FFCFA0
+:1000700088E03AE198E14AE02EE188BB18BA2150C5
+:10008000E1F724E138BB18BA2150E1F724E198BB2D
+:1000900018BA2150E1F72EE188BB18BA2150E1F7D8
+:1000A00024E198BB18BA2150E1F724E148BB18BA03
+:1000B0002150E1F72EE188BB18BA2150E1F724E185
+:1000C00098BB18BA2150E1F724E138BB18BA215087
+:1000D000E1F72EE188BB18BA2150E1F7EFEFF9EF15
+:0E00E0003197F1F700C00000C7CFF894FFCFB2
:00000001FF