ogatatsu
fdded9018c
Add analogReadVDD() function
2020-10-08 20:34:43 +09:00
Ha Thach
9f0f4245a3
Merge pull request #587 from ogatatsu/uart
...
fix to not use mutex in ISR
2020-10-06 21:52:45 +07:00
ogatatsu
60a4c7784c
optimize by deleting mutex
2020-10-06 21:20:12 +09:00
hathach
3984c86902
fix some warnings
...
remove beacon blocking wait for Serial connection
2020-10-05 19:48:10 +07:00
Ha Thach
4d703b6f38
Merge pull request #583 from ogatatsu/pinMode
...
Add pinMode type
2020-10-05 16:25:38 +07:00
ogatatsu
2e5ed87044
fix to not use mutex in ISR
2020-10-04 16:42:39 +09:00
ogatatsu
6c6e552279
Add pinMode type
2020-10-03 09:56:31 +09:00
Freja Nordsiek
778d122d6d
Changed definitions of CFG_TUD_VENDOR_RX_BUFSIZE and CFG_TUD_VENDOR_TX_BUFSIZE in cores/nRF5/TinyUSB/tusb_config.h to check if they are already defined.
2020-09-17 12:31:02 +02:00
hathach
0614a4ae00
update tinyusb core
...
- update tinyusb core to commit e7b892095f2bb5d8bef6a748238369bdd268ed5e
- Get String Descriptor support for interface
- Get line conding API for cdc
2020-09-15 21:03:42 +07:00
hathach
072f842808
update tinyusb core to commit 2afb2320e03e26c765aaeb51d430325b8adcdbf9
...
which contain the endpoint race fix from upstream
2020-09-15 00:18:06 +07:00
Freja Nordsiek
f3a70865d4
Changed definition of SERIAL_BUFFER_SIZE in cores/nRF5/RingBuffer.h to check if it is already defined.
2020-09-14 10:32:58 +02:00
Ha Thach
dc2802a2b1
Merge pull request #466 from adafruit/develop
...
implement comprehensive LESC and Legacy pairing
2020-09-11 23:54:28 +07:00
hathach
6aabe01674
Merge branch 'master' into develop
2020-09-11 19:16:30 +07:00
Eugene Anikin
1a1eef6761
Add missing nrfx source files
2020-09-09 12:15:54 -07:00
hathach
ce81b830a1
ready for release 0.21.0
2020-08-31 16:49:09 +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
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
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
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
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
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
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