Phillip Burgess
4b57e88b4b
Fix typedef syntax
2019-05-10 21:26:30 -07:00
Phillip Burgess
7616dab297
SERCOM stuff - simplify, cleanup, add SAMD21 dummy funcs
2019-05-08 09:44:05 -07:00
Phillip Burgess
651862fd47
WIP SPI SERCOM clock source changes
2019-05-07 23:30:55 -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
ladyada
e40e387213
Fix for https://github.com/cstawarz
2019-04-24 12:47:02 -04:00
ladyada
da400c7283
Merge branch 'pb-overclock'
2019-04-22 16:36:57 -04:00
Phillip Burgess
2b2b8f0610
Add max SPI speed select menu for M4
2019-04-21 22:30:57 -07:00
ladyada
e35b44b997
Merge branch 'master' of github.com:adafruit/ArduinoCore-samd
2019-04-21 01:55:18 -04:00
ladyada
a89a0dfe23
tweaks to make gamebuino meta compile
2019-04-21 01:54:21 -04:00
Limor "Ladyada" Fried
bc8d8b861f
Overclocking and optimizer settings for M4 boards ( #100 )
2019-04-21 01:47:47 -04:00
Phillip Burgess
2061fe33c7
Overclocking and optimizer settings for M4 boards
2019-04-19 21:08:44 -07:00
jesserod
bd082fa1f6
Do not initialize all pins to INPUT ( #98 )
...
Comment out the initialization of all SAMD21 pins to INPUT to allow them to remain tri-stated by default.
See https://github.com/adafruit/Adafruit_SleepyDog/issues/17#issuecomment-481798215
2019-04-17 11:40:56 -04:00
ladyada
4f8619b918
re-add erase, change Tone TC to TC3
2019-04-10 08:31:22 -04:00
ladyada
79fc15cdc5
fix merge
2019-03-08 17:12:10 -05:00
ladyada
4d8adc9be4
Merge branch 'master' of https://github.com/arduino/ArduinoCore-samd into arduino-master
2019-03-08 14:03:54 -05:00
aryelevin
98e2a3e429
Some fixes to the startup code - clocks configs ( #89 )
...
* Reverted 1MHz clock generator to GCLK5 instead GCLK7
Fixed the clock divider of 1MHz clock generator to be 48 (its source is DFLL which clocking at 48MHz, so 48 / 48 = 1, it was 48 / 24 = 2).
Updated the PLLs to the proper Ratio afetr the change of the 1MHz clock source.
Disabled GCLK_GENCTRL_DIVSEL reg on the 12MHz clock generator, since this caused the clock to be 1.5MHz.
* Fixed a description comment.
2019-02-13 15:27:27 -05:00
ademuri
d2620a72d2
Fix analog ref enums. ( #83 )
...
AR_INTERNAL was removed in #74 . Because of this, non-SAMD51 boards fail because AR_INTERNAL isn't defined.
This also define AR_INTERNAL_2V23, which is also used for non-SAMD51
boards.
2019-01-26 15:26:05 -05:00
Florian Heilmann
458b5d9dd7
Fix 'Unused Parameter' warnings in HardwareSerial.h ( #78 )
...
This small change removes many of the warnings that are generated when compiling this core with warnings switched on.
2019-01-11 12:21:49 -05:00
Bill Westfield
2ca67fc36b
Fix delayMicroseconds() on SAMD51 ( #77 )
...
* Fix pulseIn() on SAMD51 by writing it in plain C, so that
the CM0+-specific pulse_asm won't need to be linked.
The SAMD51 is fast enough that we can time pulses with micros()
Tested with a bunch of pulse lengths from <1us to >1s
* Implement a new delayMicroseconds() function for SAMD51
This version enables the "Debug Watchpoint and Trace" module (DWT)
in startup.c and then uses the 32bit cycle counter that is part
of DWT to count cycles indepenent of instruction timing.
Tested for good accuracy with various values between 1 and 2000us.
2019-01-09 19:57:43 -05:00
Bill Westfield
f4b1ecfcea
Fix pulseIn() on SAMD51 by writing it in plain C, so that ( #76 )
...
the CM0+-specific pulse_asm won't need to be linked.
The SAMD51 is fast enough that we can time pulses with micros()
Tested with a bunch of pulse lengths from <1us to >1s
2019-01-09 12:05:51 -05:00
John Baker
166b43b8dc
Update wiring_analog.c and wiring_analog.h ( #74 )
...
* Update wiring_analog.c and wiring_analog.h
* Correct typos in comments so voltages are correctly identified
2019-01-05 18:42:09 -05:00
Riccardo Rizzo
3b6466b5e6
More accurate delay() function from BenF.
...
porting of 67c0a1995a (diff-ab397febf179e1982f4ee0758df4c982)
2018-12-13 10:33:06 -05:00
dean
0c9bb3488b
DM: fix pwm initialization bug
2018-11-29 15:40:31 -05:00
dean
c7fa463c0d
DM: fix pwm?
2018-11-29 13:54:35 -05:00
Sandeep Mistry
9d83af3e05
Fix USB warnings
2018-11-27 09:39:36 -05:00
Sandeep Mistry
da9bfe8cf9
Increase the default serial buffer size to 256 (variant can override via define)
2018-11-27 09:25:54 +01:00
deanm1278
9828191030
add grand central m4 ( #67 )
...
* DM: grandcentral variant
* DM: updates for m4 mega
* DM: metro mega updates
* DM: fixes for mega m4 pcc
* DM: fix grandcentral boards.txt naming
* DM: remove openocd for samd51, fix include guards
* DM: remove unnecessary debug scripts for m4 boards
2018-11-20 08:26:01 -08:00
Riccardo Rizzo
4a6d6ee5ee
fix freeze due to tone()
...
In file Tone.cpp added suffix -1LL to the costant in line 117 in order to avoid freeze for instance of tone(pin, 35000);
2018-11-16 09:15:45 -05:00
dean
4429b05805
DM: fix samd21 dac resolution
2018-11-12 12:19:29 -05:00
dean
0a24711890
DM: update PWM for trellis m4 and m0 boards
2018-11-08 14:34:51 -05:00
dean
ddba3e4e6e
DM: pwm fixes for feather
2018-11-07 18:03:57 -05:00
dean
83c5e15af2
DM: PWM fixes
2018-11-07 17:09:22 -05:00
dean
902d525d3c
DM: add ADC1 support for SAMD51
2018-11-05 13:58:32 -05:00
dean
bcfd9a0faa
Merge branch 'master' of github.com:adafruit/ArduinoCore-samd
2018-11-05 13:18:13 -05:00
dean
0654cd01b3
DM: fix interrupt handling
2018-11-05 13:18:00 -05:00
ladyada
074fe0fa9b
re-set to 100mA default for iOS support
2018-11-02 13:48:39 -04:00
Gabriel Notman
253e40e736
Removes the requirement that the DAC is on A0 (which requires that A0 uses PA02)
2018-10-23 13:51:49 +02:00
gdsports
9ac80d9a3a
Fix memory overwrite in USBHost
...
Fix issue #271 .
2018-10-23 11:31:34 +02:00
Martino Facchin
3b38a41278
Inplement USBDevice.end()
2018-10-23 11:19:08 +02:00
Martino Facchin
d5557ec4b4
Clear _usbLineInfo structure on SerialUSB.end()
2018-10-23 11:19:08 +02:00
dean
d2ef319833
DM: set all samd boards to 250k sps ADC
2018-10-01 13:17:34 -04:00
dean
00dd128b04
DM: update SAMD51 ADC sampling rate
2018-10-01 13:02:27 -04:00
dean
1de5f31752
DM: samd51 pwm fix for rebase
2018-09-04 12:02:26 -04:00
dean
bcc44cc6a1
DM: samd51 USB fix for rebase
2018-09-04 11:50:37 -04:00
dean
0c05d94c8a
DM: fix analog write for rebase
2018-09-04 10:50:50 -04:00
dean
b661033db6
DM: tc fix from rebase
2018-08-30 15:43:05 -04:00
dean
b7e942d924
DM: fix stuff from rebase
2018-08-30 15:40:15 -04:00
dean
87eae6f55c
DM: add copyrights
2018-08-30 15:12:51 -04:00
ladyada
19e4a449f4
re-fix xtalless, add cache & freq fix
2018-08-30 15:12:33 -04:00
dean
d6372a3b1e
DM: don't use normal delay in analogWrite
2018-08-30 15:12:32 -04:00