Subversion Repositories svn.mios32

Rev

Rev 1919 | Rev 1962 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1919 Rev 1920
Line 1... Line 1...
1
// $Id: app.c 1919 2014-01-08 19:13:48Z tk $
1
// $Id: app.c 1920 2014-01-08 19:29:35Z tk $
2
/*
2
/*
3
 * MIOS32 Tutorial #027: Standard Control Surface
3
 * MIOS32 Tutorial #027: Standard Control Surface
4
 * see README.txt for details
4
 * see README.txt for details
5
 *
5
 *
6
 * ==========================================================================
6
 * ==========================================================================
Line 83... Line 83...
83
// Alternatively you could create a dedicated task for application specific
83
// Alternatively you could create a dedicated task for application specific
84
// jobs as explained in $MIOS32_PATH/apps/tutorials/006_rtos_tasks
84
// jobs as explained in $MIOS32_PATH/apps/tutorials/006_rtos_tasks
85
/////////////////////////////////////////////////////////////////////////////
85
/////////////////////////////////////////////////////////////////////////////
86
void APP_Tick(void)
86
void APP_Tick(void)
87
{
87
{
88
  // toggle the status LED (this is a sign of life)
88
  // PWM modulate the status LED (this is a sign of life)
-
 
89
  u32 timestamp = MIOS32_TIMESTAMP_Get();
89
  MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
90
  MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
90
}
91
}
91
92
92
93
93
/////////////////////////////////////////////////////////////////////////////
94
/////////////////////////////////////////////////////////////////////////////
94
// This hook is called each mS from the MIDI task which checks for incoming
95
// This hook is called each mS from the MIDI task which checks for incoming