Arduino STK 4.6.2
ArdConfig.h
1#pragma once
9
10//#define STK_USE_FILES
11
12#ifndef STK_USE_FILES
13 #define __RAW_ARRAYS__ // raw files as compilable c arrays
14#endif
15
16#if defined(ESP32)
17// #define __MIDI__ // support Midi
18 #define __I2S__
19 #define __NO_EXCEPTIONS__
20 #define __STREAMS__ // output to Ardiono Streams
21 #define __RTOS__ // supports Free RTOS
22 #define __LWIP__ // use lwip socket implementation
23 #define __NO_RT__ // no STK RT functions
24 #define TASK_STACK_SIZE configMINIMAL_STACK_SIZE
25 #define RAWWAVE_PATH "/sdcard/rawwaves/"
26
27// Uncomment after installing https://github.com/pschatzmann/ESP32-A2DP
28// #define __BT_A2DP__ // output to A2DP sink
29
30#elif defined(ESP8266)
31// #define __MIDI__ // support Midi
32// #define __I2S__
33 #define __STREAMS__
34 #define __NO_EXCEPTIONS__ // comment out exceptions
35 #define __NO_FSTREAM__ // No Messanger, MidiFileIn and Skini and FileRead
36 #define __NO_RT__ // no STK RT functions
37 #define RAWWAVE_PATH "/sdcard/rawwaves/"
38
39 #include "FS.h"
40 #undef round
41
42#elif defined(ARDUINO_ARCH_STM32)
43 #define __STREAMS__
44 #define __ARDUINO__ // exclude standard c++ h files
45 #define __NO_EXCEPTIONS__ // comment out exceptions
46 #define __NO_FSTREAM__ // No Messanger, MidiFileIn and Skini and FileRead
47 #define __NO_RT__ // no STK RT functions
48 #define __USE_STM32_HACK__
49 #define RAWWAVE_PATH "/sdcard/rawwaves/"
50 #undef HAVE_GETTIMEOFDAY
51
52#elif defined(ARDUINO)
53// #define __MIDI__ // support Midi
54 #define __ARDUINO__ // exclude standard c++ h files
55 #define __STREAMS__ // output to Ardiono Streams
56 #define __NO_EXCEPTIONS__ // comment out exceptions
57 #define __NO_FSTREAM__ // No Messanger, MidiFileIn and Skini and FileRead
58 #define __NO_RT__ // no STK RT functions
59 #define RAWWAVE_PATH "/rawwaves/"
60
61#elif defined(IS_DESKTOP)
62// #define __MIDI__ // support Midi
63 #define __ARDUINO__ // exclude standard c++ h files
64 #define __STREAMS__ // output to Ardiono Streams
65// #define _STK_DEBUG_
66 #define __NO_EXCEPTIONS__ // comment out exceptions
67// #define __NO_FSTREAM__ // No Messanger, MidiFileIn and Skini and FileRead
68// #define __NO_RT__ // no STK RT functions
69
70#endif
71
72// rtos must be loaded on top of other classes - so we add it here
73// rtos support is experimental and most things might not work. I recommend
74// that you do not use the netowrk functionality provided by the STK framework
75// but that you use the Standard Arduino functionality instead.
76#ifdef __RTOS__
77 #include "freertos/FreeRTOS.h"
78#endif
79
80#ifdef __RAW_ARRAYS__
81#include "raw/all.h"
82#endif