arduino-emulator
Loading...
Searching...
No Matches
ArduinoCore-Linux
cores
arduino
Arduino.h
1
/*
2
Arduino.h
3
Copyright (c) 2025 Phil Schatzmann. All right reserved.
4
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Lesser General Public
7
License as published by the Free Software Foundation; either
8
version 2.1 of the License, or (at your option) any later version.
9
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public
16
License along with this library; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
*/
19
#pragma once
20
21
#include "Platform.h"
22
24
#ifndef HOST
25
# define HOST
26
#endif
27
28
#if defined(_MSC_VER) && !defined(M_PI) && !defined(_USE_MATH_DEFINES)
29
#define _USE_MATH_DEFINES
// to provide const like M_PI via <math.h>
30
#endif
31
32
#if defined(_MSC_VER)
33
// Not available under MSVC
34
#define __attribute__(x)
// nothing
35
#define __builtin_constant_p(x) (0)
// non-constant
36
// Temporary unsupported under Win/MSVC
37
#define SKIP_HARDWARE_SETUP
38
#define SKIP_HARDWARE_WIFI
39
#endif
40
41
#define PROGMEM
42
43
#include "Serial.h"
44
#include "StdioDevice.h"
45
#include "ArduinoLogger.h"
46
#include "api/ArduinoAPI.h"
47
#include "RemoteSerial.h"
48
#include "HardwareSetup.h"
49
#include "FileStream.h"
50
51
using namespace
arduino
;
52
53
// supported by some platforms
54
void
analogWriteFrequency(pin_size_t pin,
uint32_t
freq
);
55
void
analogWriteResolution(
uint8_t
bits
);
56
57
// ESP32-ism that is adopted by most Arduino implementations
58
// and used by, at least, ESPAsyncWebServer
59
extern
const
String
emptyString;
arduino::DMABuffer
Definition
DMAPool.h:103
arduino::String
Definition
String.h:53
arduino
We provide the WiFi class to simulate the Arduino WIFI. In in Linux we can expect that networking is ...
Definition
CanMsg.cpp:31
Generated by
1.9.8