Commit graph

74 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
dean
1de5f31752 DM: samd51 pwm fix for rebase 2018-09-04 12:02:26 -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
87eae6f55c DM: add copyrights 2018-08-30 15:12:51 -04:00
dean
d6372a3b1e DM: don't use normal delay in analogWrite 2018-08-30 15:12:32 -04:00
dean
a110eb10db DM: update pwms, timer definitions 2018-08-30 15:12:32 -04:00
dean
540780d3d1 DM: fix dac clock and first write bug 2018-08-30 15:11:21 -04:00
dean
e9857aec00 DM: update pwms for samd51 2018-08-30 15:08:17 -04:00
dean
fb011ea2a8 DM: we have a 12 bit dac lets use 2018-08-30 14:59:48 -04:00
dean
a7277e6547 DM: adding feather m4 2018-08-30 14:58:44 -04:00
dean
8a32178667 DM: bugfixes 2018-08-30 14:53:34 -04:00
dean
785aea4f65 DM: fixed DAC, SPI 2018-08-30 14:53:33 -04:00
dean
2ce0635ebc DM: added metro m4 variant 2018-08-30 14:51:09 -04:00
dean
c1827b289d DM: added support for samd51J20A 2018-08-30 14:46:42 -04:00
dean
77a2f2e9ea DM: fixed tone 2018-08-30 14:44:35 -04:00
dean
0a2393f4ce DM: fix switching between dac output and analogread 2018-08-30 14:44:35 -04:00
dean
df5669a403 DM: fixed pwm and dac (almost) 2018-08-30 14:34:14 -04:00
ladyada
03eae9b5c5 Add Gemma m0 - tested just about everything 2018-08-30 14:34:13 -04:00
dean
358b11addd DM: added samd51 support 2018-08-30 14:32:21 -04:00
ladyada
8d5ac4304a another A6/A7 fix 2018-08-30 14:24:09 -04:00
ladyada
605017712a fixed up DAC refs 2018-08-30 14:20:50 -04:00
Todd Treece
9eda56e7db adds new boards.txt 2018-08-30 14:09:49 -04:00
ladyada
4e41949c96 add support for A6 (D8) and A7 (D9) 2018-08-30 14:03:04 -04:00
Adminius
74a12d0f25 changes PWM resolution to 16bit for all timers
PWM frequency 732 Hz
2017-07-11 15:45:38 +02:00
Cristian Maglie
213cc933d5 small fix to indentation 2017-03-31 15:12:58 +02:00
Sandeep Mistry
38683e36b6 Changes required for new CMSIS package upgrade
Fixes some compile errors and warnings
2016-12-02 10:48:52 -05:00
Mike D
126b167693 Fixed issue where pins were not being configured properly in analogWrite when multiple channels of the same TCC/TC module were being used to drive outputs. 2016-10-03 11:55:43 -07:00
Cristian Maglie
c9f315b9b2 Set PWM frequency to 732.4Hz 2016-06-30 20:15:35 +02:00
Cristian Maglie
f221d1f1bd Fixed PWM frequency glitch 2016-06-30 20:15:35 +02:00
Cristian Maglie
156884bc02 Fixed whitespaces, removed some prefixes from variables names 2016-06-29 17:20:37 +02:00
Cristian Maglie
e034b1a454 Added compatibility defines for core's variant files
The variant's file compliance is now determined using a define named

ARDUINO_SAMD_VARIANT_COMPLIANCE

that refer to the minimum core version required for this variant file
to work.
2015-11-20 21:09:54 +01:00
Cristian Maglie
80d212a0cc Pin peripheral for analogRead is always PIO_ANALOG.
The attribute ATTR_ANALOG is needed to select DAC, so it has been
removed from pins A1..A5 that doesn't have a DAC.
2015-11-20 21:07:03 +01:00
Cristian Maglie
46ca790fce Added PIN_ATTR_TIMER_ALT attribute for correct timer selection
The selection of the correct timer peripheral is now
decided through the PIN_ATTR_{TIMER/TIMER_ALT} attribute.
2015-11-20 21:07:03 +01:00
Cristian Maglie
f3dc649efe Fixed warnings 2015-06-15 15:49:43 +02:00
Cristian Maglie
97f1cf6af5 Hide non-API pinPeripheral method 2015-06-15 14:16:15 +02:00
Claudio Indellicati
806c330371 Fixed register synchronization in 'analogReadResolution()'. 2015-05-20 15:16:43 +02:00
Claudio Indellicati
49e4bf10dc Added missing synchronization code to analogWrite(). 2015-03-24 17:38:35 +01:00
Thibaut VIARD
464469999d Removing useless line in AnalogRead()
Signed-off-by: Thibaut VIARD <thibaut.viard@atmel.com>
2015-03-23 11:24:29 +01:00
Cristian Maglie
74f76e9da8 Merge branch 'adc-write-res-fix' into zero
Conflicts:
	hardware/arduino/samd/cores/arduino/wiring_analog.c
2014-11-25 16:02:23 +01:00