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

Commit eadcaf8

Browse files
authored
v1.3.1 to fix warnings in PWM examples
### Releases v1.3.1 1. Fix warnings in PWM examples
1 parent 62ebd1f commit eadcaf8

37 files changed

+94
-56
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ In this example, 16 independent ISR Timers are used, yet utilized just one Hardw
875875

876876
```
877877
Starting ISR_16_Timers_Array_Complex on PORTENTA_H7_M7
878-
Portenta_H7_TimerInterrupt v1.3.0
878+
Portenta_H7_TimerInterrupt v1.3.1
879879
[TISR] Portenta_H7_TimerInterrupt: Timer Input Freq (Hz) = 200000000
880880
[TISR] Frequency = 1000000.00 , _count = 10000
881881
Starting ITimer OK, millis() = 1111
@@ -1025,7 +1025,7 @@ The following is the sample terminal output when running example [**TimerInterru
10251025

10261026
```
10271027
Starting TimerInterruptTest on PORTENTA_H7_M7
1028-
Portenta_H7_TimerInterrupt v1.3.0
1028+
Portenta_H7_TimerInterrupt v1.3.1
10291029
[TISR] Portenta_H7_TimerInterrupt: Timer Input Freq (Hz) = 200000000
10301030
[TISR] Frequency = 1000000.00 , _count = 1000000
10311031
Starting ITimer0 OK, millis() = 1410
@@ -1051,7 +1051,7 @@ The following is the sample terminal output when running example [**Argument_Non
10511051

10521052
```
10531053
Starting Argument_None on PORTENTA_H7_M7
1054-
Portenta_H7_TimerInterrupt v1.3.0
1054+
Portenta_H7_TimerInterrupt v1.3.1
10551055
[TISR] Portenta_H7_TimerInterrupt: Timer Input Freq (Hz) = 100000000
10561056
[TISR] Frequency = 1000000.00 , _count = 1000000
10571057
Starting ITimer0 OK, millis() = 1009
@@ -1071,7 +1071,7 @@ The following is the sample terminal output when running example [Change_Interva
10711071

10721072
```
10731073
Starting Change_Interval on PORTENTA_H7_M7
1074-
Portenta_H7_TimerInterrupt v1.3.0
1074+
Portenta_H7_TimerInterrupt v1.3.1
10751075
[TISR] Portenta_H7_TimerInterrupt: Timer Input Freq (Hz) = 200000000
10761076
[TISR] Frequency = 1000000.00 , _count = 500000
10771077
Starting Timer0 OK, millis() = 1415
@@ -1111,7 +1111,7 @@ While software-based `SimpleTimer`, **programmed for 2s, is activated after 10.0
11111111

11121112
```
11131113
Starting ISR_16_Timers_Array on PORTENTA_H7_M7
1114-
Portenta_H7_TimerInterrupt v1.3.0
1114+
Portenta_H7_TimerInterrupt v1.3.1
11151115
[TISR] Portenta_H7_TimerInterrupt: Timer Input Freq (Hz) = 200000000
11161116
[TISR] Frequency = 1000000.00 , _count = 100
11171117
Starting ITimer OK, millis() = 1109
@@ -1177,7 +1177,7 @@ The following is the sample terminal output when running new example [PWM_Multi_
11771177

11781178
```
11791179
Starting PWM_Multi_Args on PORTENTA_H7_M7
1180-
Portenta_H7_TimerInterrupt v1.3.0
1180+
Portenta_H7_TimerInterrupt v1.3.1
11811181
Index = 0, Instance = 0x40010000, channel = 3, TimerIndex = 0
11821182
Index = 1, Instance = 0x40000800, channel = 1, TimerIndex = 3
11831183
Index = 2, Instance = 0x40001400, channel = 2, TimerIndex = 6

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 v1.3.1](#Releases-v131)
1516
* [Releases v1.3.0](#Releases-v130)
1617
* [Initial Releases v1.2.1](#Initial-Releases-v121)
1718

@@ -20,6 +21,10 @@
2021

2122
## Changelog
2223

24+
### Releases v1.3.1
25+
26+
1. Fix warnings in PWM examples
27+
2328
### Releases v1.3.0
2429

2530
1. Add PWM features and examples

examples/Argument_None/Argument_None.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
Based on BlynkTimer.h
2020
Author: Volodymyr Shymanskyy
2121
22-
Version: 1.3.0
22+
Version: 1.3.1
2323
2424
Version Modified By Date Comments
2525
------- ----------- ---------- -----------
2626
1.2.1 K.Hoang 15/09/2021 Initial coding for Portenta_H7
2727
1.3.0 K.Hoang 17/09/2021 Add PWM features and examples
28+
1.3.1 K.Hoang 21/09/2021 Fix warnings in PWM examples
2829
*****************************************************************************************************************************/
2930

3031
/*

examples/Change_Interval/Change_Interval.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
Based on BlynkTimer.h
2020
Author: Volodymyr Shymanskyy
2121
22-
Version: 1.3.0
22+
Version: 1.3.1
2323
2424
Version Modified By Date Comments
2525
------- ----------- ---------- -----------
2626
1.2.1 K.Hoang 15/09/2021 Initial coding for Portenta_H7
2727
1.3.0 K.Hoang 17/09/2021 Add PWM features and examples
28+
1.3.1 K.Hoang 21/09/2021 Fix warnings in PWM examples
2829
*****************************************************************************************************************************/
2930

3031
/*

examples/ISR_16_Timers_Array/ISR_16_Timers_Array.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
Based on BlynkTimer.h
2020
Author: Volodymyr Shymanskyy
2121
22-
Version: 1.3.0
22+
Version: 1.3.1
2323
2424
Version Modified By Date Comments
2525
------- ----------- ---------- -----------
2626
1.2.1 K.Hoang 15/09/2021 Initial coding for Portenta_H7
2727
1.3.0 K.Hoang 17/09/2021 Add PWM features and examples
28+
1.3.1 K.Hoang 21/09/2021 Fix warnings in PWM examples
2829
*****************************************************************************************************************************/
2930
/*
3031
Notes:

examples/ISR_16_Timers_Array_Complex/ISR_16_Timers_Array_Complex.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
Based on BlynkTimer.h
2020
Author: Volodymyr Shymanskyy
2121
22-
Version: 1.3.0
22+
Version: 1.3.1
2323
2424
Version Modified By Date Comments
2525
------- ----------- ---------- -----------
2626
1.2.1 K.Hoang 15/09/2021 Initial coding for Portenta_H7
2727
1.3.0 K.Hoang 17/09/2021 Add PWM features and examples
28+
1.3.1 K.Hoang 21/09/2021 Fix warnings in PWM examples
2829
*****************************************************************************************************************************/
2930
/*
3031
Notes:

examples/PWM/PWM_Multi/PWM_Multi.ino

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
Based on BlynkTimer.h
2020
Author: Volodymyr Shymanskyy
2121
22-
Version: 1.3.0
22+
Version: 1.3.1
2323
2424
Version Modified By Date Comments
2525
------- ----------- ---------- -----------
2626
1.2.1 K.Hoang 15/09/2021 Initial coding for Portenta_H7
2727
1.3.0 K.Hoang 17/09/2021 Add PWM features and examples
28+
1.3.1 K.Hoang 21/09/2021 Fix warnings in PWM examples
2829
*****************************************************************************************************************************/
2930
/*
3031
In cores/arduino/stm32/PeripheralPins.h => #define PinMap_PWM PinMap_TIM
@@ -170,7 +171,7 @@ TIM_TypeDef *TimerInstance[] = { TIM1, TIM4, TIM7, TIM8, TIM12, TIM13, TIM14 };
170171

171172
volatile uint32_t callbackTime[] = { 0, 0, 0, 0, 0, 0, 0 };
172173

173-
callback_function_t PeriodCallback0()
174+
void PeriodCallback0()
174175
{
175176
static bool ledON = LED_OFF;
176177

@@ -181,7 +182,7 @@ callback_function_t PeriodCallback0()
181182
ledON = !ledON;
182183
}
183184

184-
callback_function_t PeriodCallback1()
185+
void PeriodCallback1()
185186
{
186187
static bool ledON = LED_OFF;
187188

@@ -192,7 +193,7 @@ callback_function_t PeriodCallback1()
192193
ledON = !ledON;
193194
}
194195

195-
callback_function_t PeriodCallback2()
196+
void PeriodCallback2()
196197
{
197198
static bool ledON = LED_OFF;
198199

@@ -203,22 +204,22 @@ callback_function_t PeriodCallback2()
203204
ledON = !ledON;
204205
}
205206

206-
callback_function_t PeriodCallback3()
207+
void PeriodCallback3()
207208
{
208209
callbackTime[3]++;
209210
}
210211

211-
callback_function_t PeriodCallback4()
212+
void PeriodCallback4()
212213
{
213214
callbackTime[4]++;
214215
}
215216

216-
callback_function_t PeriodCallback5()
217+
void PeriodCallback5()
217218
{
218219
callbackTime[5]++;
219220
}
220221

221-
callback_function_t PeriodCallback6()
222+
void PeriodCallback6()
222223
{
223224
callbackTime[6]++;
224225
}

examples/PWM/PWM_Multi_Args/PWM_Multi_Args.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
Based on BlynkTimer.h
2020
Author: Volodymyr Shymanskyy
2121
22-
Version: 1.3.0
22+
Version: 1.3.1
2323
2424
Version Modified By Date Comments
2525
------- ----------- ---------- -----------
2626
1.2.1 K.Hoang 15/09/2021 Initial coding for Portenta_H7
2727
1.3.0 K.Hoang 17/09/2021 Add PWM features and examples
28+
1.3.1 K.Hoang 21/09/2021 Fix warnings in PWM examples
2829
*****************************************************************************************************************************/
2930

3031
/*

examples/SwitchDebounce/SwitchDebounce.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
Based on BlynkTimer.h
2020
Author: Volodymyr Shymanskyy
2121
22-
Version: 1.3.0
22+
Version: 1.3.1
2323
2424
Version Modified By Date Comments
2525
------- ----------- ---------- -----------
2626
1.2.1 K.Hoang 15/09/2021 Initial coding for Portenta_H7
2727
1.3.0 K.Hoang 17/09/2021 Add PWM features and examples
28+
1.3.1 K.Hoang 21/09/2021 Fix warnings in PWM examples
2829
*****************************************************************************************************************************/
2930
/*
3031
Notes:

examples/TimerInterruptLEDDemo/TimerInterruptLEDDemo.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919
Based on BlynkTimer.h
2020
Author: Volodymyr Shymanskyy
2121
22-
Version: 1.3.0
22+
Version: 1.3.1
2323
2424
Version Modified By Date Comments
2525
------- ----------- ---------- -----------
2626
1.2.1 K.Hoang 15/09/2021 Initial coding for Portenta_H7
2727
1.3.0 K.Hoang 17/09/2021 Add PWM features and examples
28+
1.3.1 K.Hoang 21/09/2021 Fix warnings in PWM examples
2829
*****************************************************************************************************************************/
2930

3031
/*

0 commit comments

Comments
 (0)