Henry Gabryjelski
439c6b51c9
Narrowly silence new (GCC 8.1+) warning ( #290 )
...
Fixes #287
The warnings look like:
```
Line 338 Char 37
warning: 'void* memcpy(void*, const void*, size_t)'
writing to an object of type 'struct DmacDescriptor'
with no trivial copy-assignment [-Wclass-memaccess]
```
2021-04-30 11:42:15 -04:00
Rudolph Riedel
3c7a2d5bad
Added a isBusy() method to SPI calls to allow non-blocking polling of the DMA transfer status.
2020-12-28 13:51:55 +01:00
moussaillon
814a352588
Avoiding unused parameter warning for dmaDoNothingCallback()
2020-09-15 16:32:21 +02:00
hathach
aa5fa81bb7
use TC1 for servo, TC0 for tone for samd51
...
- make Tone_Handler() a strong symbol
2020-08-28 14:41:48 +07:00
Phillip Burgess
1e92424a50
Obscure SPI DMA bug fixed. Also, big non-blocking transfers supported.
2020-08-20 20:22:39 -07:00
Phillip Burgess
420b9a8429
Small SPI lib fix, add SWO pin to variant header
2020-08-19 11:36:20 -07:00
Henry Gabryjelski
66b0a74073
Use FIXME instead of BUGBUG
2020-08-09 23:50:13 -07:00
Henry Gabryjelski
55a9930808
reduce affected area of diagnostic push/pop
2020-08-07 11:28:53 -07:00
Henry Gabryjelski
528a25e0ab
@hathach is uncomfortable with attributes on function parameters
2020-08-05 21:27:36 -07:00
Henry Gabryjelski
adc0866b7d
Hathach doesn't like attributes on parameters
2020-08-05 01:54:03 -07:00
Henry Gabryjelski
77321a6827
Merge branch 'fix_compile_warnings3' of https://github.com/henrygab/ArduinoCore-samd into fix_compile_warnings3
2020-08-03 20:43:25 -07:00
Henry Gabryjelski
a2801a1602
fix tab/space mixtures -- whitespace only change
2020-08-03 20:43:13 -07:00
Henry Gabryjelski
25a57896c0
Merge branch 'master' into fix_compile_warnings3
2020-08-03 17:09:31 -07:00
Henry Gabryjelski
00dd2e0097
Per @hathach request
2020-08-03 17:06:51 -07:00
hathach
2569103e1a
move test_cmsis_fast_rfft example to its own folder to fix ci build
2020-07-13 18:26:29 +07:00
David Gauchard
1112d77c3d
less warnings on featherM0
2020-03-05 18:25:12 +01:00
hathach
bfba9812b7
add fake CI_Tests.h header to make Arduino happy
2020-02-11 10:10:12 +07:00
Henry Gabryjelski
c68c0b19ae
Disable -Wimplicit-fallthrough in sections
...
These two files contain code with switch statements,
where one case "fall through" to the next case.
As it's not currently clear if this is intentional or not,
rather than modifying the code in any way (regression risk),
use GCC diagnostic pragmas to disable this warning for
only these two files, with BUGBUG marking to encourage
review by someone more familiar with this code.
2020-01-17 01:16:20 -08:00
Henry Gabryjelski
1a89b145ef
Enhance warning output.
...
Add comment to line GCC points finger at.
This is not intended to fix the warning.
Rather, it is intended to make it clearer
that this may need a deeper review before
determining what (if any) code change would
be appropriate.
2020-01-17 01:16:20 -08:00
Henry Gabryjelski
e1e7b37ff3
Disable -Wimplicit-fallthrough for these two files.
...
These two files contain code with multiple switch statements,
where one case "fall through" to the next case.
As it's not currently clear if this is intentional or not,
rather than modifying the code in any way (regression risk),
use GCC diagnostic pragmas to disable this warning for
only these two files, with BUGBUG marking to encourage
review by someone more familiar with this code.
2020-01-17 01:16:20 -08:00
Henry Gabryjelski
4276526c67
Avoid compiler warning for unused parameter
2020-01-17 01:16:20 -08:00
Henry Gabryjelski
3253d46f45
Avoid unused parameter compiler warnings
2020-01-17 01:16:20 -08:00
Henry Gabryjelski
d5935a8c51
remove 'unused parameter' compiler warning
2020-01-17 01:16:20 -08:00
Henry Gabryjelski
4f80972c23
cast to uint32_t to avoid compiler warning
...
that said, it's possible this api might return
a variety of non-zero codes. code could benefit
from being updated (e.g., documenting return codes)
2020-01-17 01:16:20 -08:00
Henry Gabryjelski
9ab68e1aff
avoid warnings on unused parameter
2020-01-17 01:16:20 -08:00
Lady Ada
1df7e524ed
add math linker test!
2020-01-06 23:34:20 -05:00
hathach
bab8b92f60
add skip file
2020-01-02 17:08:26 +07:00
hathach
c53c44331e
build most of adafruit samd boards
2020-01-02 17:03:44 +07:00
hathach
411cfa6d9a
test metro_m0 build
2020-01-02 12:45:43 +07: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
Jordan Majd
04a2dd8ace
Preserve original formatting on base sercom handler
2019-10-31 16:32:16 +00:00
Jordan Majd
e72343c867
Add the SAMD51s 4 i2c interrupts to ensure slave support
2019-10-31 01:11:32 +00:00
ladyada
e204bf375d
add samd51-capable servo for now
2019-10-04 18:08:18 -04:00
ladyada
66a844f050
fix for trinket/gemma m0
2019-06-15 22:59:15 -04:00
Phillip Burgess
9a07f418ce
SPI DMA transfer() function working now
2019-05-22 21:35:58 -07:00
Phillip Burgess
8b88806d46
SPI DMA still WIP still not working
2019-05-22 21:11:49 -07:00
Phillip Burgess
8f123f315b
SPI DMA WIP and still not working :/
2019-05-22 14:22:50 -07:00
Phillip Burgess
99b90ffb48
DMA WIP still not working
2019-05-22 11:17:52 -07:00
Phillip Burgess
91e43ef443
SPIClass DMA transfer() function WIP
2019-05-21 22:14:45 -07:00
Phillip Burgess
10b8b55c27
Move Adafruit_ZeroDMA into SAMD core so SPI lib can rely on it
2019-05-20 22:26:17 -07:00
Phillip Burgess
e86546521f
Separated getDMACID() function into getDMAC_ID_TX() and getDMAC_ID_RX()
2019-05-10 17:46:33 -07:00
Phillip Burgess
7616dab297
SERCOM stuff - simplify, cleanup, add SAMD21 dummy funcs
2019-05-08 09:44:05 -07:00
Phillip Burgess
59d869d79d
WIP change SPI SERCOM clock source at runtime rather than compile-time
2019-05-07 23:05:52 -07:00
Phillip Burgess
2b2b8f0610
Add max SPI speed select menu for M4
2019-04-21 22:30:57 -07:00
ladyada
a2d9587950
up to 24 mhz SPI on SAMD51. added another ESP32 def
2019-04-04 13:44:37 -04:00
ladyada
4d8adc9be4
Merge branch 'master' of https://github.com/arduino/ArduinoCore-samd into arduino-master
2019-03-08 14:03:54 -05:00
Sandeep Mistry
6e0a2b52fc
Add SDU support for the MKR NB 1500
2018-11-27 09:18:41 -05:00
Mark Fischer
a6ab0f3bf6
Added method to return USB Error code.
2018-10-22 15:01:04 +02:00
dean
87eae6f55c
DM: add copyrights
2018-08-30 15:12:51 -04:00