hathach
ac9063395d
more clean up
2020-08-25 18:09:31 +07:00
hathach
1f2b65bd45
disable PWM ownership within ISR()
...
takeOwnership / releaseOwnership must be called in thread-context
2020-08-25 18:00:54 +07:00
hathach
c3f8e34790
refactor hardware pwm
2020-08-25 17:50:08 +07:00
hathach
cca5adaa51
start to clean up tone
2020-08-25 16:46:26 +07:00
hathach
019b1c248e
servo clean up
2020-08-25 11:49:45 +07:00
hathach
947d8bb6f7
clean up pwn and analog
...
replace built-in atomic with freeRTOS critical functions
2020-08-25 10:06:43 +07:00
Ha Thach
7993737b59
Merge pull request #560 from henrygab/PWM_Cleanup1
...
Minor cleanup
2020-08-25 07:54:05 +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
Ha Thach
3d7ead802a
Merge pull request #496 from henrygab/PWM_Conflicts
...
Opt-in PWM conflict avoidance
2020-08-24 15:25:49 +07:00
Ha Thach
11142b5cb6
Merge pull request #551 from adafruit/fix-micros
...
micro() use DWT cyclecount if enabled else use rtos tick
2020-08-21 00:26:59 +07:00
hathach
9a960037bb
correct micro ticks
2020-08-20 23:15:40 +07:00
Ha Thach
b0311d15e0
Merge branch 'master' into fix-micros
2020-08-20 22:25:35 +07:00
Ha Thach
6c66cd13cf
Merge pull request #558 from kevinfrei/resume-task
...
Add resumeLoop functionality
2020-08-18 10:52:15 +07:00
Kevin Frei
147c8246ac
Removed the declaration for the unneeded function.
2020-08-17 09:54:42 -07:00
Kevin Frei
0a656410be
No need for the separate ISR routine: just check
2020-08-17 09:47:54 -07:00
Kevin Frei
e51b6f4808
Added resumeLoop functionality
2020-08-14 12:45:51 -07:00
Ha Thach
3951aaab69
Merge pull request #536 from thaanstad/feature/I2C_setPins
...
Added I2C pin configuration
2020-08-14 11:48:42 +07:00
Trevor
304e29d54a
set pins fixed tab spacing
...
Second try at spacing format for I2C set pins
2020-08-13 19:49:14 -06:00
Trevor
4c593ed216
Revised Wire library to have I2C setPins
...
updated with hathach requested variable naming and spacing
2020-08-13 19:46:43 -06:00
Ha Thach
b35674fca9
Merge pull request #555 from Nenik/master
...
Power fixes
2020-08-13 13:04:28 +07:00
Petr Nejedly
2970c50775
Nenik: Fix FPU-caused power consumption issue, related to #165
...
Apply the workaround from the Errata 87 of nRF52832
See https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_87.html?cp=4_2_1_0_1_24
2020-08-12 22:04:37 -07:00
Petr Nejedly
3ada760cef
Nenik: Re-enable SD specific sleep path, related to #165
...
When the SoftDevice is active (e.g. as soon as you call Bluefruit.begin()),
standby by __WFE seems to keep external Xtal oscillator running
(at least on nRF52832), increasing the standby power consumption
by 500-800uA. The SD-enabled path was apparently disabled mistakenly
by Nordic, see Nordic post for reference:
https://devzone.nordicsemi.com/f/nordic-q-a/35073/high-power-consumption-of-softdevice/136048#136048
2020-08-12 22:04:30 -07:00
Petr Nejedly
a5afbec143
Nenik: Fix scheduling at the end of delay(), #537
...
See https://devzone.nordicsemi.com/f/nordic-q-a/63828/vtaskdelay-on-nrf52-freertos-port-wastes-cpu-power
for reference
2020-08-12 22:04:24 -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
02045e3b30
Poe-tay-toe, poe-tah-toe
2020-08-11 22:35:19 -07:00
Henry Gabryjelski
e99b5ea40e
Use C++11 atomic
2020-08-11 22:24:37 -07:00
Henry Gabryjelski
a566c693d9
With no ISR, use Mutex (not Binary) semaphore
2020-08-11 20:20:49 -07:00
Henry Gabryjelski
2019117295
Merge branch 'PWM_Conflicts' of https://github.com/henrygab/Adafruit_nRF52_Arduino into PWM_Conflicts
2020-08-08 11:20:44 -07:00
Henry Gabryjelski
68a9302a79
Fix off-by-one typo
2020-08-08 11:20:36 -07:00
Henry Gabryjelski
db5e0d66ef
Merge branch 'master' into PWM_Conflicts
2020-08-07 08:44:36 -07:00
hathach
ccd2fe3ca3
micro() use DWT cyclecount if enabled else use rtos tick
...
DWT must be previously enabled by user sketch with dwt_enable()
2020-08-05 16:46:16 +07:00
Ha Thach
27754636c0
Merge pull request #550 from adafruit/fix-warnings
...
fix warnings
2020-08-04 18:18:43 +07:00
hathach
c25d93268a
fix warnings
2020-08-04 16:34:09 +07:00
Ha Thach
782ab61b82
Merge pull request #546 from adafruit/fix-usbpower-racing
...
fix power usbready not handled if bluefruit begin() is called fast enough
2020-08-04 16:10:44 +07:00
hathach
24f39073da
update tinyusb core to commit c36ecdaf54aaa88cb678f05ea973d6795f2d6cae
2020-08-04 14:52:45 +07:00
Ha Thach
3a8c4383ff
Merge pull request #549 from adafruit/delay-few-ms-touch1200
...
a few delay before enter dfu by touch1200
2020-08-04 00:27:30 +07:00
hathach
b54bcf3df6
a few delay before enter dfu by touch1200
2020-08-03 22:17:40 +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
hathach
5bb5b132e5
fix power usbready not handled if bluefruit begin() is called fast enough
2020-08-01 21:47:38 +07:00
Henry Gabryjelski
d7b18ed40f
Code review required comment removal
2020-07-28 23:05:13 -07:00
Henry Gabryjelski
d00de2d783
Change variable name per @hathach request.
2020-07-28 23:05:13 -07:00