File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 133133#if defined(ARDUINO_ARCH_NRF52)
134134#include " Adafruit_TinyUSB.h"
135135#endif
136- // #if defined(ARDUINO_ARCH_SAM)
137- // #include <DueTimer.h>
138- // DueTimer sampleTimer = Timer.getAvailable();
139- // #endif
140136#include < Arduino.h>
141137#include " utility/PulseSensor.h"
142138#if USE_SERIAL
Original file line number Diff line number Diff line change 7373#define DISABLE_PULSE_SENSOR_INTERRUPTS cli()
7474#define ENABLE_PULSE_SENSOR_INTERRUPTS sei()
7575#endif
76-
77- // #if defined (ARDUINO_ARCH_NRF52840)
78- // #define TIMER1_INTERVAL_US 2000 // critical fine tuning here!
79- // NRF52Timer nRF52_Timer(NRF_TIMER_3);
80- // #endif
81-
76+
8277// SAVED FOR FUTURE SUPPORT OF TEENSY INTERRUPTS
8378#if defined(__MK66FX1M0__ )|| (__MK64FX512__ )|| (__MK20DX256__ )|| (__MK20DX128__ )
8479// #include <FlexiTimer2.h>
@@ -254,14 +249,6 @@ boolean PulseSensorPlaygroundSetupInterrupt(){
254249 result = true;
255250 #endif
256251
257- // #if defined(ARDUINO_ARCH_RENESAS)
258- // result = true;
259- // #endif
260-
261- // #if defined(ARDUINO_ARCH_SAM)
262- // result = true;
263- // #endif
264-
265252#endif // USE_ARDUINO_INTERRUPTS
266253
267254 return result ;
@@ -496,13 +483,6 @@ return result; // unknown or unsupported platform.
496483 // Interrupts not supported yet for Teensy
497484 #endif
498485
499- // #if defined(ARDUINO_ARCH_RENESAS)
500- // void sampleTimerISR(timer_callback_args_t __attribute((unused)) *p_args)
501- // {
502- // PulseSensorPlayground::OurThis->onSampleTime();
503- // }
504- // #endif
505-
506486
507487#endif // USE_ARDUINO_INTERRUPTS
508488
You can’t perform that action at this time.
0 commit comments