Commit graph

17 commits

Author SHA1 Message Date
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
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
GMagician
e51b006a3f Fix tone
- match timer and timer handler
- lower interrupt priority (0 seems to big for a simple tone)
- be sure 'toneIsActive' is always set (if previous tone was using a different pin, it's not set
2019-07-29 18:46:42 +02:00
ladyada
4f8619b918 re-add erase, change Tone TC to TC3 2019-04-10 08:31:22 -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
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
87eae6f55c DM: add copyrights 2018-08-30 15:12:51 -04:00
dean
0908d0aee4 DM: fix tone 0 frequency 2018-08-30 14:59:17 -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
358b11addd DM: added samd51 support 2018-08-30 14:32:21 -04:00
agdl
823cbce4b5 Tone fix for #59 and optimizations
This fixes issue #59 and optimize the way the prescaler is found.
Furthermore non needed instructions are not repeated.
2015-10-22 15:39:28 +02:00
Cristian Maglie
d9df90830e Fixed cortex-M hooks for RTOS
Fixes #4
2015-06-26 10:28:52 +02:00
Cristian Maglie
1a1856c2fc License fix and cosmetic changes. 2015-06-14 17:16:37 +02:00
Claudio Indellicati
5a6dafaf8c Fixed default maximum frequency calculation in Tone.cpp. 2015-04-15 18:00:12 +02:00
Claudio Indellicati
e1dbd13d34 Added first tone library implementation.
Interrupt based implementation that works on every pin.
2015-03-16 15:35:41 +01:00
Claudio Indellicati
b09403540c Minor changes.
- Renamed Tone.cpp.disabled to Tone.cpp
- Removed commented legacy AVR code from Tone.cpp
2015-03-13 16:40:28 +01:00