Subversion Repositories svn.mios32

Rev

Rev 1919 | 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 #023: Exclusive access to LCD device (using a Mutex)
3
 * MIOS32 Tutorial #023: Exclusive access to LCD device (using a Mutex)
4
 * see README.txt for details
4
 * see README.txt for details
5
 *
5
 *
6
 * ==========================================================================
6
 * ==========================================================================
Line 78... Line 78...
78
// Alternatively you could create a dedicated task for application specific
78
// Alternatively you could create a dedicated task for application specific
79
// jobs as explained in $MIOS32_PATH/apps/tutorials/006_rtos_tasks
79
// jobs as explained in $MIOS32_PATH/apps/tutorials/006_rtos_tasks
80
/////////////////////////////////////////////////////////////////////////////
80
/////////////////////////////////////////////////////////////////////////////
81
void APP_Tick(void)
81
void APP_Tick(void)
82
{
82
{
83
  // toggle the status LED (this is a sign of life)
83
  // PWM modulate the status LED (this is a sign of life)
-
 
84
  //u32 timestamp = MIOS32_TIMESTAMP_Get();
84
  //MIOS32_BOARD_LED_Set(0x0001, ~MIOS32_BOARD_LED_Get());
85
  //MIOS32_BOARD_LED_Set(1, (timestamp % 20) <= ((timestamp / 100) % 10));
85
}
86
}
86
87
87
88
88
/////////////////////////////////////////////////////////////////////////////
89
/////////////////////////////////////////////////////////////////////////////
89
// This hook is called each mS from the MIDI task which checks for incoming
90
// This hook is called each mS from the MIDI task which checks for incoming