Subversion Repositories svn.mios32

Rev

Rev 1919 | Rev 1937 | 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.cpp 1919 2014-01-08 19:13:48Z tk $
1
// $Id: app.cpp 1920 2014-01-08 19:29:35Z tk $
2
/*
2
/*
3
 * MIDIbox CV V2
3
 * MIDIbox CV V2
4
 *
4
 *
5
 * ==========================================================================
5
 * ==========================================================================
6
 *
6
 *
Line 231... Line 231...
231
// Alternatively you could create a dedicated task for application specific
231
// Alternatively you could create a dedicated task for application specific
232
// jobs as explained in $MIOS32_PATH/apps/tutorials/006_rtos_tasks
232
// jobs as explained in $MIOS32_PATH/apps/tutorials/006_rtos_tasks
233
/////////////////////////////////////////////////////////////////////////////
233
/////////////////////////////////////////////////////////////////////////////
234
extern "C" void APP_Tick(void)
234
extern "C" void APP_Tick(void)
235
{
235
{
236
  // toggle the status LED (this is a sign of life)
236
  // PWM modulate the status LED (this is a sign of life)
-
 
237
  u32 timestamp = MIOS32_TIMESTAMP_Get();
237
  MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
238
  MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
238
}
239
}
239
240
240
241
241
/////////////////////////////////////////////////////////////////////////////
242
/////////////////////////////////////////////////////////////////////////////
242
// This hook is called each mS from the MIDI task which checks for incoming
243
// This hook is called each mS from the MIDI task which checks for incoming