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
22
#ifndef HOST
23
# define HOST
24
#endif
25
26
#if defined(_MSC_VER) && !defined(M_PI) && !defined(_USE_MATH_DEFINES)
27
#define _USE_MATH_DEFINES
// to provide const like M_PI via <math.h>
28
#endif
29
30
#if defined(_MSC_VER)
31
// Not available under MSVC
32
#define __attribute__(x)
// nothing
33
#define __builtin_constant_p(x) (0)
// non-constant
34
// Temporary unsupported under Win/MSVC
35
#define SKIP_HARDWARE_SETUP
36
#define SKIP_HARDWARE_WIFI
37
#endif
38
39
#define PROGMEM
40
41
#include "Serial.h"
42
#include "StdioDevice.h"
43
#include "ArduinoLogger.h"
44
#include "api/ArduinoAPI.h"
45
#include "RemoteSerial.h"
46
#include "HardwareSetup.h"
47
48
using namespace
arduino
;
49
50
// supported by some platforms
51
void
analogWriteFrequency(pin_size_t
pin
,
uint32_t
freq
);
52
void
analogWriteResolution(
uint8_t
bits
);
arduino::DMABuffer
Definition
DMAPool.h:103
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