Commit Graph
512 Commits
Author SHA1 Message Date
hathach 33857e9ed3 add timer ID support to software timer 2019-11-13 16:56:44 +07:00
hathach 54c87e8f29 refactor Software Timer, auto detect if in ISR mode 2019-11-13 16:29:58 +07:00
hathach 9e75e65c5a increase timer callback task for more usage 2019-11-13 01:00:35 +07:00
Henry Gabryjelski bc042c0c34 Record ISR entry/exit, when added via AttachInterrupt().
This only affects debug level 3 (Segger SysView) builds.
2019-11-04 09:20:44 -08:00
ladyada 8ac887ed01 make min/max templates @hathach 2019-10-30 02:43:03 -04:00
hathach 6b61e9ad40 use SPIM3 & SPIM2 for SPI, I2C will use SPIM0/SPIM1 2019-10-17 12:24:26 +07:00
hathach f1e9877408 change I2C to use NRF_TWIM0/SPIM0 instead of NRF_TWIM1/SPIM1 for simplicity 2019-10-16 22:47:00 +07:00
hathach 3adc899f81 spi dma work but it actually draw image slower than before 2019-10-16 00:53:26 +07:00
hathach 69323fd115 update nrfx to 1.7.2
also include nrfx_spim.c
2019-10-16 00:43:36 +07:00
Henry Gabryjelski 31180ec404 Fix printf format specifier to match length of data type. 2019-10-05 18:03:59 -07:00
Henry Gabryjelski a5ce35904f Reduce compiler warnings due to format string mismatches. 2019-10-05 17:25:48 -07:00
hathach d82401e9e7 sync with tinyusb core from samd with folowing PRs
- https://github.com/adafruit/ArduinoCore-samd/pull/179
- https://github.com/adafruit/ArduinoCore-samd/pull/173
- https://github.com/adafruit/ArduinoCore-samd/pull/172
- https://github.com/adafruit/ArduinoCore-samd/pull/170
- https://github.com/adafruit/ArduinoCore-samd/pull/169
- https://github.com/adafruit/ArduinoCore-samd/pull/168
2019-10-04 22:49:19 +07:00
hathach 31ed8a4fbb improve ada callback, return false if there is not enough memory. 2019-09-23 15:28:13 +07:00
hathach e57a039d63 suspend callback task when reszing, still there is chance to run into issue. 2019-09-23 11:37:36 +07:00
hathach e400dc895d fix newlib nano _sbrk() is not linked for checking heap 2019-09-23 11:33:32 +07:00
hathach 2a4185573b reduce task stack size
- ble      task from 512*3 -> 256*5
- loop     task from 512*3 -> 256*4
- callback task from 512*2 -> 256*3
- usbd     task from 150   -> 200
2019-09-19 16:42:36 +07:00
hathach d7caa6405a improve ada callback, automatically resize queue depth when needed 2019-09-18 12:02:36 +07:00
hathach d2fb5785dd clean up 2019-09-18 11:57:49 +07:00
hathach 1189249640 use queue static API for adacallback, increase CFG_CALLBACK_QUEUE_LENGTH to 80 2019-08-27 00:43:27 +07:00
hathach d81599d619 increase ada callback queue size from 20 to 40
- fox adacallback queue overflow with large image
- fix issue with tft draw bitmap
2019-08-26 23:55:58 +07:00
hathach dee231e9bd get image_upload work with 3.5" TFT featherwing 2019-08-26 13:25:50 +07:00
hathach 1fbdc59452 Merge branch 'master' into develop 2019-08-22 12:27:00 +07:00
hathach 454db84ae5 improve mutex lock/unlock for fifo 2019-08-21 17:10:20 +07:00
Ladyada d3f3b34319 add digitalPinToPinName(P) (arduino/mbed has it) and the adapted PDM library 2019-08-18 13:55:23 -04:00
hathach 080b524c7e Merge pull request #322 from henrygab/Patch-BuildWarnings
Fix multiple warnings when building.
2019-08-17 18:57:06 +07:00
hathach 8ce3506904 add BLEConnection requestConnectionParameter()
rename getConnInterval() to getConnectionInterval()
2019-08-16 12:22:21 +07:00
Henry Gabryjelski e96b3ed14f Fix multiple warnings when building.
Fix #1:

warning: format '%X' expects argument of type 'unsigned int', but argument 3 has type 'int32_t {aka long int}' [-Wformat=]

The C++ specification requires "%X" to receive an unsigned value. Any other type (including signed values) is "undefined behavior".

Fix #2:

warning: narrowing conversion of '(((int)itfnum) + 1)' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]

The affected macros are returning a list of uint8_t values, typically to define statically-allocated byte arrays.
The fix is to explicitly cast to `uint8_t` when doing arithmetic on any parameter.  Also added explicit comment
on the implied constraint.
2019-08-14 13:56:12 -07:00
hathach 2dccf83751 clean up 2019-08-05 09:57:31 +07:00
hathach 230c6dfd3a correct availableForWrite signature 2019-08-01 11:28:00 +07:00
hathach ebd624c7c0 add USBDevice setVersion(), update cdc for new tinyusb peek 2019-07-31 20:32:43 +07:00
hathach 5f5ac5871f update tinyusb
- add tud_vendor_peek()
- change tud_cdc_peek() API to be consistent with tud_vendor_peek()
2019-07-31 20:31:55 +07:00
hathach 475c0f9df6 Merge branch 'master' into develop 2019-07-31 12:05:47 +07:00
hathach 393c83e014 Merge pull request #311 from pyro9/availableForWrite
Add availableForWrite method to Serial.
2019-07-31 12:01:26 +07:00
hathach e785fa0c68 Merge pull request #308 from pyro9/fix_serial
Make Serial::read and dependant functions 8-bit clean.
2019-07-31 12:00:07 +07:00
hathach 68812ef0bf Merge branch 'master' into develop 2019-07-30 20:31:34 +07:00
hathach d04f9ae3eb update tinyusb stack to support vendor 2019-07-30 20:31:07 +07:00
Steven James 4eca9f88f7 Use tu_fifo_remaining instead of tu_fifo_count
rename low level CDC functions to tud_cdc_n_write_available and tud_cdc_write_available
2019-07-27 14:44:26 -04:00
Steven James 378e1be956 Change int to int32_t by request for merge. 2019-07-27 14:08:14 -04:00
Kevin Frei 68cc733171 Added a couple delete operators to make std=gnu++14/17 2019-07-27 14:29:05 +02:00
Steven James d7de810644 Add availableForWrite method to Serial. 2019-07-26 18:24:58 -04:00
Steven James 5705388dfd Make Serial::read and dependant functions 8-bit clean. 2019-07-20 04:06:08 -04:00
hathach be18b1809a fix incorrect midi descriptor template 2019-07-09 10:39:42 +07:00
hathach b1f4a4786a usbd add itfnum to getDescriptor() 2019-07-08 22:43:36 +07:00
hathach 64d65d69bf midi only use audio 1.0 without IAD 2019-07-05 16:46:32 +07:00
hathach a0e82f6701 clean up 2019-07-04 01:51:26 +07:00
hathach eeab293505 update tinyusb midi 2019-07-04 01:33:06 +07:00
hathach 3afe3c52ba enable tinyusb midi 2019-07-03 01:24:54 +07:00
hathach 2bab7d02ff update tinyusb to better support midi 2019-07-03 01:04:48 +07:00
hathach 1f433a9a1f fix accidence delete pwm trigger for tone #69 2019-06-19 21:54:19 +07:00
hathach e131fba008 try to add Tone() using PWM2 for both 52832/52840 2019-06-18 17:19:19 +07:00