Subversion Repositories svn.mios32

Rev

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

Rev 2399 Rev 2531
Line 1... Line 1...
1
// $Id: seq_hwcfg.c 2399 2016-08-10 21:17:32Z tk $
1
// $Id: seq_hwcfg.c 2531 2017-10-11 22:55:38Z tk $
2
/*
2
/*
3
 * Hardware Soft-Configuration
3
 * Hardware Soft-Configuration
4
 *
4
 *
5
 * ==========================================================================
5
 * ==========================================================================
6
 *
6
 *
Line 18... Line 18...
18
// with this switch, seq_ui.h/seq_ui_pages.inc will create local variables
18
// with this switch, seq_ui.h/seq_ui_pages.inc will create local variables
19
#define SEQ_UI_PAGES_INC_LOCAL_VARS 1
19
#define SEQ_UI_PAGES_INC_LOCAL_VARS 1
20
20
21
#include <mios32.h>
21
#include <mios32.h>
22
22
23
#include <blm_x.h>
23
#include <seq_blm8x8.h>
24
#include "seq_hwcfg.h"
24
#include "seq_hwcfg.h"
25
25
26
26
27
/////////////////////////////////////////////////////////////////////////////
27
/////////////////////////////////////////////////////////////////////////////
28
// Global variables
28
// Global variables
Line 218... Line 218...
218
    seq_hwcfg_dout_gate_sr[i] = 0;
218
    seq_hwcfg_dout_gate_sr[i] = 0;
219
  for(i=0; i<SEQ_HWCFG_NUM_SR_CV_GATES; ++i)
219
  for(i=0; i<SEQ_HWCFG_NUM_SR_CV_GATES; ++i)
220
    seq_hwcfg_cv_gate_sr[i] = 0;
220
    seq_hwcfg_cv_gate_sr[i] = 0;
221
221
222
  // MBSEQV4L: pre-configure SRIO based frontpanel
222
  // MBSEQV4L: pre-configure SRIO based frontpanel
223
  blm_x_config_t config = BLM_X_ConfigGet();
223
  seq_blm8x8_config_t config = SEQ_BLM8X8_ConfigGet(0);
224
  config.rowsel_dout_sr = 1;
224
  config.rowsel_dout_sr = 1;
225
  config.rowsel_inv_mask = 0x00;
225
  config.rowsel_inv_mask = 0x00;
226
  config.led_first_dout_sr = 2;
226
  config.led_dout_sr = 2;
227
  config.btn_first_din_sr = 1;
227
  config.button_din_sr = 1;
228
  config.debounce_delay = 20; // mS
228
  config.debounce_delay = 20; // mS
229
  BLM_X_ConfigSet(config);
229
  SEQ_BLM8X8_ConfigSet(0, config);
230
230
231
  return 0; // no error
231
  return 0; // no error
232
}
232
}