hathach
b9de0dd52d
fix various warnings
2021-05-25 21:29:08 +07:00
hathach
ce81b830a1
ready for release 0.21.0
2020-08-31 16:49:09 +07:00
hathach
ddd3358389
revert checking for inISR before logging
2020-08-27 16:02:39 +07:00
hathach
786ceae1f1
change token from const var to enum
2020-08-27 15:45:16 +07:00
hathach
13a01fe7a8
change token type from uintptr_t to uint32_t
2020-08-27 15:41:47 +07:00
hathach
0205da555a
remove the local static for seq values for tone
2020-08-25 23:57:19 +07:00
hathach
ac9063395d
more clean up
2020-08-25 18:09:31 +07:00
hathach
cca5adaa51
start to clean up tone
2020-08-25 16:46:26 +07:00
Henry Gabryjelski
eb60126903
not constexpr enough for C++14?
2020-08-24 13:13:25 -07:00
Henry Gabryjelski
cda1dba540
More constexpr
2020-08-24 11:26:50 -07:00
Henry Gabryjelski
1097f1a583
inline != __attribute__((always_inline))
2020-08-24 10:55:41 -07:00
Henry Gabryjelski
b7fc0a2b3d
Remove semaphore from tone()
2020-08-24 10:52:32 -07:00
Henry Gabryjelski
53819e5091
More removal of noexcept markings
2020-08-12 10:35:35 -07:00
Henry Gabryjelski
5f3d871d91
@hathach says internal classes should not guard against API misuse ... I disagree but he is the gatekeeper
2020-08-11 23:42:17 -07:00
Henry Gabryjelski
a7ffaaadbd
@hathach doesn't like static_assert
2020-08-11 23:35:59 -07:00
Henry Gabryjelski
1ba1299061
change casing of class functions per @hathach request
2020-08-11 23:05:08 -07:00
Henry Gabryjelski
4555fc1b0a
Rename struct per @hathach request
2020-08-11 23:00:37 -07:00
Henry Gabryjelski
fdf405c1ba
@hathach believes having noexcept means code might throw exceptions. As it has zero effect in this codebase, I am removing to avoid arguments.
2020-08-11 22:57:50 -07:00
Henry Gabryjelski
a566c693d9
With no ISR, use Mutex (not Binary) semaphore
2020-08-11 20:20:49 -07:00
Henry Gabryjelski
68a9302a79
Fix off-by-one typo
2020-08-08 11:20:36 -07:00
Henry Gabryjelski
e200ee88de
Remove deeper debug level 3
2020-08-03 02:32:08 -07:00
Henry Gabryjelski
29843dacb0
Redefine tone() without ISR
...
Other minor changes include:
* Enable RTT option for output
(requires platform.local.txt or boards.local.txt)
* Allow setting compiler optimization
(requires platform.local.txt or boards.local.txt)
2020-08-03 01:43:25 -07:00
Henry Gabryjelski
43da1739a3
Update noTone() to be safe to call from ISR
2020-07-28 23:05:13 -07:00
Henry Gabryjelski
a2a43719c5
Remove static assertion
...
Per @hathach request
https://github.com/adafruit/Adafruit_nRF52_Arduino/pull/496/files/d7e005cc99d4db22a3e6940279e5a59b995f247e?file-filters%5B%5D=.c&file-filters%5B%5D=.cpp#r452765910
2020-07-28 23:05:13 -07:00
Henry Gabryjelski
be9927e497
Simplify by auto-detecting when called from ISR
...
Thanks to @hathach for recommendation:
https://github.com/adafruit/Adafruit_nRF52_Arduino/pull/496#discussion_r452712103
2020-07-28 23:05:12 -07:00
Henry Gabryjelski
145167b579
tone() auto-release ownership
2020-07-28 23:05:11 -07:00
Henry Gabryjelski
0acacf67b8
Finish conversion back to uintptr_t token
2020-07-28 23:05:11 -07:00
Henry Gabryjelski
85e41afe27
remove dead code
2020-07-28 23:05:10 -07:00
Henry Gabryjelski
c190318bb9
Use const void* for ownership token
2020-07-28 23:05:10 -07:00
Henry Gabryjelski
d5dc053a34
Use HwPWM ownership abstraction
2020-07-28 23:05:10 -07:00
hathach
1f433a9a1f
fix accidence delete pwm trigger for tone #69
2019-06-19 21:54:19 +07:00
hathach
e131fba008
try to add Tone() using PWM2 for both 52832/52840
2019-06-18 17:19:19 +07:00