|
11 | 11 | The accuracy is nearly perfect compared to software timers. The most important feature is they're ISR-based timers
|
12 | 12 | Therefore, their executions are not blocked by bad-behaving functions / tasks.
|
13 | 13 | This important feature is absolutely necessary for mission-critical tasks.
|
14 |
| -
|
15 |
| - Based on SimpleTimer - A timer library for Arduino. |
16 |
| - Author: mromani@ottotecnica.com |
17 |
| - Copyright (c) 2010 OTTOTECNICA Italy |
18 |
| -
|
19 |
| - Based on BlynkTimer.h |
20 |
| - Author: Volodymyr Shymanskyy |
21 |
| -
|
22 |
| - Version: 1.3.0 |
23 |
| -
|
24 |
| - Version Modified By Date Comments |
25 |
| - ------- ----------- ---------- ----------- |
26 |
| - 1.0.0 K Hoang 02/11/2020 Initial coding |
27 |
| - 1.0.1 K Hoang 06/11/2020 Add complicated example ISR_16_Timers_Array using all 16 independent ISR Timers. |
28 |
| - 1.0.2 K Hoang 24/11/2020 Add complicated example ISR_16_Timers_Array_Complex and optimize examples |
29 |
| - 1.1.1 K.Hoang 06/12/2020 Add Change_Interval example. Bump up version to sync with other TimerInterrupt Libraries |
30 |
| - 1.2.0 K.Hoang 11/01/2021 Add better debug feature. Optimize code and examples to reduce RAM usage |
31 |
| - 1.3.0 K.Hoang 13/08/2021 Add support to Adafruit nRF52 core v0.22.0+ |
32 | 14 | *****************************************************************************************************************************/
|
33 | 15 | /*
|
34 | 16 | Notes:
|
|
53 | 35 | #if !(defined(NRF52840_FEATHER) || defined(NRF52832_FEATHER) || defined(NRF52_SERIES) || defined(ARDUINO_NRF52_ADAFRUIT) || \
|
54 | 36 | defined(NRF52840_FEATHER_SENSE) || defined(NRF52840_ITSYBITSY) || defined(NRF52840_CIRCUITPLAY) || \
|
55 | 37 | defined(NRF52840_CLUE) || defined(NRF52840_METRO) || defined(NRF52840_PCA10056) || defined(PARTICLE_XENON) || \
|
56 |
| - defined(MDBT50Q_RX) || defined(NINA_B302_ublox) || defined(NINA_B112_ublox) ) |
57 |
| - #error This code is designed to run on nRF52 platform! Please check your Tools->Board setting. |
| 38 | + defined(NRF52840_LED_GLASSES) || defined(MDBT50Q_RX) || defined(NINA_B302_ublox) || defined(NINA_B112_ublox) ) |
| 39 | + #error This code is designed to run on Adafruit nRF52 platform! Please check your Tools->Board setting. |
58 | 40 | #endif
|
59 | 41 |
|
60 | 42 | // These define's must be placed at the beginning before #include "NRF52TimerInterrupt.h"
|
61 | 43 | // _TIMERINTERRUPT_LOGLEVEL_ from 0 to 4
|
62 | 44 | // Don't define _TIMERINTERRUPT_LOGLEVEL_ > 0. Only for special ISR debugging only. Can hang the system.
|
63 | 45 | // Don't define TIMER_INTERRUPT_DEBUG > 2. Only for special ISR debugging only. Can hang the system.
|
64 | 46 | #define TIMER_INTERRUPT_DEBUG 0
|
65 |
| -#define _TIMERINTERRUPT_LOGLEVEL_ 0 |
| 47 | +#define _TIMERINTERRUPT_LOGLEVEL_ 3 |
66 | 48 |
|
| 49 | +// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error |
67 | 50 | #include "NRF52TimerInterrupt.h"
|
| 51 | + |
| 52 | +// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error |
68 | 53 | #include "NRF52_ISR_Timer.h"
|
69 | 54 |
|
70 | 55 | #include <SimpleTimer.h> // https://github.com/schinken/SimpleTimer
|
|
0 commit comments