Subversion Repositories svn.mios32

Rev

Rev 652 | Rev 719 | 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 702 2009-08-11 19:43:11Z 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
496 tk 15
#define MIOS32_LCD_BOOT_MSG_DELAY 0 // we delay the boot and print a message inside the app
608 tk 16
#define MIOS32_LCD_BOOT_MSG_LINE1 "MIDIbox SEQ V4.0Beta"
280 tk 17
#define MIOS32_LCD_BOOT_MSG_LINE2 "(C) 2009 T. Klose"
229 tk 18
 
287 tk 19
// USB settings
20
#define MIOS32_USB_PRODUCT_STR  "MIDIbox SEQ V4"
21
#define MIOS32_USB_MIDI_NUM_PORTS 4
229 tk 22
 
23
 
308 tk 24
// port used for debugging via MIDI
25
//#define MIOS32_MIDI_DEBUG_PORT USB0
61 tk 26
 
343 tk 27
// function used to output debug messages (must be printf compatible!)
28
#define DEBUG_MSG MIOS32_MIDI_SendDebugMessage
29
 
30
 
248 tk 31
// Stack size for FreeRTOS tasks as defined by the programming model
32
// Note that each task maintains it's own stack!
33
// If you want to define a different stack size for your application tasks
34
// (-> xTaskCreate() function), keep in mind that it has to be divided by 4,
35
// since the stack width of ARM is 32bit.
36
// The FreeRTOS define "configMINIMAL_STACK_SIZE" is (MIOS32_MINIMAL_STACK_SIZE/4)
37
// it can be used in applications as well, e.g.
38
// xTaskCreate(TASK_Period1mS, (signed portCHAR *)"Period1mS", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD1MS, NULL);
39
#define MIOS32_MINIMAL_STACK_SIZE 1024
134 tk 40
 
248 tk 41
// reserved memory for FreeRTOS pvPortMalloc function
625 tk 42
#define MIOS32_HEAP_SIZE 19*1024
248 tk 43
 
44
 
702 tk 45
// maximum idle counter value to be expected
46
#define MAX_IDLE_CTR 223000
47
 
48
 
272 tk 49
// memory alloccation method:
50
// 0: internal static allocation with one byte for each flag
51
// 1: internal static allocation with 8bit flags
52
// 2: internal static allocation with 16bit flags
53
// 3: internal static allocation with 32bit flags
54
// 4: FreeRTOS based pvPortMalloc
55
// 5: malloc provided by library
56
#define SEQ_MIDI_OUT_MALLOC_METHOD 3
57
 
58
// max number of scheduled events which will allocate memory
59
// each event allocates 12 bytes
60
// MAX_EVENTS must be a power of two! (e.g. 64, 128, 256, 512, ...)
345 tk 61
#define SEQ_MIDI_OUT_MAX_EVENTS 512
272 tk 62
 
63
// enable seq_midi_out_max_allocated and seq_midi_out_dropouts
64
#define SEQ_MIDI_OUT_MALLOC_ANALYSIS 1
65
 
66
 
186 tk 67
#define MID_PLAYER_TEST 0
178 tk 68
 
69
 
652 tk 70
// configure IIC_MIDI
71
#define MIOS32_IIC_MIDI_NUM 4
72
// all interfaces are "OUT only"
73
#define MIOS32_IIC_MIDI0_ENABLED    1
74
#define MIOS32_IIC_MIDI1_ENABLED    1
75
#define MIOS32_IIC_MIDI2_ENABLED    1
76
#define MIOS32_IIC_MIDI3_ENABLED    1
77
#define MIOS32_IIC_MIDI4_ENABLED    1
78
#define MIOS32_IIC_MIDI5_ENABLED    1
79
#define MIOS32_IIC_MIDI6_ENABLED    1
80
#define MIOS32_IIC_MIDI7_ENABLED    1
81
 
82
 
524 tk 83
// configure BLM driver
84
#define BLM_DOUT_L1_SR  255 // dummy, will be changed in seq_file_hw.c
85
#define BLM_DOUT_R1_SR  255 // dummy, will be changed in seq_file_hw.c
86
#define BLM_DOUT_CATHODES_SR1   255 // dummy, will be changed in seq_file_hw.c
87
#define BLM_DOUT_CATHODES_SR2   255 // dummy, will be changed in seq_file_hw.c
88
#define BLM_CATHODES_INV_MASK   0x00
89
#define BLM_DOUT_L2_SR  255 // dummy, will be changed in seq_file_hw.c
90
#define BLM_DOUT_R2_SR  255 // dummy, will be changed in seq_file_hw.c
91
#define BLM_DOUT_L3_SR  0 // not used
92
#define BLM_DOUT_R3_SR  0 // not used
93
#define BLM_DIN_L_SR    255 // dummy, will be changed in seq_file_hw.c
94
#define BLM_DIN_R_SR    255 // dummy, will be changed in seq_file_hw.c
95
#define BLM_NUM_COLOURS 2
96
#define BLM_NUM_ROWS    8
97
#define BLM_DEBOUNCE_MODE 1
98
 
99
 
464 tk 100
// configure BLM_X driver
101
#define BLM_X_NUM_ROWS            8
102
#define BLM_X_BTN_NUM_COLS        8
103
#define BLM_X_LED_NUM_COLS        8
104
#define BLM_X_LED_NUM_COLORS      1
513 tk 105
#define BLM_X_ROWSEL_DOUT_SR      255 // dummy, will be changed in seq_file_hw.c
106
#define BLM_X_LED_FIRST_DOUT_SR   255 // dummy, will be changed in seq_file_hw.c
107
#define BLM_X_BTN_FIRST_DIN_SR    255 // dummy, will be changed in seq_file_hw.c
108
#define BLM_X_ROWSEL_INV_MASK     0   // dummy, will be changed in seq_file_hw.c
472 tk 109
#define BLM_X_DEBOUNCE_MODE       0
134 tk 110
 
61 tk 111
#endif /* _MIOS32_CONFIG_H */