File tree 3 files changed +6
-14
lines changed
3 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,6 @@ static voidFuncPtr ISRcallback[EXTERNAL_NUM_INTERRUPTS];
25
25
static uint32_t ISRlist [EXTERNAL_NUM_INTERRUPTS ];
26
26
static uint32_t nints ; // Stores total number of attached interrupts
27
27
28
- // LOW 0
29
- // HIGH 1
30
- #define CHANGE 2
31
- #define FALLING 3
32
- #define RISING 4
33
-
34
28
/* Configure I/O interrupt sources */
35
29
static void __initialize ()
36
30
{
@@ -61,7 +55,7 @@ static void __initialize()
61
55
* \brief Specifies a named Interrupt Service Routine (ISR) to call when an interrupt occurs.
62
56
* Replaces any previous function that was attached to the interrupt.
63
57
*/
64
- void attachInterrupt (pin_size_t pin , voidFuncPtr callback , InterruptMode mode )
58
+ void attachInterrupt (pin_size_t pin , voidFuncPtr callback , PinStatus mode )
65
59
{
66
60
static int enabled = 0 ;
67
61
uint32_t config ;
Original file line number Diff line number Diff line change 20
20
#ifndef TwoWire_h
21
21
#define TwoWire_h
22
22
23
- #include " Stream .h"
23
+ #include " api/HardwareI2C .h"
24
24
#include " variant.h"
25
-
26
25
#include " SERCOM.h"
27
- #include " RingBuffer.h"
28
26
29
27
// WIRE_HAS_END means Wire has end()
30
28
#define WIRE_HAS_END 1
31
29
32
- class TwoWire : public Stream
30
+ class TwoWire : public HardwareI2C
33
31
{
34
32
public:
35
33
TwoWire (SERCOM *s, uint8_t pinSDA, uint8_t pinSCL);
Original file line number Diff line number Diff line change @@ -87,13 +87,13 @@ build.usb_manufacturer="Unknown"
87
87
# ----------------
88
88
89
89
## Compile c files
90
- recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.c.extra_flags} {build.extra_flags} {compiler.arm.cmsis.c.flags} {includes} "{source_file}" -o "{object_file}"
90
+ recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.c.extra_flags} {build.extra_flags} {compiler.arm.cmsis.c.flags} -I{build.core.path}/api/deprecated {includes} "{source_file}" -o "{object_file}"
91
91
92
92
## Compile c++ files
93
- recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {compiler.arm.cmsis.c.flags} {includes} "{source_file}" -o "{object_file}"
93
+ recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {compiler.arm.cmsis.c.flags} -I{build.core.path}/api/deprecated {includes} "{source_file}" -o "{object_file}"
94
94
95
95
## Compile S files
96
- recipe.S.o.pattern="{compiler.path}{compiler.S.cmd}" {compiler.S.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {compiler.arm.cmsis.c.flags} {includes} "{source_file}" -o "{object_file}"
96
+ recipe.S.o.pattern="{compiler.path}{compiler.S.cmd}" {compiler.S.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {compiler.arm.cmsis.c.flags} -I{build.core.path}/api/deprecated {includes} "{source_file}" -o "{object_file}"
97
97
98
98
## Create archives
99
99
# archive_file_path is needed for backwards compatibility with IDE 1.6.5 or older, IDE 1.6.6 or newer overrides this value
You can’t perform that action at this time.
0 commit comments