Subversion Repositories svn.mios32

Rev

Rev 1751 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1751 Rev 2532
Line 1... Line 1...
1
// $Id: seq_ui_stepsel.c 1751 2013-04-16 19:55:51Z tk $
1
// $Id: seq_ui_stepsel.c 2532 2017-10-12 21:50:45Z tk $
2
/*
2
/*
3
 * Step selection page (entered with Step View button)
3
 * Step selection page (entered with Step View button)
4
 *
4
 *
5
 * ==========================================================================
5
 * ==========================================================================
6
 *
6
 *
Line 133... Line 133...
133
// Should return:
133
// Should return:
134
//   1 if value has been changed
134
//   1 if value has been changed
135
//   0 if value hasn't been changed
135
//   0 if value hasn't been changed
136
//  -1 if invalid or unsupported button
136
//  -1 if invalid or unsupported button
137
/////////////////////////////////////////////////////////////////////////////
137
/////////////////////////////////////////////////////////////////////////////
138
static s32 Button_Handler(seq_ui_button_t button, s32 depressed)
138
s32 SEQ_UI_STEPSEL_Button_Handler(seq_ui_button_t button, s32 depressed)
139
{
139
{
140
  if( depressed ) return 0; // ignore when button depressed
140
  if( depressed ) return 0; // ignore when button depressed
141
141
142
#if 0
142
#if 0
143
  // leads to: comparison is always true due to limited range of data type
143
  // leads to: comparison is always true due to limited range of data type
Line 316... Line 316...
316
// Initialisation
316
// Initialisation
317
/////////////////////////////////////////////////////////////////////////////
317
/////////////////////////////////////////////////////////////////////////////
318
s32 SEQ_UI_STEPSEL_Init(u32 mode)
318
s32 SEQ_UI_STEPSEL_Init(u32 mode)
319
{
319
{
320
  // install callback routines
320
  // install callback routines
321
  SEQ_UI_InstallButtonCallback(Button_Handler);
321
  SEQ_UI_InstallButtonCallback(SEQ_UI_STEPSEL_Button_Handler);
322
  SEQ_UI_InstallEncoderCallback(Encoder_Handler);
322
  SEQ_UI_InstallEncoderCallback(Encoder_Handler);
323
  SEQ_UI_InstallLEDCallback(LED_Handler);
323
  SEQ_UI_InstallLEDCallback(LED_Handler);
324
  SEQ_UI_InstallLCDCallback(LCD_Handler);
324
  SEQ_UI_InstallLCDCallback(LCD_Handler);
325
325
326
  return 0; // no error
326
  return 0; // no error