hathach
b9de0dd52d
fix various warnings
2021-05-25 21:29:08 +07:00
Ha Thach
9ae33db665
Merge pull request #642 from jpconstantineau/linker-bss-fix-warning
...
updated linker script to fix recurring issue with .bss linker warning
2021-05-21 23:08:19 +07:00
Pierre
c04492add3
updated linker script to fix recurring issue with .bss linker warning
2021-05-20 10:24:26 -06:00
hathach
5ec8598ea9
update tinyusb lib to 1.0.0
2021-05-18 17:32:13 +07:00
hathach
f91c517d27
sync with tinyusb lib latest
2021-05-10 12:56:17 +07:00
hathach
7c6bf37f5e
add libraries/Adafruit_TinyUSB_Arduino as submodule
...
include Adafruit_USBD_CDC.h from submodule
2021-05-08 00:58:38 +07:00
hathach
228a51fdef
clean up
2021-05-07 17:29:52 +07:00
hathach
c260dad229
update tinyusb header
2021-05-07 14:49:12 +07:00
hathach
6a2dcbc3bf
remove tinyusb core submodule, move tinyusb src to its own library to reduce dependency
2021-05-07 01:27:54 +07:00
AnthonyDiGirolamo
df80616179
Update itoa.c for -std=c++17 compatibility
...
This change copies over itoa.h and itoa.c from https://github.com/adafruit/ArduinoCore-samd/tree/master/cores/arduino
This adds in the missing utoa and itoa functions when compiling using -std=c++17. This nRF52 core is currently using -std=gnu++11 in platform.txt so this isn't normally an issue.
Tested compiling a few example sketches successfully in the Arduino IDE with this change. Not tested on device, haven't ordered hardware yet.
I'm hoping to get this fixed to add support for building pigweed on top
of this core. See https://pigweed.dev/targets/arduino/target_docs.html if interested :-)
2020-12-12 11:35:45 -08:00
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