Arduino STK
4.6.2
src
ArdConfig.h
1
#pragma once
10
#if defined(ESP32)
11
// #define __MIDI__ // support Midi
12
#define __I2S__
13
#define __RAW_ARRAYS__
// raw files as compilable c arrays
14
#define __STREAMS__
// output to Ardiono Streams
15
#define __RTOS__
// supports Free RTOS
16
#define __LWIP__
// use lwip socket implementation
17
#define TASK_STACK_SIZE configMINIMAL_STACK_SIZE
18
19
// Uncomment after installing https://github.com/pschatzmann/ESP32-A2DP
20
// #define __BT_A2DP__ // output to A2DP sink
21
22
#elif defined(ESP8266)
23
// #define __MIDI__ // support Midi
24
// #define __I2S__
25
#define __RAW_ARRAYS__
26
#define __STREAMS__
27
#define __NO_EXCEPTIONS__
// comment out exceptions
28
#define __NO_FSTREAM__
// No Messanger, MidiFileIn and Skini and FileRead
29
#define __NO_RT__
// no STK RT functions
30
31
#include "FS.h"
32
#undef round
33
34
#elif defined(ARDUINO)
35
// #define __MIDI__ // support Midi
36
#define __ARDUINO__
// exclude standard c++ h files
37
#define __STREAMS__
// output to Ardiono Streams
38
#define __RAW_ARRAYS__
// raw files as compilable c arrays
39
#define __NO_EXCEPTIONS__
// comment out exceptions
40
#define __NO_FSTREAM__
// No Messanger, MidiFileIn and Skini and FileRead
41
#define __NO_RT__
// no STK RT functions
42
43
// Logging support
44
#define STK_ERROR_MSG_LEN 200
45
extern
char
stk_error_msg[STK_ERROR_MSG_LEN];
46
#define ESP_LOGD(APP,...) { snprintf(stk_error_msg, STK_ERROR_MSG_LEN, __VA_ARGS__); Serial.println(stk_error_msg); }
47
48
#endif
49
50
// rtos must be loaded on top of other classes - so we add it here
51
// rtos support is experimental and most things might not work. I recommend
52
// that you do not use the netowrk functionality provided by the STK framework
53
// but that you use the Standard Arduino functionality instead.
54
#ifdef __RTOS__
55
#include "freertos/FreeRTOS.h"
56
#endif
Generated by
1.9.1