aboutsummaryrefslogtreecommitdiff
path: root/tools/avr_codegen/test.c
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/test.c
parent952289cbcf13ad48369002fac7d4765e4fe4d748 (diff)
downloadlibsurvive-74662206d2031c6dcbdb1a1969985defb71adf21.tar.gz
libsurvive-74662206d2031c6dcbdb1a1969985defb71adf21.tar.bz2
Update code to fix timing issues.
Diffstat (limited to 'tools/avr_codegen/test.c')
-rw-r--r--tools/avr_codegen/test.c16
1 files changed, 15 insertions, 1 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);