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# define USE_OPENCV
12# ifndef EXIT_ON_STOP
13# define EXIT_ON_STOP
14# endif
15#elif defined(IS_DESKTOP_WITH_TIME_ONLY)
18# define USE_SD_NO_NS
19# define USE_TIMER
20# define USE_CPP_TASK
21# define USE_STD_CONCURRENCY
22# define USE_OPENCV
23# ifndef EXIT_ON_STOP
24# define EXIT_ON_STOP
25# endif
26#elif defined(IS_DESKTOP)
27# include "Arduino.h"
28# include <Client.h>
29# include <WiFi.h>
30# ifndef ARDUINO
31# define ARDUINO
32# endif
33# define USE_SD_NO_NS
34# define USE_WIFI
35# define USE_URL_ARDUINO
36# ifndef EXIT_ON_STOP
37# define EXIT_ON_STOP
38# endif
39# define USE_TIMER
40# define USE_CPP_TASK
41# define USE_STD_CONCURRENCY
42# define USE_OPENCV
43//# define USE_3BYTE_INT24
44// Skip this alias if the build already has a real, TLS-capable
45// WiFiClientSecure (e.g. the Arduino-Emulator's own, built with its
46// USE_HTTPS option) - without the guard this silently shadows it, so
47// URLStream's own client_secure allocation (see
48// AudioTools/Communication/HTTP/URLStream.h) ends up using plain,
49// unencrypted WiFiClient for https:// streams instead.
50#ifndef TMD_REAL_WIFICLIENTSECURE
51typedef WiFiClient WiFiClientSecure;
52#endif
53#elif defined(ESP32_CMAKE)
54# define ESP32
55# include "esp_idf_version.h"
57#else
58//# include "AudioTools/AudioLibs/Emulation/Arduino.h"
59//# define USE_CPP_TASK
60//# define USE_STD_CONCURRENCY
61//# define IS_JUPYTER
62//# define USE_STREAM_READ_OVERRIDE
63#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:51