Subversion Repositories svn.mios32

Rev

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