arduino-audio-tools
Loading...
Searching...
No Matches
desktop.h
Go to the documentation of this file.
1#pragma once
2// cmake builds for desktop, zephyr and esp32 without arduino support
3#if defined(IS_MIN_DESKTOP)
7# define USE_SD_NO_NS
8# define USE_TIMER
9# define USE_CPP_TASK
10# define USE_STD_CONCURRENCY
11# ifndef EXIT_ON_STOP
12# define EXIT_ON_STOP
13# endif
14#elif defined(IS_DESKTOP_WITH_TIME_ONLY)
17# define USE_SD_NO_NS
18# define USE_TIMER
19# define USE_CPP_TASK
20# define USE_STD_CONCURRENCY
21# ifndef EXIT_ON_STOP
22# define EXIT_ON_STOP
23# endif
24#elif defined(IS_DESKTOP)
25# include "Arduino.h"
26# include <Client.h>
27# include <WiFi.h>
28# ifndef ARDUINO
29# define ARDUINO
30# endif
31# define USE_SD_NO_NS
32# define USE_WIFI
33# define USE_URL_ARDUINO
34# ifndef EXIT_ON_STOP
35# define EXIT_ON_STOP
36# endif
37# define USE_TIMER
38# define USE_CPP_TASK
39# define USE_STD_CONCURRENCY
40//# define USE_3BYTE_INT24
41typedef WiFiClient WiFiClientSecure;
42#elif defined(ESP32_CMAKE)
43# define ESP32
44# include "esp_idf_version.h"
46#else
47//# include "AudioTools/AudioLibs/Emulation/Arduino.h"
48//# define USE_CPP_TASK
49//# define USE_STD_CONCURRENCY
50//# define IS_JUPYTER
51//# define USE_STREAM_READ_OVERRIDE
52#endif
If you want to use the framework w/o Arduino you need to provide the implementation of a couple of cl...
WiFiClient WiFiClientSecure
Definition desktop.h:41