Skip to content

Commit d05e402

Browse files
committed
Renamed WProgram.h to Arduino.h.
1 parent 97abbd7 commit d05e402

File tree

27 files changed

+24
-30
lines changed

27 files changed

+24
-30
lines changed

app/src/processing/app/preproc/PdePreprocessor.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class PdePreprocessor {
4646
public int prototypeCount = 0;
4747

4848
// stores number of included library headers written
49-
// we always write one header: WProgram.h
49+
// we always write one header: Arduino.h
5050
public int headerCount = 1;
5151

5252
// the prototypes that are generated by the preprocessor
@@ -199,7 +199,7 @@ protected void writeProgram(PrintStream out, String program, List<String> protot
199199
int prototypeInsertionPoint = firstStatement(program);
200200

201201
out.print(program.substring(0, prototypeInsertionPoint));
202-
out.print("#include \"WProgram.h\"\n");
202+
out.print("#include \"Arduino.h\"\n");
203203

204204
// print user defined prototypes
205205
for (int i = 0; i < prototypes.size(); i++) {

hardware/arduino/cores/arduino/WProgram.h renamed to hardware/arduino/cores/arduino/Arduino.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef WProgram_h
2-
#define WProgram_h
1+
#ifndef Arduino_h
2+
#define Arduino_h
33

44
#include <stdlib.h>
55
#include <string.h>

hardware/arduino/cores/arduino/WString.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
#include <stdlib.h>
21-
#include "WProgram.h"
21+
#include "Arduino.h"
2222
#include "WString.h"
2323

2424

hardware/arduino/cores/arduino/WString.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#ifndef String_h
2121
#define String_h
2222

23-
//#include "WProgram.h"
23+
//#include "Arduino.h"
2424
#include <stdlib.h>
2525
#include <string.h>
2626
#include <ctype.h>

hardware/arduino/cores/arduino/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <WProgram.h>
1+
#include <Arduino.h>
22

33
int main(void)
44
{

libraries/ArduinoTestSuite/ArduinoTestSuite.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "ArduinoTestSuite.h"
2727

2828

29-
#include "WProgram.h"
29+
#include "Arduino.h"
3030
#include "HardwareSerial.h"
3131
#include "pins_arduino.h"
3232

libraries/ArduinoTestSuite/ArduinoTestSuite.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#include <avr/io.h>
88
#endif
99

10-
#ifndef WProgram_h
11-
#include "WProgram.h"
10+
#ifndef Arduino_h
11+
#include "Arduino.h"
1212
#endif
1313
#ifndef HardwareSerial_h
1414
#include "HardwareSerial.h"

libraries/ArduinoTestSuite/examples/ATS_Constants/ATS_Constants.pde

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//* Oct 16, 2010 <ROA> Test of Arduino Constants
88
//************************************************************************
99

10-
#include "WProgram.h"
1110
#include "HardwareSerial.h"
1211
#include <ArduinoTestSuite.h>
1312

libraries/ArduinoTestSuite/examples/ATS_Delay/ATS_Delay.pde

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
//************************************************************************//* Arduino Test Suite//* ATS_ToneTest//* //* Copyright (c) 2010 Mark Sproul All right reserved.//* //* This library is free software; you can redistribute it and/or//* modify it under the terms of the GNU Lesser General Public//* License as published by the Free Software Foundation; either//* version 2.1 of the License, or (at your option) any later version.//* //* This library is distributed in the hope that it will be useful,//* but WITHOUT ANY WARRANTY; without even the implied warranty of//* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU//* Lesser General Public License for more details.//* //* You should have received a copy of the GNU Lesser General Public//* License along with this library; if not, write to the Free Software//* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA//************************************************************************//* Aug 31, 2010 <MLS> Started on TestArduino//* Oct 28, 2010 <MLS> Started on Delay//************************************************************************#include "WProgram.h"#include "HardwareSerial.h"#include <ArduinoTestSuite.h>//************************************************************************void setup(){short ii;short testNum;int startMemoryUsage;unsigned long startMillis;unsigned long endMillis;unsigned long deltaMillis;unsigned long errMillis;boolean passed;char testNameString[80]; startMemoryUsage = ATS_GetFreeMemory(); ATS_begin("Arduino", "DelayTest"); testNum = 1; //* we start at 2 because 0/1 are RXD/TXD for (ii=0; ii<1000; ii+= 15) { startMillis = millis(); delay(ii); endMillis = millis(); deltaMillis = endMillis - startMillis; if (deltaMillis >= ii) { errMillis = deltaMillis - ii; } else { errMillis = ii - deltaMillis; } if (errMillis <= 1) { passed = true; } else { passed = false; } sprintf(testNameString, "DelayTest.%02d (delay= %4d actual delay=%ld err=%ld)", testNum, ii, deltaMillis, errMillis); ATS_PrintTestStatus(testNameString, passed); testNum++; } ATS_ReportMemoryUsage(startMemoryUsage); ATS_end();}//************************************************************************void loop(){}
1+
//************************************************************************//* Arduino Test Suite//* ATS_ToneTest//* //* Copyright (c) 2010 Mark Sproul All right reserved.//* //* This library is free software; you can redistribute it and/or//* modify it under the terms of the GNU Lesser General Public//* License as published by the Free Software Foundation; either//* version 2.1 of the License, or (at your option) any later version.//* //* This library is distributed in the hope that it will be useful,//* but WITHOUT ANY WARRANTY; without even the implied warranty of//* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU//* Lesser General Public License for more details.//* //* You should have received a copy of the GNU Lesser General Public//* License along with this library; if not, write to the Free Software//* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA//************************************************************************//* Aug 31, 2010 <MLS> Started on TestArduino//* Oct 28, 2010 <MLS> Started on Delay//************************************************************************#include "HardwareSerial.h"#include <ArduinoTestSuite.h>//************************************************************************void setup(){short ii;short testNum;int startMemoryUsage;unsigned long startMillis;unsigned long endMillis;unsigned long deltaMillis;unsigned long errMillis;boolean passed;char testNameString[80]; startMemoryUsage = ATS_GetFreeMemory(); ATS_begin("Arduino", "DelayTest"); testNum = 1; //* we start at 2 because 0/1 are RXD/TXD for (ii=0; ii<1000; ii+= 15) { startMillis = millis(); delay(ii); endMillis = millis(); deltaMillis = endMillis - startMillis; if (deltaMillis >= ii) { errMillis = deltaMillis - ii; } else { errMillis = ii - deltaMillis; } if (errMillis <= 1) { passed = true; } else { passed = false; } sprintf(testNameString, "DelayTest.%02d (delay= %4d actual delay=%ld err=%ld)", testNum, ii, deltaMillis, errMillis); ATS_PrintTestStatus(testNameString, passed); testNum++; } ATS_ReportMemoryUsage(startMemoryUsage); ATS_end();}//************************************************************************void loop(){}

libraries/ArduinoTestSuite/examples/ATS_General/ATS_General.pde

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
//* Oct 18, 2010 <MLS> Added memory testing
99
//************************************************************************
1010

11-
#include "WProgram.h"
1211
#include "HardwareSerial.h"
1312
#include "pins_arduino.h"
1413
#include <ArduinoTestSuite.h>

libraries/ArduinoTestSuite/examples/ATS_Skeleton/ATS_Skeleton.pde

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//* Oct 16, 2010 <ROA> Started on String Test
88
//************************************************************************
99

10-
#include "WProgram.h"
1110
#include "HardwareSerial.h"
1211
#include <ArduinoTestSuite.h>
1312

libraries/ArduinoTestSuite/examples/ATS_StringIndexOfMemory/ATS_StringIndexOfMemory.pde

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//* Oct 16, 2010 <ROA> Started on String Test
88
//************************************************************************
99

10-
#include "WProgram.h"
1110
#include "HardwareSerial.h"
1211
#include <ArduinoTestSuite.h>
1312

libraries/ArduinoTestSuite/examples/ATS_StringTest/ATS_StringTest.pde

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//* Oct 16, 2010 <ROA> Started on String Test
88
//************************************************************************
99

10-
#include "WProgram.h"
1110
#include "HardwareSerial.h"
1211
#include <ArduinoTestSuite.h>
1312

libraries/ArduinoTestSuite/examples/ATS_ToneTest/ATS_ToneTest.pde

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727

2828

29-
#include "WProgram.h"
3029
#include "HardwareSerial.h"
3130

3231
#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__)

libraries/Ethernet/Client.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ extern "C" {
55
#include "string.h"
66
}
77

8-
#include "WProgram.h"
8+
#include "Arduino.h"
99

1010
#include "Ethernet.h"
1111
#include "Client.h"

libraries/Ethernet/Client.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef client_h
22
#define client_h
3-
#include "WProgram.h"
3+
#include "Arduino.h"
44
#include "Print.h"
55

66
class Client : public Stream {

libraries/Firmata/Boards.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#ifndef Firmata_Boards_h
44
#define Firmata_Boards_h
55

6-
#include <WProgram.h> // for digitalRead, digitalWrite, etc
6+
#include <Arduino.h> // for digitalRead, digitalWrite, etc
77

88
// Normally Servo.h must be included before Firmata.h (which then includes
99
// this file). If Servo.h wasn't included, this allows the code to still

libraries/Firmata/Firmata.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//* Includes
1515
//******************************************************************************
1616

17-
#include "WProgram.h"
17+
#include "Arduino.h"
1818
#include "HardwareSerial.h"
1919
#include "Firmata.h"
2020

libraries/Firmata/Firmata.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#ifndef Firmata_h
1414
#define Firmata_h
1515

16-
#include <WProgram.h>
16+
#include <Arduino.h>
1717
#include <inttypes.h>
1818

1919

libraries/LiquidCrystal/LiquidCrystal.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <stdio.h>
44
#include <string.h>
55
#include <inttypes.h>
6-
#include "WProgram.h"
6+
#include "Arduino.h"
77

88
// When the display powers up, it is configured as follows:
99
//

libraries/SD/SD.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#ifndef __SD_H__
1616
#define __SD_H__
1717

18-
#include <WProgram.h>
18+
#include <Arduino.h>
1919

2020
#include <utility/SdFat.h>
2121
#include <utility/SdFatUtil.h>

libraries/SD/utility/Sd2Card.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* along with the Arduino Sd2Card Library. If not, see
1818
* <http://www.gnu.org/licenses/>.
1919
*/
20-
#include <WProgram.h>
20+
#include <Arduino.h>
2121
#include "Sd2Card.h"
2222
//------------------------------------------------------------------------------
2323
#ifndef SOFTWARE_SPI

libraries/SD/utility/SdFatUtil.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* \file
2424
* Useful utility functions.
2525
*/
26-
#include <WProgram.h>
26+
#include <Arduino.h>
2727
#include <avr/pgmspace.h>
2828
/** Store and print a string in flash memory.*/
2929
#define PgmPrint(x) SerialPrint_P(PSTR(x))

libraries/SD/utility/SdFile.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
#include <SdFat.h>
2121
#include <avr/pgmspace.h>
22-
#include <WProgram.h>
22+
#include <Arduino.h>
2323
//------------------------------------------------------------------------------
2424
// callback function for date/time
2525
void (*SdFile::dateTime_)(uint16_t* date, uint16_t* time) = NULL;

libraries/SPI/SPI.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#define _SPI_H_INCLUDED
1313

1414
#include <stdio.h>
15-
#include <WProgram.h>
15+
#include <Arduino.h>
1616
#include <avr/pgmspace.h>
1717

1818
#define SPI_CLOCK_DIV4 0x00

libraries/Servo/Servo.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
*/
4444

4545
#include <avr/interrupt.h>
46-
#include <WProgram.h>
46+
#include <Arduino.h>
4747

4848
#include "Servo.h"
4949

libraries/Stepper/Stepper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
*/
4646

4747

48-
#include "WProgram.h"
48+
#include "Arduino.h"
4949
#include "Stepper.h"
5050

5151
/*

0 commit comments

Comments
 (0)