Kay Sievers
7f3211f46d
tinyusb: Correct descriptor string length calculation
...
This fixes strcpy_uni16() to return the correct number of characters.
It wasn't visible in the host so far, because the strings have been NUL
terminated.
2019-11-19 12:30:25 +01:00
Limor "Ladyada" Fried
361481d34d
Merge pull request #186 from adafruit/baud-fix
...
SAMD21: Fix freq clipping in SPI.h, allow 24 MHz SPI
2019-11-04 17:52:19 -05:00
Phillip Burgess
a2c0a5b547
SAMD21: Fix freq clipping in SPI.h, allow 24 MHz SPI
...
SPI clock freq previously clipped at MAX_SPI/2 (6 MHz) rather than MAX_SPI. Now works correctly.
Additionally, MAX_SPI set at 24 MHz on SAMD21. This is only slightly beyond spec and so far seems reliable with SD and SdFat tests on M0 Adalogger, eyes on HalloWing M0.
2019-11-04 14:45:51 -08:00
Lady Ada
9df0b07308
fix i2c for peripheral use thanks to https://github.com/adafruit/ArduinoCore-samd/pull/185 @JordanMajd
2019-11-02 23:26:49 -04:00
Lady Ada
6be0d1fa34
Merge branch 'JordanMajd-patch_samd51_i2c_slave'
2019-11-02 23:24:22 -04:00
Lady Ada
feb846a1ff
add monster m4sk too
2019-11-02 22:44:40 -04:00
Jordan Majd
2b052e11f8
Reenable Serial1 sercom int handlers, disable Wire i2c slave int handlers
2019-10-31 18:26:16 +00:00
Jordan Majd
04a2dd8ace
Preserve original formatting on base sercom handler
2019-10-31 16:32:16 +00:00
Jordan Majd
7a60a36a05
I2C slave support for Pyportal Titano M4
2019-10-31 03:51:06 +00:00
Jordan Majd
bc5fcc0d35
I2C slave support for Pyportal M4
2019-10-31 03:48:54 +00:00
Jordan Majd
8368e5f487
Update endif macro comment to reflect macro
2019-10-31 03:47:41 +00:00
Jordan Majd
684811d7ac
I2C slave support for PyGamer M4
2019-10-31 03:46:38 +00:00
Jordan Majd
ccd2ef97c5
I2C slave support for PyGamer Advance M4
2019-10-31 03:44:15 +00:00
Jordan Majd
43e7bd8356
I2C slave support for Pybadge M4
2019-10-31 03:43:06 +00:00
Jordan Majd
84cef9a876
I2C slave support for Pybadge Airlift M4
2019-10-31 03:39:03 +00:00
Jordan Majd
3202e7794e
I2C slave support for Metro Airlift M4
2019-10-31 03:35:27 +00:00
Jordan Majd
0897920a8c
I2C slave support for Metro M4
2019-10-31 03:34:37 +00:00
Jordan Majd
74cfc245ba
I2C slave support for Hallowing M4
2019-10-31 03:31:38 +00:00
Jordan Majd
efd29616db
I2C slave support for Grand Central M4
2019-10-31 03:29:22 +00:00
Jordan Majd
3ed74de232
I2C slave support for Feather M4
2019-10-31 03:16:08 +00:00
Jordan Majd
4dbfc244cc
I2C slave support for Trellis M4, temporarily disables UART Serial 1
2019-10-31 03:03:15 +00:00
Jordan Majd
e72343c867
Add the SAMD51s 4 i2c interrupts to ensure slave support
2019-10-31 01:11:32 +00:00
hathach
c7c17484b1
Merge remote-tracking branch 'adafruit/master'
2019-10-29 11:17:48 +07:00
ladyada
1ab7cb6cdd
force using 2017 toolchain (instead of 2014)
2019-10-28 18:17:22 -04:00
ladyada
ee9df548b7
fix min/max macros
...
allow PDM mic on pybadge edge
change pyportal backlight timer
2019-10-27 23:53:38 -04:00
ladyada
841a1b8188
use arduino-api for min/max
2019-10-27 20:08:01 -04:00
ladyada
ceccc257e7
change backlight to tcc4 so it doesnt collide with servo
2019-10-17 01:35:53 -04:00
ladyada
6076e22f1a
allow PDM mic on SPI
2019-10-16 19:24:58 -04:00
ladyada
a6e9eb3686
experiment with a bandgap analog read (not working)
2019-10-07 01:04:04 -04:00
ladyada
1efed72ada
bump to add new boards, fix servo and tone
2019-10-04 18:28:54 -04:00
ladyada
1e9a669f07
change Tone on samd51 to be TC0 so we can use higher numbers for other stuff! (servo is TC1)
2019-10-04 18:26:27 -04:00
ladyada
e204bf375d
add samd51-capable servo for now
2019-10-04 18:08:18 -04:00
ladyada
4bcbaa7287
fix typo from contrib
2019-10-04 18:06:23 -04:00
ladyada
ec12be530d
Merge branch 'master' of github.com:adafruit/ArduinoCore-samd
2019-10-04 18:00:16 -04:00
ladyada
9a6ab51b0f
remove serial1
2019-10-04 18:00:12 -04:00
hathach
bb4b17bf86
Merge remote-tracking branch 'adafruit/master'
2019-10-04 22:19:38 +07:00
hathach
2cc8b49e27
Merge pull request #179 from kaysievers/tinyusb-midi-jacks
...
tinyusb: MIDI - split descriptor initializer into individual sections
2019-10-04 21:59:54 +07:00
Limor "Ladyada" Fried
918379dacd
Merge pull request #180 from nekuneko/patch-1
...
Change references from A0 & A1 to DAC0 & DAC1
2019-09-19 22:01:42 -04:00
nekuneko
a09d821f9e
Change references from A0 & A1 to DAC0 & DAC1
...
New boards could have DAC0 & DAC1 on different pins. DAC0 & DAC1 pins are defined on each variant.h file, so it is not needed to reference to pins A0 & A1. With this change the code is more generic. Changes affect to analogWrite & analogRead functions.
2019-09-19 11:32:29 +02:00
Kay Sievers
e5af75a476
tinyusb: MIDI - split descriptor initializer into individual sections
...
This allows to compose the descriptor programmatically. The calling code
can compose a MIDI descriptor with up to 16 virtual wires/jacks at
initialization time.
Tested with the tinyusb -> MIDI -> midi_test example. This commit should
not change any behavior, future extensions of the calling MIDI device
will make use of it.
2019-09-11 12:58:36 +02:00
hathach
e5b45edf5b
clean up
2019-09-10 17:21:47 +07:00
hathach
f739f3c37b
Merge pull request #177 from hathach/master
...
follow up to pr #172
2019-09-10 17:14:04 +07:00
hathach
7c02454fc7
added set/get LanguageDescriptor
...
add Descriptor to setManufacturer/setProduct
2019-09-10 17:11:40 +07:00
hathach
c4f34905db
Merge pull request #172 from kaysievers/usb-names-override
...
tinyusb: Allow to set the USB manufacturer/product identifiers
2019-09-10 16:49:02 +07:00
hathach
04eb7d174c
Merge pull request #173 from kaysievers/tinyusb-descriptor-size
...
tinyusb: Allow to replace the built-in descriptor buffer
2019-09-01 14:27:37 +07:00
Limor "Ladyada" Fried
ef4072fc23
Merge pull request #175 from nekuneko/patch-3
...
Added Additonal Timers
2019-08-28 14:52:07 -04:00
Limor "Ladyada" Fried
29c27b6a5a
Merge pull request #174 from nekuneko/patch-2
...
Enable TC6 & TC7 for __SAMD21J18A__
2019-08-28 14:51:34 -04:00
nekuneko
256bc5a70d
Added Additonal Timers
...
TC6_CH0, TC6_CH1, TC7_CH0, TC7_CH1 on SAMD21J
TCC0_CH6, TCC0_CH7, TCC1_CH4, TCC1_CH5, TCC1_CH6, TCC1_CH7, TC6_CH0, TC6_CH1, TC7_CH0, TC7_CH1 on SAMD51J
2019-08-28 13:36:51 +02:00
nekuneko
3591f2813f
Enable TC6 & TC7 for __SAMD21J18A__
2019-08-28 13:26:48 +02:00
Kay Sievers
dcd4e5b4ff
tinyusb: Allow to replace the built-in descriptor buffer
...
Huge USB configurations might need more than 256 bytes for the
config descriptor buffer. MIDI devices with 16 virtual ports
grow the descriptor to 600+ bytes.
This call replaces the built-in buffer with the supllied buffer. The
call copies the content of the old buffer to the new buffer:
uint8_t buf[1024];
USBDevice.setDescriptorBuffer(buf, sizeof(buf));
2019-08-27 13:04:18 +02:00