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
hathach
64e176b7cd
more warnings clean up
2019-06-07 15:27:57 +07:00
hathach
a95ead5add
clean up warnings
2019-06-07 12:48:41 +07:00
hathach
7589540d2e
refactor ada callback, prefer to have function than macros
2019-06-07 12:48:29 +07:00
hathach
577b2039b2
refactor ada_callback, detect isr using cortex ICSR
...
remove ada_callback_FromISR()
2019-06-07 10:23:38 +07:00
hathach
9abd152fe5
fix buid conflict between hid central and usb hid
2019-06-06 15:25:26 +07:00
hathach
d87536bbb7
more warning clean up
2019-06-06 11:59:38 +07:00
hathach
6bcffbd252
clean up warnings
2019-06-06 11:41:02 +07:00
hathach
452db14e41
remove rtos_idle_callback(), sketch define vApplicationIdleHook() if needed
2019-06-06 11:19:53 +07:00
hathach
a73eb9d765
clean up compipler macros
2019-06-06 11:19:13 +07:00
hathach
3f2fbc6e75
update tinyusb
2019-06-06 11:12:40 +07:00
hathach
73d10728e5
enhance Serial.available()/write() to prevent blocking wait without yield/delay
2019-06-05 23:11:57 +07:00
hathach
187ddc6058
move InternalFS to its own subclass of LFS
2019-05-30 16:48:48 +07:00
hathach
20c257daa2
more internal flash clean up
2019-05-30 16:16:57 +07:00
hathach
6b99749b2f
remove flash_qspi to prefer Adafruit_QSPI library
2019-05-30 12:41:31 +07:00
hathach
ab0534e9c5
tinyusb clean up
2019-05-29 17:16:07 +07:00
hathach
228b5ea722
Merge branch 'master' into develop
2019-05-29 15:45:22 +07:00
hathach
66e96b0d13
tinyusb update
...
- improve fifo write/read_n with only one lock
- added usbd_edpt_xfer/usbd_edpt_busy to replace
dcd_edpt_transfer/dcd_edpt_busy()
- use usbd_edpt_xfer/usbd_edpt_busy for hid/cdc/msc class driver
- replace cdc read's pending_read_from_host by usbd_edpt_busy()
2019-05-29 15:34:45 +07:00
hathach
99b6de3207
improve cdc core
2019-05-29 15:17:12 +07:00
hathach
f5aeb3820d
move tud cdc write flush to yield(), add yield() to Stream timeRead(), timePeek()
2019-05-28 18:24:33 +07:00
hathach
e38c37b6b7
clean up
2019-05-27 20:31:22 +07:00
hathach
732e2d5a77
fix tinyusb hid raw inout
2019-05-24 12:52:58 +07:00