Bläddra i källkod

Include <Arduino.h> first, for precompile header rebuild all speedup

main
PaulStoffregen 6 år sedan
förälder
incheckning
abe5ca8072
18 ändrade filer med 18 tillägg och 25 borttagningar
  1. +1
    -2
      teensy3/AudioStream.cpp
  2. +1
    -0
      teensy3/EventResponder.cpp
  3. +1
    -0
      teensy3/HardwareSerial1.cpp
  4. +1
    -0
      teensy3/HardwareSerial2.cpp
  5. +1
    -0
      teensy3/HardwareSerial3.cpp
  6. +1
    -0
      teensy3/HardwareSerial4.cpp
  7. +1
    -0
      teensy3/HardwareSerial5.cpp
  8. +1
    -0
      teensy3/HardwareSerial6.cpp
  9. +1
    -1
      teensy3/IPAddress.cpp
  10. +1
    -5
      teensy3/Print.cpp
  11. +1
    -2
      teensy3/Stream.cpp
  12. +1
    -4
      teensy3/Tone.cpp
  13. +1
    -1
      teensy3/WString.cpp
  14. +1
    -1
      teensy3/avr_emulation.cpp
  15. +1
    -1
      teensy3/main.cpp
  16. +1
    -3
      teensy3/usb_audio.cpp
  17. +1
    -1
      teensy3/usb_inst.cpp
  18. +1
    -4
      teensy3/yield.cpp

+ 1
- 2
teensy3/AudioStream.cpp Visa fil

@@ -29,9 +29,8 @@
*/


#include <string.h> // for memcpy
#include "AudioStream.h"
#include <Arduino.h>
#include "AudioStream.h"

#if defined(__MKL26Z64__)
#define MAX_AUDIO_MEMORY 6144

+ 1
- 0
teensy3/EventResponder.cpp Visa fil

@@ -31,6 +31,7 @@
* https://forum.pjrc.com/threads/44723-Arduino-Events
*/

#include <Arduino.h>
#include "EventResponder.h"

EventResponder * EventResponder::firstYield = nullptr;

+ 1
- 0
teensy3/HardwareSerial1.cpp Visa fil

@@ -28,6 +28,7 @@
* SOFTWARE.
*/

#include <Arduino.h>
#include "HardwareSerial.h"

HardwareSerial Serial1;

+ 1
- 0
teensy3/HardwareSerial2.cpp Visa fil

@@ -28,6 +28,7 @@
* SOFTWARE.
*/

#include <Arduino.h>
#include "HardwareSerial.h"

HardwareSerial2 Serial2;

+ 1
- 0
teensy3/HardwareSerial3.cpp Visa fil

@@ -28,6 +28,7 @@
* SOFTWARE.
*/

#include <Arduino.h>
#include "HardwareSerial.h"

HardwareSerial3 Serial3;

+ 1
- 0
teensy3/HardwareSerial4.cpp Visa fil

@@ -28,6 +28,7 @@
* SOFTWARE.
*/

#include <Arduino.h>
#include "HardwareSerial.h"

#ifdef HAS_KINETISK_UART3

+ 1
- 0
teensy3/HardwareSerial5.cpp Visa fil

@@ -28,6 +28,7 @@
* SOFTWARE.
*/

#include <Arduino.h>
#include "HardwareSerial.h"

#ifdef HAS_KINETISK_UART4

+ 1
- 0
teensy3/HardwareSerial6.cpp Visa fil

@@ -28,6 +28,7 @@
* SOFTWARE.
*/

#include <Arduino.h>
#include "HardwareSerial.h"

#if defined(HAS_KINETISK_UART5) || defined (HAS_KINETISK_LPUART0)

+ 1
- 1
teensy3/IPAddress.cpp Visa fil

@@ -17,7 +17,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include "Arduino.h"
#include <Arduino.h>
#include "IPAddress.h"

size_t IPAddress::printTo(Print& p) const

+ 1
- 5
teensy3/Print.cpp Visa fil

@@ -34,11 +34,7 @@
// developed for Teensyduino have made their way back into
// Arduino's code base. :-)

#include <inttypes.h>
#include <math.h>

#include "Print.h"

#include <Arduino.h>


size_t Print::write(const uint8_t *buffer, size_t size)

+ 1
- 2
teensy3/Stream.cpp Visa fil

@@ -20,8 +20,7 @@
parsing functions based on TextFinder library by Michael Margolis
*/

#include "Arduino.h"
#include "Stream.h"
#include <Arduino.h>

#define PARSE_TIMEOUT 1000 // default number of milli-seconds to wait
#define NO_SKIP_CHAR 1 // a magic char not found in a valid ASCII numeric field

+ 1
- 4
teensy3/Tone.cpp Visa fil

@@ -28,10 +28,7 @@
* SOFTWARE.
*/

#include "core_pins.h"
#include "pins_arduino.h"
#include "HardwareSerial.h"
#include "IntervalTimer.h"
#include <Arduino.h>

// IntervalTimer based tone. This allows tone() to share the timers with other
// libraries, rather than permanently hogging one PIT timer even for projects

+ 1
- 1
teensy3/WString.cpp Visa fil

@@ -19,7 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include "WString.h"
#include <Arduino.h>


/*********************************************/

+ 1
- 1
teensy3/avr_emulation.cpp Visa fil

@@ -29,7 +29,7 @@
*/


#include "avr_emulation.h"
#include <Arduino.h>
#include "SPIFIFO.h"

uint8_t SPCRemulation::pinout = 0;

+ 1
- 1
teensy3/main.cpp Visa fil

@@ -28,7 +28,7 @@
* SOFTWARE.
*/

#include "WProgram.h"
#include <Arduino.h>

extern "C" int main(void)
{

+ 1
- 3
teensy3/usb_audio.cpp Visa fil

@@ -28,10 +28,8 @@
* SOFTWARE.
*/

#include <Arduino.h>
#include "usb_dev.h"
#include "usb_audio.h"
#include "HardwareSerial.h"
#include <string.h> // for memcpy()

#ifdef AUDIO_INTERFACE // defined by usb_dev.h -> usb_desc.h
#if F_CPU >= 20000000

+ 1
- 1
teensy3/usb_inst.cpp Visa fil

@@ -28,7 +28,7 @@
* SOFTWARE.
*/

#include "WProgram.h"
#include <Arduino.h>
#include "usb_desc.h"

#if F_CPU >= 20000000

+ 1
- 4
teensy3/yield.cpp Visa fil

@@ -28,10 +28,7 @@
* SOFTWARE.
*/

#include "core_pins.h"
#include "HardwareSerial.h"
#include "usb_serial.h"
#include "usb_seremu.h"
#include <Arduino.h>
#include "EventResponder.h"

void yield(void) __attribute__ ((weak));

Laddar…
Avbryt
Spara