mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Renamed WProgram.h to Arduino.h.
This commit is contained in:
@ -46,7 +46,7 @@ public class PdePreprocessor {
|
||||
public int prototypeCount = 0;
|
||||
|
||||
// stores number of included library headers written
|
||||
// we always write one header: WProgram.h
|
||||
// we always write one header: Arduino.h
|
||||
public int headerCount = 1;
|
||||
|
||||
// the prototypes that are generated by the preprocessor
|
||||
@ -199,7 +199,7 @@ public class PdePreprocessor {
|
||||
int prototypeInsertionPoint = firstStatement(program);
|
||||
|
||||
out.print(program.substring(0, prototypeInsertionPoint));
|
||||
out.print("#include \"WProgram.h\"\n");
|
||||
out.print("#include \"Arduino.h\"\n");
|
||||
|
||||
// print user defined prototypes
|
||||
for (int i = 0; i < prototypes.size(); i++) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef WProgram_h
|
||||
#define WProgram_h
|
||||
#ifndef Arduino_h
|
||||
#define Arduino_h
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "WProgram.h"
|
||||
#include "Arduino.h"
|
||||
#include "WString.h"
|
||||
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef String_h
|
||||
#define String_h
|
||||
|
||||
//#include "WProgram.h"
|
||||
//#include "Arduino.h"
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include <WProgram.h>
|
||||
#include <Arduino.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "ArduinoTestSuite.h"
|
||||
|
||||
|
||||
#include "WProgram.h"
|
||||
#include "Arduino.h"
|
||||
#include "HardwareSerial.h"
|
||||
#include "pins_arduino.h"
|
||||
|
||||
|
@ -7,8 +7,8 @@
|
||||
#include <avr/io.h>
|
||||
#endif
|
||||
|
||||
#ifndef WProgram_h
|
||||
#include "WProgram.h"
|
||||
#ifndef Arduino_h
|
||||
#include "Arduino.h"
|
||||
#endif
|
||||
#ifndef HardwareSerial_h
|
||||
#include "HardwareSerial.h"
|
||||
|
@ -7,7 +7,6 @@
|
||||
//* Oct 16, 2010 <ROA> Test of Arduino Constants
|
||||
//************************************************************************
|
||||
|
||||
#include "WProgram.h"
|
||||
#include "HardwareSerial.h"
|
||||
#include <ArduinoTestSuite.h>
|
||||
|
||||
|
@ -1 +1 @@
|
||||
//************************************************************************
|
||||
//************************************************************************
|
@ -8,7 +8,6 @@
|
||||
//* Oct 18, 2010 <MLS> Added memory testing
|
||||
//************************************************************************
|
||||
|
||||
#include "WProgram.h"
|
||||
#include "HardwareSerial.h"
|
||||
#include "pins_arduino.h"
|
||||
#include <ArduinoTestSuite.h>
|
||||
|
@ -7,7 +7,6 @@
|
||||
//* Oct 16, 2010 <ROA> Started on String Test
|
||||
//************************************************************************
|
||||
|
||||
#include "WProgram.h"
|
||||
#include "HardwareSerial.h"
|
||||
#include <ArduinoTestSuite.h>
|
||||
|
||||
|
@ -7,7 +7,6 @@
|
||||
//* Oct 16, 2010 <ROA> Started on String Test
|
||||
//************************************************************************
|
||||
|
||||
#include "WProgram.h"
|
||||
#include "HardwareSerial.h"
|
||||
#include <ArduinoTestSuite.h>
|
||||
|
||||
|
@ -7,7 +7,6 @@
|
||||
//* Oct 16, 2010 <ROA> Started on String Test
|
||||
//************************************************************************
|
||||
|
||||
#include "WProgram.h"
|
||||
#include "HardwareSerial.h"
|
||||
#include <ArduinoTestSuite.h>
|
||||
|
||||
|
@ -26,7 +26,6 @@
|
||||
|
||||
|
||||
|
||||
#include "WProgram.h"
|
||||
#include "HardwareSerial.h"
|
||||
|
||||
#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__)
|
||||
|
@ -5,7 +5,7 @@ extern "C" {
|
||||
#include "string.h"
|
||||
}
|
||||
|
||||
#include "WProgram.h"
|
||||
#include "Arduino.h"
|
||||
|
||||
#include "Ethernet.h"
|
||||
#include "Client.h"
|
||||
|
@ -1,6 +1,6 @@
|
||||
#ifndef client_h
|
||||
#define client_h
|
||||
#include "WProgram.h"
|
||||
#include "Arduino.h"
|
||||
#include "Print.h"
|
||||
|
||||
class Client : public Stream {
|
||||
|
@ -3,7 +3,7 @@
|
||||
#ifndef Firmata_Boards_h
|
||||
#define Firmata_Boards_h
|
||||
|
||||
#include <WProgram.h> // for digitalRead, digitalWrite, etc
|
||||
#include <Arduino.h> // for digitalRead, digitalWrite, etc
|
||||
|
||||
// Normally Servo.h must be included before Firmata.h (which then includes
|
||||
// this file). If Servo.h wasn't included, this allows the code to still
|
||||
|
@ -14,7 +14,7 @@
|
||||
//* Includes
|
||||
//******************************************************************************
|
||||
|
||||
#include "WProgram.h"
|
||||
#include "Arduino.h"
|
||||
#include "HardwareSerial.h"
|
||||
#include "Firmata.h"
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
#ifndef Firmata_h
|
||||
#define Firmata_h
|
||||
|
||||
#include <WProgram.h>
|
||||
#include <Arduino.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
#include "WProgram.h"
|
||||
#include "Arduino.h"
|
||||
|
||||
// When the display powers up, it is configured as follows:
|
||||
//
|
||||
|
@ -15,7 +15,7 @@
|
||||
#ifndef __SD_H__
|
||||
#define __SD_H__
|
||||
|
||||
#include <WProgram.h>
|
||||
#include <Arduino.h>
|
||||
|
||||
#include <utility/SdFat.h>
|
||||
#include <utility/SdFatUtil.h>
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with the Arduino Sd2Card Library. If not, see
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include <WProgram.h>
|
||||
#include <Arduino.h>
|
||||
#include "Sd2Card.h"
|
||||
//------------------------------------------------------------------------------
|
||||
#ifndef SOFTWARE_SPI
|
||||
|
@ -23,7 +23,7 @@
|
||||
* \file
|
||||
* Useful utility functions.
|
||||
*/
|
||||
#include <WProgram.h>
|
||||
#include <Arduino.h>
|
||||
#include <avr/pgmspace.h>
|
||||
/** Store and print a string in flash memory.*/
|
||||
#define PgmPrint(x) SerialPrint_P(PSTR(x))
|
||||
|
@ -19,7 +19,7 @@
|
||||
*/
|
||||
#include <SdFat.h>
|
||||
#include <avr/pgmspace.h>
|
||||
#include <WProgram.h>
|
||||
#include <Arduino.h>
|
||||
//------------------------------------------------------------------------------
|
||||
// callback function for date/time
|
||||
void (*SdFile::dateTime_)(uint16_t* date, uint16_t* time) = NULL;
|
||||
|
@ -12,7 +12,7 @@
|
||||
#define _SPI_H_INCLUDED
|
||||
|
||||
#include <stdio.h>
|
||||
#include <WProgram.h>
|
||||
#include <Arduino.h>
|
||||
#include <avr/pgmspace.h>
|
||||
|
||||
#define SPI_CLOCK_DIV4 0x00
|
||||
|
@ -43,7 +43,7 @@
|
||||
*/
|
||||
|
||||
#include <avr/interrupt.h>
|
||||
#include <WProgram.h>
|
||||
#include <Arduino.h>
|
||||
|
||||
#include "Servo.h"
|
||||
|
||||
|
@ -45,7 +45,7 @@ http://www.arduino.cc/en/Tutorial/Stepper
|
||||
*/
|
||||
|
||||
|
||||
#include "WProgram.h"
|
||||
#include "Arduino.h"
|
||||
#include "Stepper.h"
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user