Subversion Repositories svn.mios32

Rev

Rev 1919 | 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 #020: LCD Output
3
 * MIOS32 Tutorial #020: LCD Output
4
 * see README.txt for details
4
 * see README.txt for details
5
 *
5
 *
6
 * ==========================================================================
6
 * ==========================================================================
Line 62... Line 62...
62
// Alternatively you could create a dedicated task for application specific
62
// Alternatively you could create a dedicated task for application specific
63
// jobs as explained in $MIOS32_PATH/apps/tutorials/006_rtos_tasks
63
// jobs as explained in $MIOS32_PATH/apps/tutorials/006_rtos_tasks
64
/////////////////////////////////////////////////////////////////////////////
64
/////////////////////////////////////////////////////////////////////////////
65
void APP_Tick(void)
65
void APP_Tick(void)
66
{
66
{
67
  // toggle the state of all LEDs (this is a sign of life)
67
  // PWM modulate the status LED (this is a sign of life)
-
 
68
  u32 timestamp = MIOS32_TIMESTAMP_Get();
68
  MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
69
  MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
69
}
70
}
70
71
71
72
72
/////////////////////////////////////////////////////////////////////////////
73
/////////////////////////////////////////////////////////////////////////////
73
// This hook is called each mS from the MIDI task which checks for incoming
74
// This hook is called each mS from the MIDI task which checks for incoming