Commit Graph
2727 Commits
Author SHA1 Message Date
hathach 6aabe01674 Merge branch 'master' into develop 2020-09-11 19:16:30 +07:00
hathach ce81b830a1 ready for release 0.21.0 2020-08-31 16:49:09 +07:00
Ha Thach 8c3eb73ba8 Merge pull request #563 from adafruit/add-bme680
Add bme680
2020-08-28 12:51:18 +07:00
Ha Thach fb4beeaa14 Merge pull request #562 from adafruit/followup-496
clean up pwn and analog
2020-08-28 00:32:27 +07:00
hathach b2c9e54358 clean up 2020-08-27 17:18:33 +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 3cc5b5ba73 revert to use C11 atomic which is implemented by LDREX/STREX on M4 2020-08-27 15:28:38 +07:00
hathach b84e2a81f9 clean up ci build script 2020-08-27 15:15:21 +07:00
hathach 27c462a4d1 clean up 2020-08-27 13:19:13 +07:00
hathach 8577afafc9 support precompiled library with compiler.libraries.ldflags 2020-08-27 13:15:17 +07:00
hathach 132f11de33 rename I2C terminology 2020-08-27 12:18:23 +07:00
hathach 6f2adf4f62 fix possible race condition 2020-08-27 01:22:35 +07:00
hathach 0205da555a remove the local static for seq values for tone 2020-08-25 23:57:19 +07:00
hathach 3aed8f784b add tone happy birthday example
this is mainly for testing functionality when refactoring tone()
2020-08-25 23:47:32 +07:00
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