Skip to content

Commit 9a2fcd2

Browse files
author
Jim Lindblom
committed
Fixing PWM on pin 13 (Dev board only).
1 parent 1c59eaa commit 9a2fcd2

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

IDE_Board_Manager/package_sparkfun_index.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,24 @@
100100
{ "name":"SparkFun SAMD21 Dev Breakout" }
101101
],
102102
"toolsDependencies":[]
103+
},
104+
{
105+
"name":"SparkFun SAMD Boards (dependency: Arduino SAMD Boards 1.6.6)",
106+
"architecture":"samd",
107+
"version":"1.2.1",
108+
"category":"Contributed",
109+
"url":"https://github.com/sparkfun/Arduino_Boards/raw/master/IDE_Board_Manager/sparkfun-samd-1.2.1.tar.bz2",
110+
"archiveFileName":"sparkfun-samd-1.2.1.tar.bz2",
111+
"checksum":"SHA-256:63b90fb26a18a89b2f51556a08286117cdade38d6cb7a16eb1eccb7d1d92422a",
112+
"size":"280405",
113+
"help":{
114+
"online":"https://forums.sparkfun.com"
115+
},
116+
"boards":[
117+
{ "name":"SparkFun SAMD21 Mini Breakout" },
118+
{ "name":"SparkFun SAMD21 Dev Breakout" }
119+
],
120+
"toolsDependencies":[]
103121
}
104122
],
105123
"tools":[]
274 KB
Binary file not shown.

sparkfun/samd/variants/arduino_zero/variant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const PinDescription g_APinDescription[]=
134134
{ PORTA, 19, PIO_TIMER_ALT, (PIN_ATTR_DIGITAL|PIN_ATTR_PWM|PIN_ATTR_TIMER_ALT), No_ADC_Channel, PWM0_CH3, TCC0_CH3, EXTERNAL_INT_3 }, // TCC0/WO[3]
135135

136136
// 13 (LED)
137-
{ PORTA, 17, PIO_PWM, (PIN_ATTR_DIGITAL|PIN_ATTR_PWM), No_ADC_Channel, PWM2_CH1, NOT_ON_TIMER, EXTERNAL_INT_1 }, // TCC2/WO[1]
137+
{ PORTA, 17, PIO_PWM, (PIN_ATTR_DIGITAL|PIN_ATTR_PWM|PIN_ATTR_TIMER), No_ADC_Channel, PWM2_CH1, TCC2_CH1, EXTERNAL_INT_1 }, // TCC2/WO[1]
138138

139139
// 14..19 - Analog pins
140140
// --------------------

0 commit comments

Comments
 (0)