Subversion Repositories svn.mios32

Rev

Rev 1778 | Rev 1969 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1431 tk 1
// $Id: mios32_config.h 1960 2014-02-09 20:21:24Z 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
 
13
// The boot message which is print during startup and returned on a SysEx query
1960 tk 14
#define MIOS32_LCD_BOOT_MSG_LINE1 "MIDIboxKB V1.013"
15
#define MIOS32_LCD_BOOT_MSG_LINE2 "(C) 2014 T.Klose"
1431 tk 16
 
1567 tk 17
// Following settings allow to customize the USB device descriptor
1431 tk 18
#define MIOS32_USB_VENDOR_STR   "midibox.org" // you will see this in the USB device description
1474 tk 19
#define MIOS32_USB_PRODUCT_STR  "MIDIboxKB"   // you will see this in the MIDI device list
1431 tk 20
 
21
#define MIOS32_USB_MIDI_NUM_PORTS 4           // we provide 4 USB ports
22
 
23
// disables the default SRIO scan routine in programming_models/traditional/main.c
24
// allows to implement an own handler
1640 tk 25
// -> see app.c, , APP_SRIO_*
1431 tk 26
#define MIOS32_DONT_SERVICE_SRIO_SCAN 1
27
 
28
 
29
// EEPROM emulation
30
// SIZE == 4096 halfwords -> 8192 bytes
1960 tk 31
#if defined(MIOS32_BOARD_MBHP_CORE_LPC17)
1431 tk 32
# define EEPROM_EMULATED_SIZE 4096
1960 tk 33
#elif defined(MIOS32_BOARD_MBHP_CORE_STM32F4)
34
# define EEPROM_EMULATED_SIZE 4096
1431 tk 35
#else
36
# error "Application requires external EEPROM - not prepared for this board"
37
#endif
38
 
39
// magic number in EEPROM - if it doesn't exist at address 0x00..0x03, the EEPROM will be cleared
1778 tk 40
#define EEPROM_MAGIC_NUMBER 0x47114226
1632 tk 41
// to consider an older format (see presets.c)
42
#define EEPROM_MAGIC_NUMBER_OLDFORMAT1 0x47114224
1778 tk 43
#define EEPROM_MAGIC_NUMBER_OLDFORMAT2 0x47114225
1431 tk 44
 
1434 tk 45
// AIN configuration:
46
// Pin mapping on MBHP_CORE_LPC17 module:
47
//   7        6       5      4      3      2      1       0
48
// J5B.A7  J5B.A6  J5B.A5 J5B.A4 J5A.A3 J5A.A2 J5A.A1  J5A.A0
49
#define MIOS32_AIN_CHANNEL_MASK 0x003f
1431 tk 50
 
1434 tk 51
// define the deadband (min. difference to report a change to the application hook)
52
// typically set to (2^(12-desired_resolution)-1)
1632 tk 53
// e.g. for a resolution of 8 bit, it's set to (2^(12-8)-1) = (2^4 - 1) = 15
54
#define MIOS32_AIN_DEADBAND 15
1434 tk 55
 
56
 
1431 tk 57
#endif /* _MIOS32_CONFIG_H */