Subversion Repositories svn.mios32

Rev

Rev 2572 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2184 hawkeye 1
// $Id: mios32_config.h 2088 2014-11-02 22:15:56Z tk $
2182 hawkeye 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
 
2184 hawkeye 13
// The boot message which is print during startup and returned on a SysEx query
14
#define MIOS32_LCD_BOOT_MSG_DELAY 0 // we delay the boot and print a message inside the app
2593 hawkeye 15
#define MIOS32_LCD_BOOT_MSG_LINE1 "LoopA"
16
#define MIOS32_LCD_BOOT_MSG_LINE2 "(C) 2018 Hawkeye, latigid on, TK."
2182 hawkeye 17
 
2184 hawkeye 18
// define a unique VID/PID for this application
2593 hawkeye 19
#define MIOS32_USB_PRODUCT_STR  "LoopA"
2184 hawkeye 20
 
21
// enable 4 USB ports
22
#define MIOS32_USB_MIDI_NUM_PORTS 4
23
 
24
 
25
// enable 4 MIDI ports (note: MIDI3 only used if AIN ports disabled)
26
#if defined(MIOS32_FAMILY_STM32F10x)
27
// enable third UART
28
# define MIOS32_UART_NUM 3
29
#else
30
// enable third and fourth UART
31
# define MIOS32_UART_NUM 4
32
#endif
33
 
34
// optionally the number of SRs can be increased here
35
#define MIOS32_SRIO_NUM_SR 16
36
 
37
// AIN configuration:
38
 
39
// bit mask to enable channels
40
//
41
// Pin mapping on MBHP_CORE_STM32 module:
42
//   15       14      13     12     11     10      9      8
43
// J16.SO  J16.SI  J16.SC J16.RC J5C.A11 J5C.A10 J5C.A9 J5C.A8
44
//   7        6       5      4      3      2      1       0
45
// J5B.A7  J5B.A6  J5B.A5 J5B.A4 J5A.A3 J5A.A2 J5A.A1  J5A.A0
46
//
47
// Examples:
48
//   mask 0x000f will enable all J5A channels
49
//   mask 0x00f0 will enable all J5B channels
50
//   mask 0x0f00 will enable all J5C channels
51
//   mask 0x0fff will enable all J5A/B/C channels
52
// (all channels are disabled by default)
53
#define MIOS32_AIN_CHANNEL_MASK 0x003f
54
 
55
// define the deadband (min. difference to report a change to the application hook)
56
// typically set to (2^(12-desired_resolution)-1)
57
// e.g. for a resolution of 7 bit, it's set to (2^(12-7)-1) = (2^5 - 1) = 31
58
#define MIOS32_AIN_DEADBAND 31
59
 
60
 
61
#define DEBUG_MSG MIOS32_MIDI_SendDebugMessage
62
 
63
// enable two AINSER modules
64
#define AINSER_NUM_MODULES 0
65
 
66
// reserved memory for FreeRTOS pvPortMalloc function
2185 hawkeye 67
#define MIOS32_HEAP_SIZE 16*1024
2184 hawkeye 68
 
69
 
70
// combine MIDI router with SEQ module
71
#define MIDI_ROUTER_COMBINED_WITH_SEQ 1
72
 
73
// map MIDI mutex to UIP task
74
// located in app.c to access MIDI IN/OUT mutex from external
75
extern void APP_MUTEX_MIDIOUT_Take(void);
76
extern void APP_MUTEX_MIDIOUT_Give(void);
77
extern void APP_MUTEX_MIDIIN_Take(void);
78
extern void APP_MUTEX_MIDIIN_Give(void);
79
#define UIP_TASK_MUTEX_MIDIOUT_TAKE { APP_MUTEX_MIDIOUT_Take(); }
80
#define UIP_TASK_MUTEX_MIDIOUT_GIVE { APP_MUTEX_MIDIOUT_Give(); }
81
#define UIP_TASK_MUTEX_MIDIIN_TAKE  { APP_MUTEX_MIDIIN_Take(); }
82
#define UIP_TASK_MUTEX_MIDIIN_GIVE  { APP_MUTEX_MIDIIN_Give(); }
83
 
2182 hawkeye 84
#endif /* _MIOS32_CONFIG_H */