瀏覽代碼

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

main
PaulStoffregen 6 年之前
父節點
當前提交
abe5ca8072
共有 18 個檔案被更改,包括 18 行新增25 行删除
  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 查看文件

*/ */




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


#if defined(__MKL26Z64__) #if defined(__MKL26Z64__)
#define MAX_AUDIO_MEMORY 6144 #define MAX_AUDIO_MEMORY 6144

+ 1
- 0
teensy3/EventResponder.cpp 查看文件

* https://forum.pjrc.com/threads/44723-Arduino-Events * https://forum.pjrc.com/threads/44723-Arduino-Events
*/ */


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


EventResponder * EventResponder::firstYield = nullptr; EventResponder * EventResponder::firstYield = nullptr;

+ 1
- 0
teensy3/HardwareSerial1.cpp 查看文件

* SOFTWARE. * SOFTWARE.
*/ */


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


HardwareSerial Serial1; HardwareSerial Serial1;

+ 1
- 0
teensy3/HardwareSerial2.cpp 查看文件

* SOFTWARE. * SOFTWARE.
*/ */


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


HardwareSerial2 Serial2; HardwareSerial2 Serial2;

+ 1
- 0
teensy3/HardwareSerial3.cpp 查看文件

* SOFTWARE. * SOFTWARE.
*/ */


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


HardwareSerial3 Serial3; HardwareSerial3 Serial3;

+ 1
- 0
teensy3/HardwareSerial4.cpp 查看文件

* SOFTWARE. * SOFTWARE.
*/ */


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


#ifdef HAS_KINETISK_UART3 #ifdef HAS_KINETISK_UART3

+ 1
- 0
teensy3/HardwareSerial5.cpp 查看文件

* SOFTWARE. * SOFTWARE.
*/ */


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


#ifdef HAS_KINETISK_UART4 #ifdef HAS_KINETISK_UART4

+ 1
- 0
teensy3/HardwareSerial6.cpp 查看文件

* SOFTWARE. * SOFTWARE.
*/ */


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


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

+ 1
- 1
teensy3/IPAddress.cpp 查看文件

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


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


size_t IPAddress::printTo(Print& p) const size_t IPAddress::printTo(Print& p) const

+ 1
- 5
teensy3/Print.cpp 查看文件

// developed for Teensyduino have made their way back into // developed for Teensyduino have made their way back into
// Arduino's code base. :-) // 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) size_t Print::write(const uint8_t *buffer, size_t size)

+ 1
- 2
teensy3/Stream.cpp 查看文件

parsing functions based on TextFinder library by Michael Margolis 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 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 #define NO_SKIP_CHAR 1 // a magic char not found in a valid ASCII numeric field

+ 1
- 4
teensy3/Tone.cpp 查看文件

* SOFTWARE. * 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 // IntervalTimer based tone. This allows tone() to share the timers with other
// libraries, rather than permanently hogging one PIT timer even for projects // libraries, rather than permanently hogging one PIT timer even for projects

+ 1
- 1
teensy3/WString.cpp 查看文件

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


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




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

+ 1
- 1
teensy3/avr_emulation.cpp 查看文件

*/ */




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


uint8_t SPCRemulation::pinout = 0; uint8_t SPCRemulation::pinout = 0;

+ 1
- 1
teensy3/main.cpp 查看文件

* SOFTWARE. * SOFTWARE.
*/ */


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


extern "C" int main(void) extern "C" int main(void)
{ {

+ 1
- 3
teensy3/usb_audio.cpp 查看文件

* SOFTWARE. * SOFTWARE.
*/ */


#include <Arduino.h>
#include "usb_dev.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 #ifdef AUDIO_INTERFACE // defined by usb_dev.h -> usb_desc.h
#if F_CPU >= 20000000 #if F_CPU >= 20000000

+ 1
- 1
teensy3/usb_inst.cpp 查看文件

* SOFTWARE. * SOFTWARE.
*/ */


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


#if F_CPU >= 20000000 #if F_CPU >= 20000000

+ 1
- 4
teensy3/yield.cpp 查看文件

* SOFTWARE. * SOFTWARE.
*/ */


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


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

Loading…
取消
儲存