Henry Gabryjelski
e58b39e2de
Reduce debug output for analog_write()
...
Remove all output when the pin is already configured
and everything works.
2020-07-28 23:05:12 -07:00
Henry Gabryjelski
37935c7938
Remove always_inline attribute
...
Per @hathach request
https://github.com/adafruit/Adafruit_nRF52_Arduino/pull/496#discussion_r452713305
2020-07-28 23:05:12 -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
dd06e2f05a
Fix HwPWM debug logging typo
2020-07-28 23:05:12 -07:00
Henry Gabryjelski
aebdca3f63
Ensure default value for analogWriteResolution()
2020-07-28 23:05:11 -07:00
Henry Gabryjelski
bbc453156e
Improve logging for end users
2020-07-28 23:05:11 -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
a6e0d2c925
Prefer uintptr_t to void const * for ownership 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
027bcd348c
Fix check for connected pins
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
c58c01df68
Add check for PWM being ENABLED
2020-07-28 23:05:10 -07:00
Henry Gabryjelski
3efce16900
Servo can also use HwPWM ownership abstraction
2020-07-28 23:05:10 -07:00
Henry Gabryjelski
d5dc053a34
Use HwPWM ownership abstraction
2020-07-28 23:05:10 -07:00
Henry Gabryjelski
d469728574
Use HwPWM ownership abstraction
2020-07-28 23:05:09 -07:00
Henry Gabryjelski
ab1b90490c
opt-in ownership of PWM peripheral
2020-07-28 23:05:09 -07:00
Henry Gabryjelski
a771af3ed6
remove dead code
2020-07-28 23:05:09 -07:00
Henry Gabryjelski
af680357dd
analogWrite() avoids hostile takeover of PWM peripherals
2020-07-28 23:05:09 -07:00
Henry Gabryjelski
b4d777f7f3
Expose API for count of used/free channels
2020-07-28 23:05:09 -07:00
Henry Gabryjelski
2981565830
Remove dead code
2020-07-28 23:05:09 -07:00
Ha Thach
6b41c1935f
Merge pull request #542 from adafruit/update-tinyusbcore-11d669b4d2a40eb2fc5e51b2a9707a6de9d42363
...
update TinyUSB Core
2020-07-23 08:26:31 +07:00
hathach
cb6d216c9c
move usb hardware init and tud_init into usb device thread
...
help to prevent USB IRQ when scheduler is not started yet
2020-07-23 07:45:09 +07:00
hathach
ca4f2bcbb4
sync with Adafruit_TinyUSB_ArduinoCore commit 238a5c0b95fcd402d24524c7bebbdd822168a51e
2020-07-23 07:07:22 +07:00
hathach
ce666599f1
Merge branch 'master' into update-tinyusbcore-11d669b4d2a40eb2fc5e51b2a9707a6de9d42363
2020-07-22 22:30:36 +07:00
hathach
9a2f1384ad
move Adafruit_TinyUSB_Core_init() inside loop() task
2020-07-22 22:25:20 +07:00
hathach
81a78d74ed
update TinyUSB core to commit 11d669b4d2a40eb2fc5e51b2a9707a6de9d42363
...
Note: due to osal_freertos changes https://github.com/hathach/tinyusb/pull/468 the Adafruit_TinyUSB_Core_init() should be near the task scheduler (or better inside loop task) to prevent calling portYIELD_FROM_ISR() when scheduler not started
2020-07-22 21:54:55 +07:00
Ha Thach
15c1161f80
Merge pull request #540 from huddy987/master
...
Init all onboard LEDs for pca10056
2020-07-21 19:32:33 +07:00
Hudson
cfcc1c486f
Init all onboard LEDs for pca10056
...
Need to init the 2 missing onboard LEDs for pca10056.
2020-07-19 20:38:01 -06:00
Ha Thach
1bf80af139
Merge pull request #535 from pyro9/fix_discovery
...
Fix BLEDiscovery::discoverCharacteristic when the central device returns more than 4 Characteristics in a discovery request
2020-07-17 13:19:26 +07:00
Steven James
df5f6c48a9
MAX_DISC_CHARS = 8 to avoid excessive OTA queries for discovery.
2020-07-16 14:00:30 -04:00
Steven James
38127c2fa3
Clean up formatting
2020-07-16 13:59:55 -04:00
Ha Thach
604a8c897e
Merge pull request #527 from adafruit/fix-520
...
remove BLECharateristic write(int32_t)
2020-07-17 00:24:46 +07:00
Ha Thach
6b48085300
Merge pull request #530 from huddy987/master
...
Add missing LED pin defines for PCA10056
2020-07-16 23:17:58 +07:00
Ha Thach
03a5017f4e
Merge pull request #531 from adafruit/fix-504
...
fix typo
2020-07-16 23:17:36 +07:00
Ha Thach
8e38fcd007
Update bug_report.md
2020-07-14 14:49:38 +07:00
Steven James
d41dda9b10
Fix BLE Characteristic discovery when the central device returns more
...
than 4 Characteristics in a discovery request
2020-07-13 15:18:07 -04:00
hathach
21924d1064
fix typo
2020-07-13 17:54:33 +07:00
Hudson
ceca3f28fd
Add missing LED pin defines for PCA10056
...
There are actually 4 onboard LEDs, not 2 for PCA10056
2020-07-12 21:30:11 -06:00
Ha Thach
b332555863
Merge pull request #503 from orrmany/fix-issue502
...
Fix issue502
2020-07-11 01:01:01 +07:00
Ha Thach
7231f8c5f8
Merge pull request #501 from orrmany/develop-multiprotocol-ble
...
Make Bluferuit52 multiprotocol friendly
2020-07-11 00:46:21 +07:00
hathach
4f59fe0675
correct git depth
2020-07-11 00:28:44 +07:00
hathach
6e86d16a60
use firmata master to fix build with gcc v9
2020-07-11 00:24:19 +07:00
hathach
3c6c2b7d55
remove BLECharateristic write(int32_t)
...
fix #520
2020-07-10 18:48:14 +07:00
Ha Thach
1f0a5872c3
Merge pull request #524 from adafruit/update-tinyusb
...
Update tinyusb
2020-07-05 17:29:28 +07:00
hathach
3e165cba08
update changelog
2020-07-05 17:03:30 +07:00
hathach
92a583accc
sync tinyusb core to 0749077
2020-07-05 17:03:03 +07:00
Ha Thach
237fbe8094
Merge pull request #523 from adafruit/fix-tfl-build
...
upgrade cmsis to v5 to build with TFL
2020-07-05 16:51:31 +07:00
hathach
6183caffec
update changelog
2020-07-05 16:50:39 +07:00
hathach
eb50925296
upgrade cmsis to v5 to build with TFL
2020-07-05 15:16:10 +07:00