Skip to content

Commit f79b086

Browse files
Remove duplicated ArduinoCore-API files (#840)
Use #include .... to reference them from the cores directory to ensure they keep up to date.
1 parent db337a9 commit f79b086

32 files changed

+42
-4679
lines changed

cores/rp2040/api/ArduinoAPI.h

Lines changed: 2 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,2 @@
1-
/*
2-
Arduino API main include
3-
Copyright (c) 2016 Arduino LLC. 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-
20-
#ifndef ARDUINO_API_H
21-
#define ARDUINO_API_H
22-
23-
// version 1.2.0
24-
#define ARDUINO_API_VERSION 10200
25-
26-
#include "Binary.h"
27-
28-
#ifdef __cplusplus
29-
#include "Interrupts.h"
30-
#include "IPAddress.h"
31-
#include "Print.h"
32-
#include "Printable.h"
33-
#include "PluggableUSB.h"
34-
#include "Server.h"
35-
#include "String.h"
36-
#include "Stream.h"
37-
#include "Udp.h"
38-
#include "USBAPI.h"
39-
#include "WCharacter.h"
40-
#endif
41-
42-
/* Standard C library includes */
43-
#include <stdlib.h>
44-
#include <stdint.h>
45-
#include <stdbool.h>
46-
#include <string.h>
47-
#include <math.h>
48-
49-
// Misc Arduino core functions
50-
#include "Common.h"
51-
52-
#ifdef __cplusplus
53-
// Compatibility layer for older code
54-
#include "Compat.h"
55-
#endif
56-
57-
#endif
1+
#pragma once
2+
#include "../../../ArduinoCore-API/api/ArduinoAPI.h"

0 commit comments

Comments
 (0)