config.h 1.54 KB
Newer Older
philip's avatar
philip committed
1
2
3
4
5
6
7
8
9
10
#include "mbed.h"

/************ FEATURES ************/

// default value 
#define CHANNEL_OFFSET      0
#define CONTROLLER_OFFSET   0

#define ENABLE_SYSTEM_RESET 1

philip's avatar
philip committed
11
#define ENABLE_CONTROLLER_LOGIC   1
12

philip's avatar
philip committed
13
14
/************ MOTORS ************/

15
16
17
18
19
20
// #define MOTOR_REFRESH_RATE_HZ       60

// #define MOTOR_PULSEWIDTH_MIN_USEC   556
// #define MOTOR_PULSEWIDTH_MAX_USEC   2410

#define MOTOR_REFRESH_RATE_HZ 50
philip's avatar
philip committed
21

22
23
#define MOTOR_PULSEWIDTH_MIN_USEC   0
#define MOTOR_PULSEWIDTH_MAX_USEC   20000000
philip's avatar
philip committed
24
25
26

#define MOTOR_COUNT         1

27
#define MOTOR_1_PIN         PWM_OUT // PA_15
philip's avatar
philip committed
28
29
30
31
32
33
34
35
36
#define MOTOR_2_PIN         LED2
#define MOTOR_3_PIN         LED3
#define MOTOR_4_PIN         LED4


/************ USBMIDI ************/

#define USE_USBMIDI 1

philip's avatar
philip committed
37
38

#define USB_POWER_PIN PA_9
philip's avatar
philip committed
39
#define USB_CONNECTED_LED LED1
philip's avatar
philip committed
40

philip's avatar
philip committed
41
42
// default value
#define USBMIDI_FORWARD_TO_MIDI true
philip's avatar
philip committed
43
#define USBMIDI_FORWARD_TO_NET  false
philip's avatar
philip committed
44
45
46
47
48

/************ MIDI ************/

#define USE_MIDI 1

philip's avatar
philip committed
49
50
51
#define MIDI_TX_PIN PD_5
#define MIDI_RX_PIN PD_6

52
53
#define MIDI_BAUD   31250
// #define MIDI_BAUD   9600
philip's avatar
philip committed
54
55
56
57

#define MIDI_BITS   8
#define MIDI_PARITY BufferedSerial::None
#define MIDI_STOP   1
philip's avatar
philip committed
58
59

// default value
60
61
#define MIDI_FORWARD_TO_USB true
#define MIDI_FORWARD_TO_NET true
philip's avatar
philip committed
62
63
64
65


/************ NETWORK BASED MIDI ************/

philip's avatar
philip committed
66
67
68
#define USE_NETMIDI 1

#define NET_STATUS_LED LED2
philip's avatar
philip committed
69
70

// default value
71
#define NETMIDI_FORWARD_TO_MIDI true
philip's avatar
philip committed
72
#define NETMIDI_FORWARD_TO_USB  false
philip's avatar
philip committed
73

philip's avatar
philip committed
74
75
#define NET_HOSTNAME_FMT "Aggregat-02-%08x"
#define NET_SERVICENAME_FMT "Aggregat 02 (%08x)"
philip's avatar
philip committed
76
77


philip's avatar
philip committed
78
79
80
81
82
// #define NET_HOSTNAME_MAXLEN 32

// #define LWIP_MDNS_RESPONDER 1

// #define