瀏覽代碼

move source under core/ directory

- adds a "namespace" for each header
- makes clear where a header is expected to come from
- better facilitates explicit includes
main
John Robinson 3 年之前
父節點
當前提交
20c3d93b92
沒有發現已知的金鑰在資料庫的簽署中
共有 100 個檔案被更改,包括 149 行新增150 行删除
  1. +2
    -2
      include/core/Arduino.h
  2. +0
    -0
      include/core/AudioStream.h
  3. +3
    -3
      include/core/Client.h
  4. +1
    -1
      include/core/DMAChannel.h
  5. +1
    -1
      include/core/EventResponder.h
  6. +1
    -1
      include/core/FS.h
  7. +1
    -1
      include/core/HardwareSerial.h
  8. +2
    -2
      include/core/IPAddress.h
  9. +1
    -1
      include/core/IntervalTimer.h
  10. +0
    -0
      include/core/Keyboard.h
  11. +1
    -1
      include/core/MIDIUSB.h
  12. +0
    -0
      include/core/Mouse.h
  13. +3
    -3
      include/core/Print.h
  14. +0
    -0
      include/core/Printable.h
  15. +1
    -1
      include/core/Server.h
  16. +1
    -1
      include/core/Stream.h
  17. +2
    -2
      include/core/Udp.h
  18. +0
    -0
      include/core/WCharacter.h
  19. +24
    -24
      include/core/WProgram.h
  20. +2
    -2
      include/core/WString.h
  21. +0
    -0
      include/core/arm_common_tables.h
  22. +0
    -0
      include/core/arm_const_structs.h
  23. +0
    -0
      include/core/arm_math.h
  24. +1
    -1
      include/core/avr/eeprom.h
  25. +0
    -0
      include/core/avr/interrupt.h
  26. +1
    -1
      include/core/avr/io.h
  27. +0
    -0
      include/core/avr/pgmspace.h
  28. +0
    -0
      include/core/avr/power.h
  29. +0
    -0
      include/core/avr/sleep.h
  30. +0
    -0
      include/core/avr/wdt.h
  31. +3
    -3
      include/core/avr_emulation.h
  32. +0
    -0
      include/core/avr_functions.h
  33. +0
    -0
      include/core/binary.h
  34. +0
    -0
      include/core/cmsis_compiler.h
  35. +1
    -1
      include/core/cmsis_gcc.h
  36. +1
    -1
      include/core/core_cm7.h
  37. +0
    -0
      include/core/core_cmInstr.h
  38. +0
    -0
      include/core/core_id.h
  39. +2
    -2
      include/core/core_pins.h
  40. +0
    -0
      include/core/debug/printf.h
  41. +2
    -2
      include/core/elapsedMillis.h
  42. +1
    -1
      include/core/imxrt.h
  43. +0
    -0
      include/core/irq.h
  44. +1
    -1
      include/core/keylayouts.h
  45. +1
    -1
      include/core/math_helper.h
  46. +1
    -1
      include/core/pgmspace.h
  47. +0
    -0
      include/core/pins_arduino.h
  48. +0
    -0
      include/core/smalloc.h
  49. +1
    -1
      include/core/smalloc_i.h
  50. +2
    -2
      include/core/usb_audio.h
  51. +0
    -0
      include/core/usb_desc.h
  52. +1
    -1
      include/core/usb_dev.h
  53. +3
    -3
      include/core/usb_flightsim.h
  54. +1
    -1
      include/core/usb_joystick.h
  55. +3
    -3
      include/core/usb_keyboard.h
  56. +1
    -1
      include/core/usb_midi.h
  57. +1
    -1
      include/core/usb_mouse.h
  58. +1
    -1
      include/core/usb_mtp.h
  59. +0
    -0
      include/core/usb_names.h
  60. +1
    -1
      include/core/usb_rawhid.h
  61. +3
    -3
      include/core/usb_seremu.h
  62. +2
    -2
      include/core/usb_serial.h
  63. +1
    -1
      include/core/usb_touch.h
  64. +0
    -0
      include/core/util/atomic.h
  65. +0
    -0
      include/core/util/crc16.h
  66. +0
    -0
      include/core/util/delay.h
  67. +0
    -0
      include/core/util/parity.h
  68. +3
    -3
      include/core/wiring.h
  69. +0
    -0
      include/core/wiring_private.h
  70. +2
    -3
      src/core/AudioStream.cpp
  71. +1
    -1
      src/core/DMAChannel.cpp
  72. +2
    -2
      src/core/EventResponder.cpp
  73. +4
    -4
      src/core/HardwareSerial.cpp
  74. +2
    -2
      src/core/HardwareSerial1.cpp
  75. +2
    -2
      src/core/HardwareSerial2.cpp
  76. +2
    -2
      src/core/HardwareSerial3.cpp
  77. +2
    -2
      src/core/HardwareSerial4.cpp
  78. +2
    -2
      src/core/HardwareSerial5.cpp
  79. +2
    -2
      src/core/HardwareSerial6.cpp
  80. +2
    -2
      src/core/HardwareSerial7.cpp
  81. +2
    -2
      src/core/HardwareSerial8.cpp
  82. +2
    -2
      src/core/IPAddress.cpp
  83. +2
    -2
      src/core/IntervalTimer.cpp
  84. +2
    -2
      src/core/Print.cpp
  85. +2
    -2
      src/core/Stream.cpp
  86. +1
    -1
      src/core/Tone.cpp
  87. +0
    -0
      src/core/WMath.cpp
  88. +1
    -1
      src/core/WString.cpp
  89. +4
    -4
      src/core/analog.c
  90. +1
    -1
      src/core/bootdata.c
  91. +3
    -3
      src/core/clockspeed.c
  92. +8
    -8
      src/core/debugprintf.c
  93. +2
    -2
      src/core/delay.c
  94. +1
    -1
      src/core/digital.c
  95. +3
    -3
      src/core/eeprom.c
  96. +2
    -2
      src/core/extmem.c
  97. +3
    -3
      src/core/interrupt.c
  98. +2
    -2
      src/core/keylayouts.c
  99. +0
    -0
      src/core/libc.c
  100. +0
    -0
      src/core/main.cpp

include/Arduino.h → include/core/Arduino.h 查看文件

@@ -3,7 +3,7 @@
#ifndef Arduino_h
#define Arduino_h

#include "WProgram.h"
#include "pins_arduino.h"
#include "core/WProgram.h"
#include "core/pins_arduino.h"

#endif

include/AudioStream.h → include/core/AudioStream.h 查看文件


include/Client.h → include/core/Client.h 查看文件

@@ -21,9 +21,9 @@

#ifndef client_h
#define client_h
#include "Print.h"
#include "Stream.h"
#include "IPAddress.h"
#include "core/Print.h"
#include "core/Stream.h"
#include "core/IPAddress.h"

class Client : public Stream {


include/DMAChannel.h → include/core/DMAChannel.h 查看文件

@@ -31,7 +31,7 @@
#ifndef DMAChannel_h_
#define DMAChannel_h_

#include "imxrt.h"
#include "core/imxrt.h"

// Discussion about DMAChannel is here:
// http://forum.pjrc.com/threads/25778-Could-there-be-something-like-an-ISR-template-function/page3

include/EventResponder.h → include/core/EventResponder.h 查看文件

@@ -34,7 +34,7 @@
#if !defined(EventResponder_h) && defined(__cplusplus)
#define EventResponder_h

#include <Arduino.h>
#include <core/Arduino.h>

/* EventResponder lets you control how your program responds to an event.
* Imagine a basketball or football (American soccer) player who gets the

include/FS.h → include/core/FS.h 查看文件

@@ -32,7 +32,7 @@
#define FS_H
#ifdef __cplusplus

#include <Arduino.h>
#include <core/Arduino.h>

#define FILE_READ 0
#define FILE_WRITE 1

include/HardwareSerial.h → include/core/HardwareSerial.h 查看文件

@@ -31,7 +31,7 @@
#ifndef HardwareSerial_h
#define HardwareSerial_h

#include "imxrt.h"
#include "core/imxrt.h"

// Uncomment to enable 9 bit formats. These are default disabled to save memory.
//#define SERIAL_9BIT_SUPPORT

include/IPAddress.h → include/core/IPAddress.h 查看文件

@@ -26,8 +26,8 @@
#ifndef IPAddress_h
#define IPAddress_h

#include <Printable.h>
#include <WString.h>
#include <core/Printable.h>
#include <core/WString.h>

// A class to make it easier to handle and pass around IP addresses


include/IntervalTimer.h → include/core/IntervalTimer.h 查看文件

@@ -32,7 +32,7 @@
#define __INTERVALTIMER_H__

#include <stddef.h>
#include "imxrt.h"
#include "core/imxrt.h"

#ifdef __cplusplus
extern "C" {

include/Keyboard.h → include/core/Keyboard.h 查看文件


include/MIDIUSB.h → include/core/MIDIUSB.h 查看文件

@@ -3,7 +3,7 @@

// For compatibility with Arduino's MIDIUSB library

#include "usb_midi.h"
#include "core/usb_midi.h"

#ifdef __cplusplus
#if !defined(USB_MIDI) && !defined(USB_MIDI4) && !defined(USB_MIDI16) && !defined(USB_MIDI_SERIAL) && !defined(USB_MIDI4_SERIAL) && !defined(USB_MIDI16_SERIAL) && !defined(USB_MIDI_AUDIO_SERIAL) && !defined(USB_MIDI16_AUDIO_SERIAL) && !defined(USB_EVERYTHING)

include/Mouse.h → include/core/Mouse.h 查看文件


include/Print.h → include/core/Print.h 查看文件

@@ -34,9 +34,9 @@
#include <inttypes.h>
#include <stdio.h> // for size_t - gives sprintf and other stuff to all sketches & libs
#include <stdarg.h>
#include "core_id.h"
#include "WString.h"
#include "Printable.h"
#include "core/core_id.h"
#include "core/WString.h"
#include "core/Printable.h"

#define DEC 10
#define HEX 16

include/Printable.h → include/core/Printable.h 查看文件


include/Server.h → include/core/Server.h 查看文件

@@ -22,7 +22,7 @@
#ifndef server_h
#define server_h

#include "Print.h"
#include "core/Print.h"

class Server : public Print {
public:

include/Stream.h → include/core/Stream.h 查看文件

@@ -21,7 +21,7 @@
#define Stream_h

#include <inttypes.h>
#include "Print.h"
#include "core/Print.h"

class Stream : public Print
{

include/Udp.h → include/core/Udp.h 查看文件

@@ -37,8 +37,8 @@
#ifndef udp_h
#define udp_h

#include <Stream.h>
#include <IPAddress.h>
#include <core/Stream.h>
#include <core/IPAddress.h>

class UDP : public Stream {


include/WCharacter.h → include/core/WCharacter.h 查看文件


include/WProgram.h → include/core/WProgram.h 查看文件

@@ -38,33 +38,33 @@
// some libraries and sketches depend on this
// AVR stuff, assuming Arduino.h or WProgram.h
// automatically includes it...
#include <avr/pgmspace.h>
#include <avr/interrupt.h>
#include <core/avr/pgmspace.h>
#include <core/avr/interrupt.h>

#include "avr_functions.h"
#include "wiring.h"
#include "HardwareSerial.h"
#include "core/avr_functions.h"
#include "core/wiring.h"
#include "core/HardwareSerial.h"

#ifdef __cplusplus

#include "avr_emulation.h"
#include "usb_serial.h"
#include "usb_seremu.h"
#include "usb_keyboard.h"
#include "usb_mouse.h"
#include "usb_joystick.h"
#include "usb_midi.h"
#include "usb_rawhid.h"
#include "usb_flightsim.h"
//#include "usb_mtp.h"
#include "usb_audio.h"
#include "usb_touch.h"
//#include "usb_undef.h" // do not allow usb_desc.h stuff to leak to user programs
#include "WCharacter.h"
#include "WString.h"
#include "elapsedMillis.h"
#include "IntervalTimer.h"
#include "core/avr_emulation.h"
#include "core/usb_serial.h"
#include "core/usb_seremu.h"
#include "core/usb_keyboard.h"
#include "core/usb_mouse.h"
#include "core/usb_joystick.h"
#include "core/usb_midi.h"
#include "core/usb_rawhid.h"
#include "core/usb_flightsim.h"
//#include "core/usb_mtp.h"
#include "core/usb_audio.h"
#include "core/usb_touch.h"
//#include "core/usb_undef.h" // do not allow usb_desc.h stuff to leak to user programs
#include "core/WCharacter.h"
#include "core/WString.h"
#include "core/elapsedMillis.h"
#include "core/IntervalTimer.h"

uint16_t makeWord(uint16_t w);
uint16_t makeWord(byte h, byte l);
@@ -83,7 +83,7 @@ int32_t random(int32_t howsmall, int32_t howbig);
void randomSeed(uint32_t newseed);
void srandom(unsigned int newseed);

#include "pins_arduino.h"
#include "core/pins_arduino.h"

#endif // __cplusplus


include/WString.h → include/core/WString.h 查看文件

@@ -26,11 +26,11 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "avr_functions.h"
#include "core/avr_functions.h"

// Not needed here, but some libs assume WString.h or Print.h
// gives them PROGMEM and other AVR stuff.
#include "avr/pgmspace.h"
#include "core/avr/pgmspace.h"

// When compiling programs with this class, the following gcc parameters
// dramatically increase performance and memory (RAM) efficiency, typically

include/arm_common_tables.h → include/core/arm_common_tables.h 查看文件


include/arm_const_structs.h → include/core/arm_const_structs.h 查看文件


include/arm_math.h → include/core/arm_math.h 查看文件


include/avr/eeprom.h → include/core/avr/eeprom.h 查看文件

@@ -29,7 +29,7 @@
#include <stddef.h>
#include <stdint.h>

#include "avr_functions.h"
#include "core/avr_functions.h"

#if defined(ARDUINO_TEENSY40)
#define E2END 0x437

include/avr/interrupt.h → include/core/avr/interrupt.h 查看文件


include/avr/io.h → include/core/avr/io.h 查看文件

@@ -20,4 +20,4 @@
* THE SOFTWARE.
*/

#include "../avr_emulation.h"
#include "core/avr_emulation.h"

include/avr/pgmspace.h → include/core/avr/pgmspace.h 查看文件


include/avr/power.h → include/core/avr/power.h 查看文件


include/avr/sleep.h → include/core/avr/sleep.h 查看文件


include/avr/wdt.h → include/core/avr/wdt.h 查看文件


include/avr_emulation.h → include/core/avr_emulation.h 查看文件

@@ -31,9 +31,9 @@
#ifndef _avr_emulation_h_
#define _avr_emulation_h_

#include "imxrt.h"
#include "core_pins.h"
#include "pins_arduino.h"
#include "core/imxrt.h"
#include "core/core_pins.h"
#include "core/pins_arduino.h"

#ifdef __cplusplus


include/avr_functions.h → include/core/avr_functions.h 查看文件


include/binary.h → include/core/binary.h 查看文件


include/cmsis_compiler.h → include/core/cmsis_compiler.h 查看文件


include/cmsis_gcc.h → include/core/cmsis_gcc.h 查看文件

@@ -37,7 +37,7 @@
#endif

#ifdef TEENSYDUINO
#include <irq.h>
#include <core/irq.h>
#endif

/* CMSIS compiler specific defines */

include/core_cm7.h → include/core/core_cm7.h 查看文件

@@ -60,7 +60,7 @@
@{
*/

#include "cmsis_version.h"
#include "core/cmsis_version.h"

/* CMSIS CM7 definitions */
#define __CM7_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) /*!< \deprecated [31:16] CMSIS HAL main version */

include/core_cmInstr.h → include/core/core_cmInstr.h 查看文件


include/core_id.h → include/core/core_id.h 查看文件


include/core_pins.h → include/core/core_pins.h 查看文件

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

#pragma once
#include "imxrt.h"
#include "pins_arduino.h"
#include "core/imxrt.h"
#include "core/pins_arduino.h"

#define HIGH 1
#define LOW 0

include/debug/printf.h → include/core/debug/printf.h 查看文件


include/elapsedMillis.h → include/core/elapsedMillis.h 查看文件

@@ -26,9 +26,9 @@
#ifdef __cplusplus

#if ARDUINO >= 100
#include "Arduino.h"
#include "core/Arduino.h"
#else
#include "WProgram.h"
#include "core/WProgram.h"
#endif

class elapsedMillis

include/imxrt.h → include/core/imxrt.h 查看文件

@@ -1,6 +1,6 @@
#pragma once
#include <stdint.h>
#include <irq.h>
#include <core/irq.h>

// Definitions based these documents:
// i.MX RT1060 Reference Manual, Rev. 2, 12/2019 - https://www.pjrc.com/teensy/datasheets.html

include/irq.h → include/core/irq.h 查看文件


include/keylayouts.h → include/core/keylayouts.h 查看文件

@@ -32,7 +32,7 @@
#define KEYLAYOUTS_H__

#include <stdint.h>
#include <avr/pgmspace.h>
#include <core/avr/pgmspace.h>

#ifdef __cplusplus
extern "C"{

include/math_helper.h → include/core/math_helper.h 查看文件

@@ -30,7 +30,7 @@
* -------------------------------------------------------------------- */


#include "arm_math.h"
#include "core/arm_math.h"

#ifndef MATH_HELPER_H
#define MATH_HELPER_H

include/pgmspace.h → include/core/pgmspace.h 查看文件

@@ -1,2 +1,2 @@
// For compatibility with some ESP8266 programs
#include <avr/pgmspace.h>
#include <core/avr/pgmspace.h>

include/pins_arduino.h → include/core/pins_arduino.h 查看文件


include/smalloc.h → include/core/smalloc.h 查看文件


include/smalloc_i.h → include/core/smalloc_i.h 查看文件

@@ -7,7 +7,7 @@
#ifndef _SMALLOC_I_H
#define _SMALLOC_I_H

#include "smalloc.h"
#include "core/smalloc.h"
#include <string.h>
#include <limits.h>
#include <errno.h>

include/usb_audio.h → include/core/usb_audio.h 查看文件

@@ -30,7 +30,7 @@

#pragma once

#include "usb_desc.h"
#include "core/usb_desc.h"
#ifdef AUDIO_INTERFACE

#define FEATURE_MAX_VOLUME 0xFFF // volume accepted from 0 to 0xFFF
@@ -60,7 +60,7 @@ struct usb_audio_features_struct {
};

#ifdef __cplusplus
#include "AudioStream.h"
#include "core/AudioStream.h"

class AudioInputUSB : public AudioStream
{

include/usb_desc.h → include/core/usb_desc.h 查看文件


include/usb_dev.h → include/core/usb_dev.h 查看文件

@@ -1,5 +1,5 @@
#pragma once
#include "imxrt.h"
#include "core/imxrt.h"

#if !defined(USB_DISABLED)


include/usb_flightsim.h → include/core/usb_flightsim.h 查看文件

@@ -31,7 +31,7 @@
#ifndef USBflightsim_h_
#define USBflightsim_h_

#include "usb_desc.h"
#include "core/usb_desc.h"

#if defined(FLIGHTSIM_INTERFACE)

@@ -47,11 +47,11 @@ void usb_flightsim_flush_output(void);
#ifdef __cplusplus

#include <inttypes.h>
#include "elapsedMillis.h"
#include "core/elapsedMillis.h"

// workaround for elapsedMillis.h bringing in WProgram.h which brings usb_undef.h
//#undef USB_DESC_LIST_DEFINE
//#include "usb_desc.h"
//#include "core/usb_desc.h"

class FlightSimClass;
class FlightSimCommand;

include/usb_joystick.h → include/core/usb_joystick.h 查看文件

@@ -31,7 +31,7 @@
#ifndef USBjoystick_h_
#define USBjoystick_h_

#include "usb_desc.h"
#include "core/usb_desc.h"

#if defined(JOYSTICK_INTERFACE)


include/usb_keyboard.h → include/core/usb_keyboard.h 查看文件

@@ -30,9 +30,9 @@

#pragma once

#include "usb_desc.h"
#include "core/usb_desc.h"

#include "keylayouts.h"
#include "core/keylayouts.h"

#if defined(KEYBOARD_INTERFACE)

@@ -68,7 +68,7 @@ extern volatile uint8_t usb_configuration;

// C++ interface
#ifdef __cplusplus
#include "Stream.h"
#include "core/Stream.h"
class usb_keyboard_class : public Print
{
public:

include/usb_midi.h → include/core/usb_midi.h 查看文件

@@ -31,7 +31,7 @@
#ifndef USBmidi_h_
#define USBmidi_h_

#include "usb_desc.h"
#include "core/usb_desc.h"

#if defined(MIDI_INTERFACE)


include/usb_mouse.h → include/core/usb_mouse.h 查看文件

@@ -31,7 +31,7 @@
#ifndef USBmouse_h_
#define USBmouse_h_

#include "usb_desc.h"
#include "core/usb_desc.h"

#if defined(MOUSE_INTERFACE)


include/usb_mtp.h → include/core/usb_mtp.h 查看文件

@@ -30,7 +30,7 @@

#pragma once

#include "usb_desc.h"
#include "core/usb_desc.h"

#if defined(MTP_INTERFACE)


include/usb_names.h → include/core/usb_names.h 查看文件


include/usb_rawhid.h → include/core/usb_rawhid.h 查看文件

@@ -30,7 +30,7 @@

#pragma once

#include "usb_desc.h"
#include "core/usb_desc.h"

#if defined(RAWHID_INTERFACE)


include/usb_seremu.h → include/core/usb_seremu.h 查看文件

@@ -30,7 +30,7 @@

#pragma once

#include "usb_desc.h"
#include "core/usb_desc.h"

#if defined(SEREMU_INTERFACE) && !defined(CDC_STATUS_INTERFACE) && !defined(CDC_DATA_INTERFACE)

@@ -58,7 +58,7 @@ extern volatile uint8_t usb_seremu_online;

// C++ interface
#ifdef __cplusplus
#include "Stream.h"
#include "core/Stream.h"
class usb_seremu_class : public Stream
{
public:
@@ -94,7 +94,7 @@ extern void serialEvent(void);
#if 0
// Allow Arduino programs using Serial to compile, but Serial will do nothing.
#ifdef __cplusplus
#include "Stream.h"
#include "core/Stream.h"
class usb_seremu_class : public Stream
{
public:

include/usb_serial.h → include/core/usb_serial.h 查看文件

@@ -30,7 +30,7 @@

#pragma once

#include "usb_desc.h"
#include "core/usb_desc.h"
#include <stdint.h>

#if (defined(CDC_STATUS_INTERFACE) && defined(CDC_DATA_INTERFACE)) || defined(USB_DISABLED)
@@ -67,7 +67,7 @@ extern volatile uint8_t usb_configuration;

// C++ interface
#ifdef __cplusplus
#include "Stream.h"
#include "core/Stream.h"
class usb_serial_class : public Stream
{
public:

include/usb_touch.h → include/core/usb_touch.h 查看文件

@@ -31,7 +31,7 @@
#ifndef USBtouchscreen_h_
#define USBtouchscreen_h_

#include "usb_desc.h"
#include "core/usb_desc.h"

#if defined(MULTITOUCH_INTERFACE)


include/util/atomic.h → include/core/util/atomic.h 查看文件


include/util/crc16.h → include/core/util/crc16.h 查看文件


include/util/delay.h → include/core/util/delay.h 查看文件


include/util/parity.h → include/core/util/parity.h 查看文件


include/wiring.h → include/core/wiring.h 查看文件

@@ -34,9 +34,9 @@
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include "binary.h"
#include "core_id.h"
#include "core_pins.h"
#include "core/binary.h"
#include "core/core_id.h"
#include "core/core_pins.h"

// type_traits interferes with min() and other defines
// include it early, so we can define these later

include/wiring_private.h → include/core/wiring_private.h 查看文件


src/AudioStream.cpp → src/core/AudioStream.cpp 查看文件

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


#include <Arduino.h>
#include "AudioStream.h"
#include <core/Arduino.h>
#include "core/AudioStream.h"

#if defined(__IMXRT1062__)
#define MAX_AUDIO_MEMORY 229376

src/DMAChannel.cpp → src/core/DMAChannel.cpp 查看文件

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

#include "DMAChannel.h"
#include "core/DMAChannel.h"

// only 16 channels supported, because we don't handle sharing interrupts
#define DMA_MAX_CHANNELS 16

src/EventResponder.cpp → src/core/EventResponder.cpp 查看文件

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

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

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

src/HardwareSerial.cpp → src/core/HardwareSerial.cpp 查看文件

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

#include "HardwareSerial.h"
#include "core_pins.h"
#include "Arduino.h"
//#include "debug/printf.h"
#include "core/HardwareSerial.h"
#include "core/core_pins.h"
#include "core/Arduino.h"
//#include "core/debug/printf.h"

/*typedef struct {
const uint32_t VERID;

src/HardwareSerial1.cpp → src/core/HardwareSerial1.cpp 查看文件

@@ -29,8 +29,8 @@
* SOFTWARE.
*/

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

#ifndef SERIAL1_TX_BUFFER_SIZE
#define SERIAL1_TX_BUFFER_SIZE 64 // number of outgoing bytes to buffer

src/HardwareSerial2.cpp → src/core/HardwareSerial2.cpp 查看文件

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

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

#ifndef SERIAL2_TX_BUFFER_SIZE
#define SERIAL2_TX_BUFFER_SIZE 40 // number of outgoing bytes to buffer

src/HardwareSerial3.cpp → src/core/HardwareSerial3.cpp 查看文件

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

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

#ifndef SERIAL3_TX_BUFFER_SIZE
#define SERIAL3_TX_BUFFER_SIZE 40 // number of outgoing bytes to buffer

src/HardwareSerial4.cpp → src/core/HardwareSerial4.cpp 查看文件

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

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

#ifndef SERIAL4_TX_BUFFER_SIZE
#define SERIAL4_TX_BUFFER_SIZE 40 // number of outgoing bytes to buffer

src/HardwareSerial5.cpp → src/core/HardwareSerial5.cpp 查看文件

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

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

#ifndef SERIAL5_TX_BUFFER_SIZE
#define SERIAL5_TX_BUFFER_SIZE 40 // number of outgoing bytes to buffer

src/HardwareSerial6.cpp → src/core/HardwareSerial6.cpp 查看文件

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

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

#ifndef SERIAL6_TX_BUFFER_SIZE
#define SERIAL6_TX_BUFFER_SIZE 40 // number of outgoing bytes to buffer

src/HardwareSerial7.cpp → src/core/HardwareSerial7.cpp 查看文件

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

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

#ifndef SERIAL7_TX_BUFFER_SIZE
#define SERIAL7_TX_BUFFER_SIZE 40 // number of outgoing bytes to buffer

src/HardwareSerial8.cpp → src/core/HardwareSerial8.cpp 查看文件

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

#include <Arduino.h>
#include "HardwareSerial.h"
#include <core/Arduino.h>
#include "core/HardwareSerial.h"
#if defined(__IMXRT1062__) && defined(ARDUINO_TEENSY41)

#ifndef SERIAL8_TX_BUFFER_SIZE

src/IPAddress.cpp → src/core/IPAddress.cpp 查看文件

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

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

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

src/IntervalTimer.cpp → src/core/IntervalTimer.cpp 查看文件

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

#include "IntervalTimer.h"
#include "debug/printf.h"
#include "core/IntervalTimer.h"
#include "core/debug/printf.h"

static void pit_isr(void);


src/Print.cpp → src/core/Print.cpp 查看文件

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

#include <Arduino.h>
#include <core/Arduino.h>

#include "debug/printf.h"
#include "core/debug/printf.h"
#undef printf

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

src/Stream.cpp → src/core/Stream.cpp 查看文件

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

#include <Arduino.h>
#include <core/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
@@ -106,7 +106,7 @@ bool Stream::findUntil(const char *target, size_t targetLen, const char *termina
if( target == nullptr) return true;
if( *target == 0) return true; // return true if target is a null string
if (terminator == nullptr) termLen = 0;
while( (c = timedRead()) > 0){
if( c == target[index]){
//////Serial.print("found "); Serial.write(c); Serial.print("index now"); Serial.println(index+1);

src/Tone.cpp → src/core/Tone.cpp 查看文件

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

#include <Arduino.h>
#include <core/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

src/WMath.cpp → src/core/WMath.cpp 查看文件


src/WString.cpp → src/core/WString.cpp 查看文件

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

#include <Arduino.h>
#include <core/Arduino.h>


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

src/analog.c → src/core/analog.c 查看文件

@@ -1,7 +1,7 @@
#include "imxrt.h"
#include "core_pins.h"
#include "debug/printf.h"
#include "avr/pgmspace.h"
#include "core/imxrt.h"
#include "core/core_pins.h"
#include "core/debug/printf.h"
#include "core/avr/pgmspace.h"

static uint8_t calibrating;
static uint8_t analog_config_bits = 10;

src/bootdata.c → src/core/bootdata.c 查看文件

@@ -1,4 +1,4 @@
//#include "imxrt.h"
//#include "core/imxrt.h"

#include <stdint.h>


src/clockspeed.c → src/core/clockspeed.c 查看文件

@@ -1,7 +1,7 @@
#include <stdint.h>
#include "imxrt.h"
#include "wiring.h"
#include "debug/printf.h"
#include "core/imxrt.h"
#include "core/wiring.h"
#include "core/debug/printf.h"

// A brief explanation of F_CPU_ACTUAL vs F_CPU
// https://forum.pjrc.com/threads/57236?p=212642&viewfull=1#post212642

src/debugprintf.c → src/core/debugprintf.c 查看文件

@@ -1,11 +1,11 @@
#include "debug/printf.h"
#include "core/debug/printf.h"

#ifdef PRINT_DEBUG_STUFF

#include "avr/pgmspace.h"
#include "core/avr/pgmspace.h"
#include <stdarg.h>
#include "imxrt.h"
#include "usb_desc.h"
#include "core/imxrt.h"
#include "core/usb_desc.h"

void putchar_debug(char c);
static void puint_debug(unsigned int num);
@@ -73,8 +73,8 @@ static void puint_debug(unsigned int num)

// first is this normal Serial?
#if defined(PRINT_DEBUG_USING_USB) && defined(CDC_STATUS_INTERFACE) && defined(CDC_DATA_INTERFACE)
#include "usb_dev.h"
#include "usb_serial.h"
#include "core/usb_dev.h"
#include "core/usb_serial.h"
FLASHMEM void putchar_debug(char c)
{
usb_serial_putchar(c);
@@ -83,8 +83,8 @@ FLASHMEM void putchar_debug(char c)
FLASHMEM void printf_debug_init(void) {}

#elif defined(PRINT_DEBUG_USING_USB) && defined(SEREMU_INTERFACE) && !defined(CDC_STATUS_INTERFACE) && !defined(CDC_DATA_INTERFACE)
#include "usb_dev.h"
#include "usb_seremu.h"
#include "core/usb_dev.h"
#include "core/usb_seremu.h"
FLASHMEM void putchar_debug(char c)
{
usb_seremu_putchar(c);

src/delay.c → src/core/delay.c 查看文件

@@ -1,5 +1,5 @@
#include "core_pins.h"
#include "arm_math.h" // micros() synchronization
#include "core/core_pins.h"
#include "core/arm_math.h" // micros() synchronization

//volatile uint32_t F_CPU = 396000000;
//volatile uint32_t F_BUS = 132000000;

src/digital.c → src/core/digital.c 查看文件

@@ -1,5 +1,5 @@

#include "core_pins.h"
#include "core/core_pins.h"

/*
struct digital_pin_bitband_and_config_table_struct {

src/eeprom.c → src/core/eeprom.c 查看文件

@@ -33,10 +33,10 @@
// Generally you should avoid editing this code, unless you really
// know what you're doing.

#include "imxrt.h"
#include <avr/eeprom.h>
#include "core/imxrt.h"
#include <core/avr/eeprom.h>
#include <string.h>
#include "debug/printf.h"
#include "core/debug/printf.h"

#if defined(ARDUINO_TEENSY40)
#define FLASH_BASEADDR 0x601F0000

src/extmem.c → src/core/extmem.c 查看文件

@@ -2,8 +2,8 @@
// but automatically fall back to internal RAM if external RAM can't be used.

#include <stdlib.h>
#include "smalloc.h"
#include "wiring.h"
#include "core/smalloc.h"
#include "core/wiring.h"

#if defined(ARDUINO_TEENSY41)
// Teensy 4.1 external RAM address range is 0x70000000 to 0x7FFFFFFF

src/interrupt.c → src/core/interrupt.c 查看文件

@@ -1,6 +1,6 @@
#include "Arduino.h"
#include "pins_arduino.h"
#include "debug/printf.h"
#include "core/Arduino.h"
#include "core/pins_arduino.h"
#include "core/debug/printf.h"

#define DR_INDEX 0
#define GDIR_INDEX 1

src/keylayouts.c → src/core/keylayouts.c 查看文件

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

#include <avr/pgmspace.h>
#include <core/avr/pgmspace.h>
#include <stdint.h>

#include "keylayouts.h"
#include "core/keylayouts.h"

#ifdef M
#undef M

src/libc.c → src/core/libc.c 查看文件


src/main.cpp → src/core/main.cpp 查看文件


部分文件因文件數量過多而無法顯示

Loading…
取消
儲存