From 74662206d2031c6dcbdb1a1969985defb71adf21 Mon Sep 17 00:00:00 2001 From: cnlohr Date: Thu, 8 Dec 2016 19:40:50 -0500 Subject: Update code to fix timing issues. --- tools/avr_codegen/test.c | 16 +++++++++++++++- tools/avr_codegen/test.elf | Bin 7040 -> 6960 bytes tools/avr_codegen/test.hex | 20 +++++++++----------- 3 files changed, 24 insertions(+), 12 deletions(-) (limited to 'tools/avr_codegen') 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 Binary files a/tools/avr_codegen/test.elf and b/tools/avr_codegen/test.elf 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 -- cgit v1.2.3