Skip to content

Commit 7934fe7

Browse files
committed
Added 'deprecated' folder to simply API integration
1 parent 49decdf commit 7934fe7

File tree

12 files changed

+203
-2
lines changed

12 files changed

+203
-2
lines changed

Diff for: api/avr/dtostrf.c.impl renamed to api/deprecated-avr-comp/avr/dtostrf.c.impl

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
// This file should be used if the standard lib doesn't provide an
2222
// implementation of dtostrf.
2323

24-
// Just create a file called "dtostrf.c" with the following include:
25-
// #include "api/avr/dtostrf.c.impl"
24+
// Create a file called "dtostrf.c" with the following include:
25+
// #include "api/deprecated-avr-comp/avr/dtostrf.c.impl"
2626

2727
#include <stdio.h>
2828

Diff for: api/avr/dtostrf.h renamed to api/deprecated-avr-comp/avr/dtostrf.h

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
#pragma once
2121

22+
#if !defined(ARDUINO_ARCH_AVR)
23+
2224
#ifdef __cplusplus
2325
extern "C" {
2426
#endif
@@ -28,3 +30,5 @@ char *dtostrf(double val, signed char width, unsigned char prec, char *sout);
2830
#ifdef __cplusplus
2931
}
3032
#endif
33+
34+
#endif
File renamed without changes.
File renamed without changes.

Diff for: api/deprecated/Client.h

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
Copyright (c) 2016 Arduino LLC. All right reserved.
3+
4+
This library is free software; you can redistribute it and/or
5+
modify it under the terms of the GNU Lesser General Public
6+
License as published by the Free Software Foundation; either
7+
version 2.1 of the License, or (at your option) any later version.
8+
9+
This library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12+
See the GNU Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public
15+
License along with this library; if not, write to the Free Software
16+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17+
*/
18+
19+
// including Client.h is deprecated, for all future projects use Arduino.h instead
20+
21+
// This include is added for compatibility, it will be remove on the next
22+
// major release of the API
23+
#include "../Client.h"
24+
25+

Diff for: api/deprecated/IPAddress.h

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
Copyright (c) 2016 Arduino LLC. All right reserved.
3+
4+
This library is free software; you can redistribute it and/or
5+
modify it under the terms of the GNU Lesser General Public
6+
License as published by the Free Software Foundation; either
7+
version 2.1 of the License, or (at your option) any later version.
8+
9+
This library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12+
See the GNU Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public
15+
License along with this library; if not, write to the Free Software
16+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17+
*/
18+
19+
// including IPAddress.h is deprecated, for all future projects use Arduino.h instead
20+
21+
// This include is added for compatibility, it will be remove on the next
22+
// major release of the API
23+
#include "../IPAddress.h"
24+
25+

Diff for: api/deprecated/Print.h

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
Copyright (c) 2016 Arduino LLC. All right reserved.
3+
4+
This library is free software; you can redistribute it and/or
5+
modify it under the terms of the GNU Lesser General Public
6+
License as published by the Free Software Foundation; either
7+
version 2.1 of the License, or (at your option) any later version.
8+
9+
This library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12+
See the GNU Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public
15+
License along with this library; if not, write to the Free Software
16+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17+
*/
18+
19+
// including Print.h is deprecated, for all future projects use Arduino.h instead
20+
21+
// This include is added for compatibility, it will be remove on the next
22+
// major release of the API
23+
#include "../Print.h"
24+

Diff for: api/deprecated/Printable.h

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
Copyright (c) 2016 Arduino LLC. All right reserved.
3+
4+
This library is free software; you can redistribute it and/or
5+
modify it under the terms of the GNU Lesser General Public
6+
License as published by the Free Software Foundation; either
7+
version 2.1 of the License, or (at your option) any later version.
8+
9+
This library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12+
See the GNU Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public
15+
License along with this library; if not, write to the Free Software
16+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17+
*/
18+
19+
// including Printable.h is deprecated, for all future projects use Arduino.h instead
20+
21+
// This include is added for compatibility, it will be remove on the next
22+
// major release of the API
23+
#include "../Printable.h"
24+

Diff for: api/deprecated/Server.h

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
Copyright (c) 2016 Arduino LLC. All right reserved.
3+
4+
This library is free software; you can redistribute it and/or
5+
modify it under the terms of the GNU Lesser General Public
6+
License as published by the Free Software Foundation; either
7+
version 2.1 of the License, or (at your option) any later version.
8+
9+
This library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12+
See the GNU Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public
15+
License along with this library; if not, write to the Free Software
16+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17+
*/
18+
19+
// including Server.h is deprecated, for all future projects use Arduino.h instead
20+
21+
// This include is added for compatibility, it will be remove on the next
22+
// major release of the API
23+
#include "../Server.h"
24+
25+

Diff for: api/deprecated/Stream.h

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
Copyright (c) 2016 Arduino LLC. All right reserved.
3+
4+
This library is free software; you can redistribute it and/or
5+
modify it under the terms of the GNU Lesser General Public
6+
License as published by the Free Software Foundation; either
7+
version 2.1 of the License, or (at your option) any later version.
8+
9+
This library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12+
See the GNU Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public
15+
License along with this library; if not, write to the Free Software
16+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17+
*/
18+
19+
// including Stream.h is deprecated, for all future projects use Arduino.h instead
20+
21+
// This include is added for compatibility, it will be remove on the next
22+
// major release of the API
23+
#include "../Stream.h"
24+
25+

Diff for: api/deprecated/Udp.h

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
Copyright (c) 2016 Arduino LLC. All right reserved.
3+
4+
This library is free software; you can redistribute it and/or
5+
modify it under the terms of the GNU Lesser General Public
6+
License as published by the Free Software Foundation; either
7+
version 2.1 of the License, or (at your option) any later version.
8+
9+
This library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12+
See the GNU Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public
15+
License along with this library; if not, write to the Free Software
16+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17+
*/
18+
19+
// including Udp.h is deprecated, for all future projects use Arduino.h instead
20+
21+
// This include is added for compatibility, it will be remove on the next
22+
// major release of the API
23+
#include "../Udp.h"
24+
25+

Diff for: api/deprecated/WString.h

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
Copyright 2016, Arduino LLC. All Right Reserved.
3+
4+
This library is free software; you can redistribute it and/or
5+
modify it under the terms of the GNU Lesser General Public
6+
License as published by the Free Software Foundation; either
7+
version 2.1 of the License, or (at your option) any later version.
8+
9+
This library is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12+
Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public
15+
License along with this library; if not, write to the Free Software
16+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17+
*/
18+
19+
// including WString.h is deprecated, for all future projects use Arduino.h instead
20+
21+
// This include is added for compatibility, it will be remove on the next
22+
// major release of the API
23+
#include "../String.h"
24+

0 commit comments

Comments
 (0)