Subversion Repositories svn.mios32

Rev

Rev 134 | Rev 186 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
61 tk 1
// $Id: mios32_config.h 178 2008-12-13 15:19:25Z tk $
2
/*
3
 * Local MIOS32 configuration file
4
 *
5
 * this file allows to disable (or re-configure) default functions of MIOS32
6
 * available switches are listed in $MIOS32_PATH/modules/mios32/MIOS32_CONFIG.txt
7
 *
8
 */
9
 
10
#ifndef _MIOS32_CONFIG_H
11
#define _MIOS32_CONFIG_H
12
 
134 tk 13
// for debugging via UART1 (application uses printf() to output helpful debugging messages)
14
#define COM_DEBUG 1
61 tk 15
 
134 tk 16
 
17
#ifdef COM_DEBUG
18
  // enable COM via UART1
19
# define MIOS32_UART1_ASSIGNMENT 2
20
# define MIOS32_UART1_BAUDRATE 115200
21
 
22
  // use UART1 as default COM port
23
# define MIOS32_COM_DEFAULT_PORT UART1
24
#endif
25
 
26
 
178 tk 27
 
28
// the speed value for the datawheel (#0) which is used when the "FAST" button is activated:
29
#define DEFAULT_DATAWHEEL_SPEED_VALUE   3
30
 
31
// the speed value for the additional encoders (#1-#16) which is used when the "FAST" button is activated:
32
#define DEFAULT_ENC_SPEED_VALUE     3
33
 
34
// Auto FAST mode: if a layer is assigned to velocity or CC, the fast button will be automatically
35
// enabled - in other cases (e.g. Note or Length), the fast button will be automatically disabled
36
#define DEFAULT_AUTO_FAST_BUTTON        1
37
 
38
 
39
// Toggle behaviour of various buttons
40
// 0: active mode so long button pressed
41
// 1: pressing button toggles the mode
42
#define DEFAULT_BEHAVIOUR_BUTTON_FAST   1
43
#define DEFAULT_BEHAVIOUR_BUTTON_ALL    1
44
#define DEFAULT_BEHAVIOUR_BUTTON_SOLO   1
45
#define DEFAULT_BEHAVIOUR_BUTTON_METRON 1
46
#define DEFAULT_BEHAVIOUR_BUTTON_SCRUB  0
47
#define DEFAULT_BEHAVIOUR_BUTTON_MENU   0
48
 
49
 
134 tk 50
// include SRIO setup here, so that we can propagate values to external modules
51
#include "srio_mapping.h"
52
 
53
// forward to BLM8x8 driver
54
#define BLM8X8_DOUT           DEFAULT_SRM_DOUT_M
55
#define BLM8X8_DOUT_CATHODES      DEFAULT_SRM_DOUT_CATHODESM
56
#define BLM8X8_CATHODES_INV_MASK  DEFAULT_SRM_CATHODES_INV_MASK_M
57
#define BLM8X8_DIN            DEFAULT_SRM_DIN_M
58
 
61 tk 59
#endif /* _MIOS32_CONFIG_H */