Subversion Repositories svn.mios32

Rev

Rev 345 | Rev 472 | 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 464 2009-04-25 15:39:02Z 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
 
229 tk 13
 
14
// The boot message which is print during startup and returned on a SysEx query
15
#define MIOS32_LCD_BOOT_MSG_LINE1 "MIDIbox SEQ V4.0Alpha"
280 tk 16
#define MIOS32_LCD_BOOT_MSG_LINE2 "(C) 2009 T. Klose"
229 tk 17
 
287 tk 18
// USB settings
19
#define MIOS32_USB_PRODUCT_STR  "MIDIbox SEQ V4"
20
#define MIOS32_USB_MIDI_NUM_PORTS 4
229 tk 21
 
22
 
308 tk 23
// port used for debugging via MIDI
24
//#define MIOS32_MIDI_DEBUG_PORT USB0
61 tk 25
 
343 tk 26
// function used to output debug messages (must be printf compatible!)
27
#define DEBUG_MSG MIOS32_MIDI_SendDebugMessage
28
 
29
 
248 tk 30
// Stack size for FreeRTOS tasks as defined by the programming model
31
// Note that each task maintains it's own stack!
32
// If you want to define a different stack size for your application tasks
33
// (-> xTaskCreate() function), keep in mind that it has to be divided by 4,
34
// since the stack width of ARM is 32bit.
35
// The FreeRTOS define "configMINIMAL_STACK_SIZE" is (MIOS32_MINIMAL_STACK_SIZE/4)
36
// it can be used in applications as well, e.g.
37
// xTaskCreate(TASK_Period1mS, (signed portCHAR *)"Period1mS", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD1MS, NULL);
38
#define MIOS32_MINIMAL_STACK_SIZE 1024
134 tk 39
 
248 tk 40
// reserved memory for FreeRTOS pvPortMalloc function
345 tk 41
#define MIOS32_HEAP_SIZE 18*1024
248 tk 42
 
43
 
272 tk 44
// memory alloccation method:
45
// 0: internal static allocation with one byte for each flag
46
// 1: internal static allocation with 8bit flags
47
// 2: internal static allocation with 16bit flags
48
// 3: internal static allocation with 32bit flags
49
// 4: FreeRTOS based pvPortMalloc
50
// 5: malloc provided by library
51
#define SEQ_MIDI_OUT_MALLOC_METHOD 3
52
 
53
// max number of scheduled events which will allocate memory
54
// each event allocates 12 bytes
55
// MAX_EVENTS must be a power of two! (e.g. 64, 128, 256, 512, ...)
345 tk 56
#define SEQ_MIDI_OUT_MAX_EVENTS 512
272 tk 57
 
58
// enable seq_midi_out_max_allocated and seq_midi_out_dropouts
59
#define SEQ_MIDI_OUT_MALLOC_ANALYSIS 1
60
 
61
 
186 tk 62
#define MID_PLAYER_TEST 0
178 tk 63
 
64
// the speed value for the datawheel (#0) which is used when the "FAST" button is activated:
65
#define DEFAULT_DATAWHEEL_SPEED_VALUE   3
66
 
67
// the speed value for the additional encoders (#1-#16) which is used when the "FAST" button is activated:
68
#define DEFAULT_ENC_SPEED_VALUE     3
69
 
70
// Auto FAST mode: if a layer is assigned to velocity or CC, the fast button will be automatically
71
// enabled - in other cases (e.g. Note or Length), the fast button will be automatically disabled
72
#define DEFAULT_AUTO_FAST_BUTTON        1
73
 
74
 
75
// Toggle behaviour of various buttons
76
// 0: active mode so long button pressed
77
// 1: pressing button toggles the mode
78
#define DEFAULT_BEHAVIOUR_BUTTON_FAST   1
79
#define DEFAULT_BEHAVIOUR_BUTTON_ALL    1
80
#define DEFAULT_BEHAVIOUR_BUTTON_SOLO   1
81
#define DEFAULT_BEHAVIOUR_BUTTON_METRON 1
82
#define DEFAULT_BEHAVIOUR_BUTTON_SCRUB  0
83
#define DEFAULT_BEHAVIOUR_BUTTON_MENU   0
303 tk 84
#define DEFAULT_BEHAVIOUR_BUTTON_STEPVIEW 0
326 tk 85
#define DEFAULT_BEHAVIOUR_BUTTON_TRG_LAYER 0
86
#define DEFAULT_BEHAVIOUR_BUTTON_PAR_LAYER 0
178 tk 87
 
88
 
134 tk 89
// include SRIO setup here, so that we can propagate values to external modules
90
#include "srio_mapping.h"
91
 
464 tk 92
// configure BLM_X driver
93
#define BLM_X_NUM_ROWS            8
94
#define BLM_X_BTN_NUM_COLS        8
95
#define BLM_X_LED_NUM_COLS        8
96
#define BLM_X_LED_NUM_COLORS      1
97
#define BLM_X_ROWSEL_DOUT_SR      DEFAULT_SRM_DOUT_CATHODESM-1
98
#define BLM_X_LED_FIRST_DOUT_SR   DEFAULT_SRM_DOUT_M-1
99
#define BLM_X_BTN_FIRST_DIN_SR    DEFAULT_SRM_DIN_M-1
100
#define BLM_X_ROWSEL_INV_MASK     DEFAULT_SRM_CATHODES_INV_MASK_M
101
#define BLM_X_DEBOUNCE_MODE       1 // no mode 0?
134 tk 102
 
61 tk 103
#endif /* _MIOS32_CONFIG_H */