Skip to content
This repository was archived by the owner on Jan 29, 2023. It is now read-only.

Commit 908daf3

Browse files
authored
v2.0.2 add support to new Adafruit boards
### Releases v2.0.2 1. Add support to new Adafruit boards such as QTPY_ESP32S2, FEATHER_ESP32S3_NOPSRAM and QTPY_ESP32S3_NOPSRAM
1 parent 668316d commit 908daf3

11 files changed

+48
-32
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p
1515
Please ensure to specify the following:
1616

1717
* Arduino IDE version (e.g. 1.8.19) or Platform.io version
18-
* `ESP32` Core Version (e.g. ESP32 core v2.0.2)
19-
* `ESP32` Board type (e.g. ESP32_DEV Module, ESP32_S2_DEV, ESP32_S3_DEV, ESP32_C3_DEV, etc.)
18+
* `ESP32` Core Version (e.g. ESP32 core v2.0.3)
19+
* `ESP32` Board type (e.g. ESP32_DEV Module, etc.)
20+
* `ESP32-S2` Board type (e.g. ESP32S2_DEV Module, ESP32_S2_Saola, etc.)
21+
* `ESP32_S3` Board type (e.g. ESP32S3_DEV, ESP32_S3_BOX, UM TINYS3, UM PROS3, UM FEATHERS3, etc.)
22+
* `ESP32-C3` Board type (e.g. ESP32C3_DEV Module, etc.)
2023
* Contextual information (e.g. what you were trying to achieve)
2124
* Simplest possible steps to reproduce
2225
* Anything that might be relevant in your opinion, such as:
@@ -28,10 +31,10 @@ Please ensure to specify the following:
2831

2932
```
3033
Arduino IDE version: 1.8.19
31-
ESP32 Core Version 2.0.2
32-
ESP32S2_DEV Module
34+
ESP32 core v2.0.3
35+
ESP32S3_DEV Module
3336
OS: Ubuntu 20.04 LTS
34-
Linux xy-Inspiron-3593 5.13.0-35-generic #40~20.04.1-Ubuntu SMP Mon Mar 7 09:18:32 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
37+
Linux xy-Inspiron-3593 5.13.0-44-generic #49~20.04.1-Ubuntu SMP Wed May 18 18:44:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
3538
3639
Context:
3740
I encountered a crash while using ESP32TimerInterrupt.
@@ -52,3 +55,4 @@ There are usually some outstanding feature requests in the [existing issues list
5255
### Sending Pull Requests
5356

5457
Pull Requests with changes and fixes are also welcome!
58+

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ The catch is **your function is now part of an ISR (Interrupt Service Routine),
119119
### Currently supported Boards
120120

121121
1. ESP32 boards, such as `ESP32_DEV`, etc.
122-
2. ESP32_S2-based boards, such as `ESP32S2_DEV`, `ESP32_S2 Saola`, etc.
123-
3. ESP32_C3-based boards, such as `ESP32C3_DEV`, etc. **New**
124-
4. ESP32_S3 (ESP32S3_DEV, ESP32_S3_BOX, UM TINYS3, UM PROS3, UM FEATHERS3, etc.) **New**
122+
2. ESP32S2-based boards, such as `ESP32S2_DEV`, `ESP32_S2 Saola`, Adafruit QTPY_ESP32S2, etc.
123+
3. ESP32C3-based boards, such as `ESP32C3_DEV`, etc. **New**
124+
4. ESP32_S3 (ESP32S3_DEV, ESP32_S3_BOX, UM TINYS3, UM PROS3, UM FEATHERS3, FEATHER_ESP32S3_NOPSRAM and QTPY_ESP32S3_NOPSRAM, etc.) **New**
125125

126126
---
127127

@@ -138,7 +138,7 @@ The catch is **your function is now part of an ISR (Interrupt Service Routine),
138138
## Prerequisites
139139

140140
1. [`Arduino IDE 1.8.19+` for Arduino](https://github.com/arduino/Arduino). [![GitHub release](https://img.shields.io/github/release/arduino/Arduino.svg)](https://github.com/arduino/Arduino/releases/latest)
141-
2. [`ESP32 Core 2.0.2+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [![Latest release](https://img.shields.io/github/release/espressif/arduino-esp32.svg)](https://github.com/espressif/arduino-esp32/releases/latest/).
141+
2. [`ESP32 Core 2.0.3+`](https://github.com/espressif/arduino-esp32) for ESP32-based boards. [![Latest release](https://img.shields.io/github/release/espressif/arduino-esp32.svg)](https://github.com/espressif/arduino-esp32/releases/latest/).
142142
3. [`SimpleTimer library`](https://github.com/jfturcot/SimpleTimer) to use with some examples.
143143

144144
---
@@ -333,7 +333,7 @@ The following is the sample terminal output when running example [TimerInterrupt
333333

334334
```
335335
Starting TimerInterruptTest on ESP32C3_DEV
336-
ESP32TimerInterrupt v2.0.1
336+
ESP32TimerInterrupt v2.0.2
337337
CPU Frequency = 160 MHz
338338
[TISR] ESP32_TimerInterrupt: _timerNo = 0 , _fre = 1000000
339339
[TISR] TIMER_BASE_CLK = 80000000 , TIMER_DIVIDER = 80
@@ -368,7 +368,7 @@ The following is the sample terminal output when running example [Change_Interva
368368

369369
```
370370
Starting Change_Interval on ESP32C3_DEV
371-
ESP32TimerInterrupt v2.0.1
371+
ESP32TimerInterrupt v2.0.2
372372
CPU Frequency = 160 MHz
373373
Starting ITimer0 OK, millis() = 293
374374
Starting ITimer1 OK, millis() = 303
@@ -403,7 +403,7 @@ The following is the sample terminal output when running example [Argument_None]
403403

404404
```
405405
Starting Argument_None on ESP32S3_DEV
406-
ESP32TimerInterrupt v2.0.1
406+
ESP32TimerInterrupt v2.0.2
407407
CPU Frequency = 240 MHz
408408
[TISR] ESP32_S3_TimerInterrupt: _timerNo = 0 , _fre = 1000000
409409
[TISR] TIMER_BASE_CLK = 80000000 , TIMER_DIVIDER = 80
@@ -427,7 +427,7 @@ The following is the sample terminal output when running example [ISR_16_Timers_
427427

428428
```
429429
Starting ISR_16_Timers_Array_Complex on ESP32S3_DEV
430-
ESP32TimerInterrupt v2.0.1
430+
ESP32TimerInterrupt v2.0.2
431431
CPU Frequency = 240 MHz
432432
[TISR] ESP32_S3_TimerInterrupt: _timerNo = 1 , _fre = 1000000
433433
[TISR] TIMER_BASE_CLK = 80000000 , TIMER_DIVIDER = 80
@@ -601,7 +601,7 @@ The following is the sample terminal output when running example [ISR_16_Timers_
601601

602602
```
603603
Starting ISR_16_Timers_Array on ESP32S3_DEV
604-
ESP32TimerInterrupt v2.0.1
604+
ESP32TimerInterrupt v2.0.2
605605
CPU Frequency = 240 MHz
606606
[TISR] ESP32_S3_TimerInterrupt: _timerNo = 1 , _fre = 1000000
607607
[TISR] TIMER_BASE_CLK = 80000000 , TIMER_DIVIDER = 80
@@ -624,7 +624,7 @@ The following is the sample terminal output when running example [ISR_16_Timers_
624624

625625
```
626626
Starting ISR_16_Timers_Array_Complex on ESP32C3_DEV
627-
ESP32TimerInterrupt v2.0.1
627+
ESP32TimerInterrupt v2.0.2
628628
CPU Frequency = 160 MHz
629629
[TISR] ESP32_TimerInterrupt: _timerNo = 1 , _fre = 1000000
630630
[TISR] TIMER_BASE_CLK = 80000000 , TIMER_DIVIDER = 80

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
## Table of Contents
1313

1414
* [Changelog](#changelog)
15+
* [Releases v2.0.2](#releases-v202)
1516
* [Releases v2.0.1](#releases-v201)
1617
* [Releases v2.0.0](#releases-v200)
1718
* [Releases v1.5.0](#releases-v150)
@@ -29,6 +30,10 @@
2930

3031
## Changelog
3132

33+
### Releases v2.0.2
34+
35+
1. Add support to new Adafruit boards such as QTPY_ESP32S2, FEATHER_ESP32S3_NOPSRAM and QTPY_ESP32S3_NOPSRAM
36+
3237
### Releases v2.0.1
3338

3439
1. Add example [ISR_16_Timers_Array_Complex_OneShot](examples/ISR_16_Timers_Array_Complex_OneShot) to demo how to use `one-shot ISR-based timer` in complex case

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ESP32TimerInterrupt",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"keywords": "timing, device, control, timer, interrupt, timer-interrupt, hardware, isr, isr-based, hardware-timer, isr-timer, isr-based-timer, mission-critical, accuracy, precise, non-blocking, esp32, esp32-s2, esp32-c3, esp32-s3",
55
"description": "This library enables you to use Interrupt from Hardware Timers on ESP32-based (including ESP32_S2, ESP32_S3 and ESP32_C3) boards. It now supports 16 ISR-based timers, while consuming only 1 Hardware Timer. Timers interval is very long (ulong millisecs). The most important feature is they're ISR-based timers. Therefore, their executions are not blocked by bad-behaving functions or tasks. This important feature is absolutely necessary for mission-critical tasks. These hardware timers, using interrupt, still work even if other functions are blocking. Moreover, they are much more precise (certainly depending on clock frequency accuracy) than other software timers using millis() or micros(). That's necessary if you need to measure some data requiring better accuracy.",
66
"authors":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ESP32TimerInterrupt
2-
version=2.0.1
2+
version=2.0.2
33
author=Khoi Hoang <khoih.prog@gmail.com>
44
maintainer=Khoi Hoang <khoih.prog@gmail.com>
55
sentence=This library enables you to use Interrupt from Hardware Timers on ESP32-based (including ESP32_S2, ESP32_S3 and ESP32_C3) boards

src/ESP32TimerInterrupt.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
Based on BlynkTimer.h
3030
Author: Volodymyr Shymanskyy
3131
32-
Version: 2.0.1
32+
Version: 2.0.2
3333
3434
Version Modified By Date Comments
3535
------- ----------- ---------- -----------
@@ -46,6 +46,7 @@
4646
1.5.0 K.Hoang 18/01/2022 Fix `multiple-definitions` linker error
4747
2.0.0 K Hoang 13/02/2022 Add support to new ESP32-S3. Restructure library.
4848
2.0.1 K Hoang 13/03/2022 Add example to demo how to use one-shot ISR-based timers. Optimize code
49+
2.0.2 K Hoang 16/06/2022 Add support to new Adafruit boards
4950
*****************************************************************************************************************************/
5051

5152
#pragma once

src/ESP32TimerInterrupt.hpp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
Based on BlynkTimer.h
3030
Author: Volodymyr Shymanskyy
3131
32-
Version: 2.0.1
32+
Version: 2.0.2
3333
3434
Version Modified By Date Comments
3535
------- ----------- ---------- -----------
@@ -46,6 +46,7 @@
4646
1.5.0 K.Hoang 18/01/2022 Fix `multiple-definitions` linker error
4747
2.0.0 K Hoang 13/02/2022 Add support to new ESP32-S3. Restructure library.
4848
2.0.1 K Hoang 13/03/2022 Add example to demo how to use one-shot ISR-based timers. Optimize code
49+
2.0.2 K Hoang 16/06/2022 Add support to new Adafruit boards
4950
*****************************************************************************************************************************/
5051

5152
#pragma once
@@ -54,11 +55,12 @@
5455
#define ESP32TIMERINTERRUPT_HPP
5556

5657
#if ( ARDUINO_ESP32S2_DEV || ARDUINO_FEATHERS2 || ARDUINO_ESP32S2_THING_PLUS || ARDUINO_MICROS2 || \
57-
ARDUINO_METRO_ESP32S2 || ARDUINO_MAGTAG29_ESP32S2 || ARDUINO_FUNHOUSE_ESP32S2 || \
58-
ARDUINO_ADAFRUIT_FEATHER_ESP32S2_NOPSRAM )
58+
ARDUINO_METRO_ESP32S2 || ARDUINO_MAGTAG29_ESP32S2 || ARDUINO_FUNHOUSE_ESP32S2 || \
59+
ARDUINO_ADAFRUIT_FEATHER_ESP32S2_NOPSRAM || ARDUINO_ADAFRUIT_QTPY_ESP32S2)
5960
#define USING_ESP32_S2_TIMERINTERRUPT true
6061
#elif ( defined(ARDUINO_ESP32S3_DEV) || defined(ARDUINO_ESP32_S3_BOX) || defined(ARDUINO_TINYS3) || \
61-
defined(ARDUINO_PROS3) || defined(ARDUINO_FEATHERS3) )
62+
defined(ARDUINO_PROS3) || defined(ARDUINO_FEATHERS3) || defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S3_NOPSRAM) || \
63+
defined(ARDUINO_ADAFRUIT_QTPY_ESP32S3_NOPSRAM))
6264
#define USING_ESP32_S3_TIMERINTERRUPT true
6365
#elif ( ARDUINO_ESP32C3_DEV )
6466
#define USING_ESP32_C3_TIMERINTERRUPT true
@@ -69,13 +71,13 @@
6971
#endif
7072

7173
#ifndef ESP32_TIMER_INTERRUPT_VERSION
72-
#define ESP32_TIMER_INTERRUPT_VERSION "ESP32TimerInterrupt v2.0.1"
74+
#define ESP32_TIMER_INTERRUPT_VERSION "ESP32TimerInterrupt v2.0.2"
7375

7476
#define ESP32_TIMER_INTERRUPT_VERSION_MAJOR 2
7577
#define ESP32_TIMER_INTERRUPT_VERSION_MINOR 0
76-
#define ESP32_TIMER_INTERRUPT_VERSION_PATCH 1
78+
#define ESP32_TIMER_INTERRUPT_VERSION_PATCH 2
7779

78-
#define ESP32_TIMER_INTERRUPT_VERSION_INT 2000001
80+
#define ESP32_TIMER_INTERRUPT_VERSION_INT 2000002
7981
#endif
8082

8183
#ifndef TIMER_INTERRUPT_DEBUG

src/ESP32_ISR_Timer-Impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
Based on BlynkTimer.h
2929
Author: Volodymyr Shymanskyy
3030
31-
Version: 2.0.1
31+
Version: 2.0.2
3232
3333
Version Modified By Date Comments
3434
------- ----------- ---------- -----------
@@ -45,6 +45,7 @@
4545
1.5.0 K.Hoang 18/01/2022 Fix `multiple-definitions` linker error
4646
2.0.0 K Hoang 13/02/2022 Add support to new ESP32-S3. Restructure library.
4747
2.0.1 K Hoang 13/03/2022 Add example to demo how to use one-shot ISR-based timers. Optimize code
48+
2.0.2 K Hoang 16/06/2022 Add support to new Adafruit boards
4849
*****************************************************************************************************************************/
4950

5051
#pragma once

src/ESP32_ISR_Timer.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
Based on BlynkTimer.h
2929
Author: Volodymyr Shymanskyy
3030
31-
Version: 2.0.1
31+
Version: 2.0.2
3232
3333
Version Modified By Date Comments
3434
------- ----------- ---------- -----------
@@ -45,6 +45,7 @@
4545
1.5.0 K.Hoang 18/01/2022 Fix `multiple-definitions` linker error
4646
2.0.0 K Hoang 13/02/2022 Add support to new ESP32-S3. Restructure library.
4747
2.0.1 K Hoang 13/03/2022 Add example to demo how to use one-shot ISR-based timers. Optimize code
48+
2.0.2 K Hoang 16/06/2022 Add support to new Adafruit boards
4849
*****************************************************************************************************************************/
4950

5051
#pragma once

src/ESP32_ISR_Timer.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
Based on BlynkTimer.h
2929
Author: Volodymyr Shymanskyy
3030
31-
Version: 2.0.1
31+
Version: 2.0.2
3232
3333
Version Modified By Date Comments
3434
------- ----------- ---------- -----------
@@ -45,6 +45,7 @@
4545
1.5.0 K.Hoang 18/01/2022 Fix `multiple-definitions` linker error
4646
2.0.0 K Hoang 13/02/2022 Add support to new ESP32-S3. Restructure library.
4747
2.0.1 K Hoang 13/03/2022 Add example to demo how to use one-shot ISR-based timers. Optimize code
48+
2.0.2 K Hoang 16/06/2022 Add support to new Adafruit boards
4849
*****************************************************************************************************************************/
4950

5051
#pragma once
@@ -57,13 +58,13 @@
5758
#endif
5859

5960
#ifndef ESP32_TIMER_INTERRUPT_VERSION
60-
#define ESP32_TIMER_INTERRUPT_VERSION "ESP32TimerInterrupt v2.0.1"
61+
#define ESP32_TIMER_INTERRUPT_VERSION "ESP32TimerInterrupt v2.0.2"
6162

6263
#define ESP32_TIMER_INTERRUPT_VERSION_MAJOR 2
6364
#define ESP32_TIMER_INTERRUPT_VERSION_MINOR 0
64-
#define ESP32_TIMER_INTERRUPT_VERSION_PATCH 1
65+
#define ESP32_TIMER_INTERRUPT_VERSION_PATCH 2
6566

66-
#define ESP32_TIMER_INTERRUPT_VERSION_INT 2000001
67+
#define ESP32_TIMER_INTERRUPT_VERSION_INT 2000002
6768
#endif
6869

6970
#include "TimerInterrupt_Generic_Debug.h"

0 commit comments

Comments
 (0)