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

Commit 1820ac7

Browse files
authored
v1.2.0 to fix multiple-definitions linker error
### Releases v1.2.0 1. Fix `multiple-definitions` linker error. Drop `src_cpp` and `src_h` directories 2. DutyCycle to be optionally updated at the end current PWM period instead of immediately. Check [DutyCycle to be updated at the end current PWM period #2](khoih-prog/ESP8266_PWM#2) 3. Add examples [multiFileProject](examples/multiFileProject) to demo for multiple-file project 4. Improve accuracy by using `double`, instead of `uint32_t` for `dutycycle`, `period`. Check [Change Duty Cycle #1](khoih-prog/ESP8266_PWM#1 (comment)) 5. Optimize library code by using `reference-passing` instead of `value-passing` 6. Update examples accordingly
1 parent 486a8cd commit 1820ac7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

+17
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,23 @@
5454
---
5555
---
5656

57+
### Important Change from v1.2.0
58+
59+
Please have a look at [HOWTO Fix `Multiple Definitions` Linker Error](#howto-fix-multiple-definitions-linker-error)
60+
61+
As more complex calculation and check inside ISR are introduced from v1.2.0, there are consequences as follows
62+
63+
- using min 30uS and max 8 PWM channels
64+
65+
```
66+
// Don't change these numbers to make higher Timer freq. System can hang
67+
#define HW_TIMER_INTERVAL_US 30L
68+
#define HW_TIMER_INTERVAL_FREQ 33333L
69+
```
70+
71+
You certainly can modify to use better values according to your board and use-case, just remember to test and reverse to conservative values if crash happens.
72+
73+
5774
### Why do we need this [SAMDUE_Slow_PWM library](https://github.com/khoih-prog/SAMDUE_Slow_PWM)
5875

5976
### Features

0 commit comments

Comments
 (0)