Commit Graph
18 Commits
Author SHA1 Message Date
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