summaryrefslogtreecommitdiffstats
path: root/mig_test/software
diff options
context:
space:
mode:
Diffstat (limited to 'mig_test/software')
-rw-r--r--mig_test/software/main.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/mig_test/software/main.c b/mig_test/software/main.c
index 883090a..535abf2 100644
--- a/mig_test/software/main.c
+++ b/mig_test/software/main.c
@@ -106,7 +106,6 @@ void running_light( uint32_t simulation_active)
}
-
////////////////////////////////////////////////////////////
@@ -122,11 +121,23 @@ void end_simulation_task( void)
+void running_light_task( void)
+{
+ static unsigned int pattern = 0x80300700;
+
+ gpio0->ioout = 0x0000000f & pattern;
+ pattern = (pattern << 1) | (pattern >> 31);
+
+ scheduler_task_add( running_light_task, SECONDS( 0.125));
+}
+
+
+
////////////////////////////////////////////////////////////
// start running light
uint32_t run_light_function( void)
{
- running_light( simulation_active);
+ scheduler_task_add( running_light_task, 1);
return 0;
}
@@ -168,7 +179,7 @@ void uart_monitor( void)
while( monitor_run)
{
// process scheduler
- if (timer_tick)
+ if ( timer_tick)
{
timer_tick = FALSE;
scheduler_task_check();
OpenPOWER on IntegriCloud