Skip to content

Commit fd887ca

Browse files
authored
Add files via upload
1 parent 00091cb commit fd887ca

File tree

4 files changed

+50
-13
lines changed

4 files changed

+50
-13
lines changed

avdweb_SAMDtimer.cpp

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,24 @@ as published by the Free Software Foundation, either version 3 of the License, o
55
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
66
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License at http://www.gnu.org/licenses .
77
8-
Version 26-1-2017
8+
These libraries should also be installed:
9+
Adafruit_ZeroTimer https://github.com/adafruit/Adafruit_ZeroTimer
10+
Adafruit_ASFcore https://github.com/adafruit/Adafruit_ASFcore
11+
12+
AUTHOR: Albert van Dalen
13+
WEBSITE: http://www.avdweb.nl/arduino/libraries/samd21-timer.html
14+
15+
HISTORY:
16+
1.0.0 26-1-2017
917
1018
16 bit timer: max period_us = 1398080us (0.7Hz), min period_us = 1us (1MHz)
1119
1220
note *1 SCK, MOSI, MISO are on Arduino Zero SPI header
1321
1422
Timer Arduino Zero pins SAM15x15 pins
15-
SAMDtimer 0 8bit D3 D18/A4 D17 D4 d[9] d[5] d[4] d[8] timer not yet implemented
16-
SAMDtimer 0 16bit D3 D18/A4 d[9] d[5] timer not yet implemented
17-
SAMDtimer 1 8bit D0 D9 D33 D8 D1 D30 d[11] d[7] d[31] d[6] d[10] d[27] timer not yet implemented
18-
SAMDtimer 1 16bit D0 D9 D33 d[11] d[7] d[31] timer not yet implemented
19-
SAMDtimer 2 8bit D13 (D28) D22/MISO*1 D16 d[19] d[15] d[14] d[3] timer not yet implemented
20-
SAMDtimer 2 16bit D13 (D28) d[19] d[15] timer not yet implemented
21-
22-
SAMDtimer 3 8bit D5 D12 D2 D10 d[17] d[21] d[16] d[20] timer not yet implemented
23+
2324
SAMDtimer 3 16bit D5 D12 d[17] d[21]
24-
SAMDtimer 4 8bit D16/A2 D21/SCL D15/A1 D20/SDA d[3] d[25] d[2] d[24] timer not yet implemented
2525
SAMDtimer 4 16bit D16/A2 D21/SCL d[3] d[25]
26-
SAMDtimer 5 8bit D24/SCK*1 D23/MOSI*1 d[13] d[12] timer not yet implemented
2726
SAMDtimer 5 16bit D24/SCK*1 d[13]
2827
*/
2928

avdweb_SAMDtimer.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ This program is free software: you can redistribute it and/or modify it under th
44
as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
55
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
66
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License at http://www.gnu.org/licenses .
7-
8-
Version 26-1-2017
97
*/
108

119
#ifndef SAMDtimer_H

keywords.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#######################################
2+
# Syntax Coloring Map For avdweb_SAMDtimer
3+
#######################################
4+
5+
#######################################
6+
# Datatypes (KEYWORD1)
7+
#######################################
8+
9+
avdweb_SAMDtimer KEYWORD1
10+
11+
#######################################
12+
# Methods and Functions (KEYWORD2)
13+
#######################################
14+
15+
attachInterrupt KEYWORD2
16+
enableTimer KEYWORD2
17+
enableInterrupt KEYWORD2
18+
setPulseWidth KEYWORD2
19+
20+
#######################################
21+
# Instances (KEYWORD2)
22+
#######################################
23+
24+
#######################################
25+
# Constants (LITERAL1)
26+
#######################################
27+

library.properties.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name=avdweb_SAMDtimer
2+
version=1.0.0
3+
author=Albert van Dalen
4+
maintainer=Albert van Dalen <[email protected]>
5+
sentence=Timer library for the SAMD21 and Arduino Zero
6+
paragraph=See the whole article: https://github.com/avandalen/avdweb_SAMDtimer
7+
category=Timing
8+
url=http://www.avdweb.nl/arduino/libraries/samd21-timer.html
9+
architectures=samd
10+
11+
12+
13+

0 commit comments

Comments
 (0)