-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfig.h
More file actions
116 lines (88 loc) · 3.21 KB
/
Copy pathconfig.h
File metadata and controls
116 lines (88 loc) · 3.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/*
* Copyright (c) 2023 Marcel Licence
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Dieses Programm ist Freie Software: Sie können es unter den Bedingungen
* der GNU General Public License, wie von der Free Software Foundation,
* Version 3 der Lizenz oder (nach Ihrer Wahl) jeder neueren
* veröffentlichten Version, weiter verteilen und/oder modifizieren.
*
* Dieses Programm wird in der Hoffnung bereitgestellt, dass es nützlich sein wird, jedoch
* OHNE JEDE GEWÄHR,; sogar ohne die implizite
* Gewähr der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK.
* Siehe die GNU General Public License für weitere Einzelheiten.
*
* Sie sollten eine Kopie der GNU General Public License zusammen mit diesem
* Programm erhalten haben. Wenn nicht, siehe <https://www.gnu.org/licenses/>.
*/
/**
* @file config.h
* @author Marcel Licence
* @date 21.11.2021
*
* @brief This file contains the project configuration
*
* All definitions are visible in the entire project
*
* Put all your project settings here (defines, numbers, etc.)
* configurations which are requiring knowledge of types etc.
* shall be placed in z_config.ino (will be included at the end)
*/
#ifndef CONFIG_H_
#define CONFIG_H_
#ifdef __CDT_PARSER__
#include <cdt.h>
#endif
#define NOTE_ON_AFTER_SETUP /* used to get a test tone without MIDI input. Can be deactivated */
//#define I2S_NODAC
//#define NODAC
#define MIDI_RECV_FROM_SERIAL
#define SERIAL_BAUDRATE 115200
#define MIDI_SERIAL_BAUDRATE SERIAL_BAUDRATE
//#define CS4272_ENABLED
//#define AUDIO_PASS_THROUGH
/* use the following to test the output / codec */
//#define OUTPUT_SAW_TEST
#define STATUS_SIMPLE
#define MIDI_FMT_INT
#include "config/config_blackpill_f411ce.h"
#include "config/config_black_f407ve.h"
#include "config/config_bluepill_f103c8.h"
#include "config/config_blue_f103ve.h"
#include "config/config_daisy_seed.h"
#include "config/config_disco_f407vg.h"
#include "config/config_esp32.h"
#include "config/config_esp32c3.h"
#include "config/config_esp32s2.h"
#include "config/config_esp8266.h"
#include "config/config_generic_f407vgtx.h"
#include "config/config_rp2040.h"
#include "config/config_rp2350.h"
#include "config/config_teensy.h"
#include "config/config_xiao_m0.h"
/*
* include the board configuration
* there you will find the most hardware depending pin settings
*/
#include <ml_boards.h> /* requires library ML_SynthTools: https://github.com/marcel-licence/ML_SynthTools */
#ifndef SAMPLE_RATE
#define SAMPLE_RATE 48000
#define SAMPLE_SIZE_16BIT
#define SAMPLE_BUFFER_SIZE 48
#endif
#ifndef MIDI_BAUDRATE
#define MIDI_BAUDRATE 31250
#endif
#endif /* CONFIG_H_ */