Commit Graph
2602 Commits
Author SHA1 Message Date
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
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
Henry Gabryjelski 43da1739a3 Update noTone() to be safe to call from ISR 2020-07-28 23:05:13 -07:00
Henry Gabryjelski a2a43719c5 Remove static assertion
Per @hathach request
https://github.com/adafruit/Adafruit_nRF52_Arduino/pull/496/files/d7e005cc99d4db22a3e6940279e5a59b995f247e?file-filters%5B%5D=.c&file-filters%5B%5D=.cpp#r452765910
2020-07-28 23:05:13 -07:00
Henry Gabryjelski eb55315d4f Explicit void for no parameters
Per @hathach comments
https://github.com/adafruit/Adafruit_nRF52_Arduino/pull/496/files/d7e005cc99d4db22a3e6940279e5a59b995f247e#r452772810
2020-07-28 23:05:12 -07:00
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