Subversion Repositories svn.mios32

Rev

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

Rev Author Line No. Line
1260 tk 1
// $Id: mios32_config.h 1268 2011-07-22 22:40:03Z 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
14
#define MIOS32_LCD_BOOT_MSG_LINE1 "MIDIO 128 V3.0"
15
#define MIOS32_LCD_BOOT_MSG_LINE2 "(C) 2011 T.Klose"
16
 
17
// define a unique VID/PID for this application
18
#define MIOS32_USB_VENDOR_ID    0x16c0        // sponsored by voti.nl! see http://www.voti.nl/pids
19
#define MIOS32_USB_VENDOR_STR   "midibox.org" // you will see this in the USB device description
20
#define MIOS32_USB_PRODUCT_STR  MIOS32_LCD_BOOT_MSG_LINE1
21
#define MIOS32_USB_PRODUCT_ID   1005          // 1000..1009 are free for lab use
22
 
23
#define MIOS32_USB_MIDI_NUM_PORTS 2           // we provide 2 USB ports
24
 
25
 
26
#define DEBUG_MSG MIOS32_MIDI_SendDebugMessage
27
 
28
 
29
// ENC28J60 settings
30
#define MIOS32_ENC28J60_FULL_DUPLEX 1
31
#define MIOS32_ENC28J60_MAX_FRAME_SIZE 1504
32
 
33
// a unique MAC address in your network (6 bytes are required)
34
// If all bytes are 0, the serial number of STM32 will be taken instead,
35
// which should be unique in your private network.
36
#define MIOS32_ENC28J60_MY_MAC_ADDR1 0
37
#define MIOS32_ENC28J60_MY_MAC_ADDR2 0
38
#define MIOS32_ENC28J60_MY_MAC_ADDR3 0
39
#define MIOS32_ENC28J60_MY_MAC_ADDR4 0
40
#define MIOS32_ENC28J60_MY_MAC_ADDR5 0
41
#define MIOS32_ENC28J60_MY_MAC_ADDR6 0
42
 
43
// EEPROM emulation
44
#define EEPROM_EMULATED_SIZE 128
45
 
46
 
47
// Ethernet configuration:
48
// (can be changed during runtime and stored in EEPROM)
49
 
50
//                      192        .  168        .    2       .  100
51
# define MY_IP_ADDRESS (192 << 24) | (168 << 16) | (  2 << 8) | (100 << 0)
52
//                      255        .  255        .  255       .    0
53
# define MY_NETMASK    (255 << 24) | (255 << 16) | (255 << 8) | (  0 << 0)
54
//                      192        .  168        .    2       .    1
55
# define MY_GATEWAY    (192 << 24) | (168 << 16) | (  2 << 8) | (  1 << 0)
56
 
57
 
58
//                     192        .  168        .    2       .    1
59
#define OSC_REMOTE_IP (192 << 24) | (168 << 16) | (  2 << 8) | (  1 << 0)
60
 
61
#define OSC_REMOTE_PORT 10001
62
#define OSC_LOCAL_PORT  10000
63
 
64
#endif /* _MIOS32_CONFIG_H */