Subversion Repositories svn.mios32

Rev

Rev 248 | Rev 280 | 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 272 2009-01-10 14:10:29Z 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"
16
#define MIOS32_LCD_BOOT_MSG_LINE2 "(c) 2009 T. Klose"
17
 
18
 
19
 
134 tk 20
// for debugging via UART1 (application uses printf() to output helpful debugging messages)
21
#define COM_DEBUG 1
61 tk 22
 
134 tk 23
 
24
#ifdef COM_DEBUG
25
  // enable COM via UART1
26
# define MIOS32_UART1_ASSIGNMENT 2
27
# define MIOS32_UART1_BAUDRATE 115200
28
 
29
  // use UART1 as default COM port
30
# define MIOS32_COM_DEFAULT_PORT UART1
31
#endif
32
 
272 tk 33
 
248 tk 34
// Stack size for FreeRTOS tasks as defined by the programming model
35
// Note that each task maintains it's own stack!
36
// If you want to define a different stack size for your application tasks
37
// (-> xTaskCreate() function), keep in mind that it has to be divided by 4,
38
// since the stack width of ARM is 32bit.
39
// The FreeRTOS define "configMINIMAL_STACK_SIZE" is (MIOS32_MINIMAL_STACK_SIZE/4)
40
// it can be used in applications as well, e.g.
41
// xTaskCreate(TASK_Period1mS, (signed portCHAR *)"Period1mS", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD1MS, NULL);
42
#define MIOS32_MINIMAL_STACK_SIZE 1024
134 tk 43
 
248 tk 44
// reserved memory for FreeRTOS pvPortMalloc function
272 tk 45
#define MIOS32_HEAP_SIZE 32*1024
248 tk 46
 
47
 
272 tk 48
// memory alloccation method:
49
// 0: internal static allocation with one byte for each flag
50
// 1: internal static allocation with 8bit flags
51
// 2: internal static allocation with 16bit flags
52
// 3: internal static allocation with 32bit flags
53
// 4: FreeRTOS based pvPortMalloc
54
// 5: malloc provided by library
55
#define SEQ_MIDI_OUT_MALLOC_METHOD 3
56
 
57
// max number of scheduled events which will allocate memory
58
// each event allocates 12 bytes
59
// MAX_EVENTS must be a power of two! (e.g. 64, 128, 256, 512, ...)
60
#define SEQ_MIDI_OUT_MAX_EVENTS 1024
61
 
62
// enable seq_midi_out_max_allocated and seq_midi_out_dropouts
63
#define SEQ_MIDI_OUT_MALLOC_ANALYSIS 1
64
 
65
 
186 tk 66
#define MID_PLAYER_TEST 0
178 tk 67
 
68
// the speed value for the datawheel (#0) which is used when the "FAST" button is activated:
69
#define DEFAULT_DATAWHEEL_SPEED_VALUE   3
70
 
71
// the speed value for the additional encoders (#1-#16) which is used when the "FAST" button is activated:
72
#define DEFAULT_ENC_SPEED_VALUE     3
73
 
74
// Auto FAST mode: if a layer is assigned to velocity or CC, the fast button will be automatically
75
// enabled - in other cases (e.g. Note or Length), the fast button will be automatically disabled
76
#define DEFAULT_AUTO_FAST_BUTTON        1
77
 
78
 
79
// Toggle behaviour of various buttons
80
// 0: active mode so long button pressed
81
// 1: pressing button toggles the mode
82
#define DEFAULT_BEHAVIOUR_BUTTON_FAST   1
83
#define DEFAULT_BEHAVIOUR_BUTTON_ALL    1
84
#define DEFAULT_BEHAVIOUR_BUTTON_SOLO   1
85
#define DEFAULT_BEHAVIOUR_BUTTON_METRON 1
86
#define DEFAULT_BEHAVIOUR_BUTTON_SCRUB  0
87
#define DEFAULT_BEHAVIOUR_BUTTON_MENU   0
88
 
89
 
134 tk 90
// include SRIO setup here, so that we can propagate values to external modules
91
#include "srio_mapping.h"
92
 
93
// forward to BLM8x8 driver
94
#define BLM8X8_DOUT           DEFAULT_SRM_DOUT_M
95
#define BLM8X8_DOUT_CATHODES      DEFAULT_SRM_DOUT_CATHODESM
96
#define BLM8X8_CATHODES_INV_MASK  DEFAULT_SRM_CATHODES_INV_MASK_M
97
#define BLM8X8_DIN            DEFAULT_SRM_DIN_M
98
 
61 tk 99
#endif /* _MIOS32_CONFIG_H */