@@ -244,36 +244,36 @@ const (
244244// easy to check whether a nibble is set at all.
245245//
246246// Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/60001507E.pdf
247- var pinPadMapping = [32 ]uint16 {
247+ var pinPadMapping = [64 ]uint16 {
248248 // page 32
249249 PA00 / 2 : 0 | pinPadMapSERCOM1AltPad0 ,
250250
251251 // page 33
252252 PB08 / 2 : 0 | pinPadMapSERCOM4AltPad0 ,
253253 PA04 / 2 : 0 | pinPadMapSERCOM0AltPad0 ,
254254 PA06 / 2 : 0 | pinPadMapSERCOM0AltPad2 ,
255- // PC04 / 2: pinPadMapSERCOM6Pad0 | 0,
256- // PC06 / 2: pinPadMapSERCOM6Pad2 | 0,
255+ PC04 / 2 : pinPadMapSERCOM6Pad0 | 0 ,
256+ PC06 / 2 : pinPadMapSERCOM6Pad2 | 0 ,
257257 PA08 / 2 : pinPadMapSERCOM0Pad0 | pinPadMapSERCOM2AltPad1 ,
258258 PA10 / 2 : pinPadMapSERCOM0Pad2 | pinPadMapSERCOM2AltPad2 ,
259259 PB10 / 2 : 0 | pinPadMapSERCOM4AltPad2 ,
260260 PB12 / 2 : pinPadMapSERCOM4Pad0 | 0 ,
261261 PB14 / 2 : pinPadMapSERCOM4Pad2 | 0 ,
262- // PD08 / 2: pinPadMapSERCOM7Pad0 | pinPadMapSERCOM6AltPad1,
263- // PD10 / 2: pinPadMapSERCOM7Pad2 | pinPadMapSERCOM6AltPad2,
264- // PC10 / 2: pinPadMapSERCOM6Pad2 | pinPadMapSERCOM7AltPad2,
262+ PD08 / 2 : pinPadMapSERCOM7Pad0 | pinPadMapSERCOM6AltPad1 ,
263+ PD10 / 2 : pinPadMapSERCOM7Pad2 | pinPadMapSERCOM6AltPad2 ,
264+ PC10 / 2 : pinPadMapSERCOM6Pad2 | pinPadMapSERCOM7AltPad2 ,
265265
266266 // page 34
267- // PC12 / 2: pinPadMapSERCOM7Pad0 | pinPadMapSERCOM6AltPad1,
268- // PC14 / 2: pinPadMapSERCOM7Pad2 | pinPadMapSERCOM6AltPad2,
267+ PC12 / 2 : pinPadMapSERCOM7Pad0 | pinPadMapSERCOM6AltPad1 ,
268+ PC14 / 2 : pinPadMapSERCOM7Pad2 | pinPadMapSERCOM6AltPad2 ,
269269 PA12 / 2 : pinPadMapSERCOM2Pad0 | pinPadMapSERCOM4AltPad1 ,
270270 PA14 / 2 : pinPadMapSERCOM2Pad2 | pinPadMapSERCOM4AltPad2 ,
271271 PA16 / 2 : pinPadMapSERCOM1Pad0 | pinPadMapSERCOM3AltPad1 ,
272272 PA18 / 2 : pinPadMapSERCOM1Pad2 | pinPadMapSERCOM3AltPad2 ,
273- // PC16 / 2: pinPadMapSERCOM6Pad0 | pinPadMapSERCOM0AltPad1,
274- // PC18 / 2: pinPadMapSERCOM6Pad2 | pinPadMapSERCOM0AltPad2,
275- // PC22 / 2: pinPadMapSERCOM1Pad0 | pinPadMapSERCOM3AltPad1,
276- // PD20 / 2: pinPadMapSERCOM1Pad2 | pinPadMapSERCOM3AltPad2,
273+ PC16 / 2 : pinPadMapSERCOM6Pad0 | pinPadMapSERCOM0AltPad1 ,
274+ PC18 / 2 : pinPadMapSERCOM6Pad2 | pinPadMapSERCOM0AltPad2 ,
275+ PC22 / 2 : pinPadMapSERCOM1Pad0 | pinPadMapSERCOM3AltPad1 ,
276+ PD20 / 2 : pinPadMapSERCOM1Pad2 | pinPadMapSERCOM3AltPad2 ,
277277 PB16 / 2 : pinPadMapSERCOM5Pad0 | 0 ,
278278 PB18 / 2 : pinPadMapSERCOM5Pad2 | pinPadMapSERCOM7AltPad2 ,
279279
@@ -286,7 +286,7 @@ var pinPadMapping = [32]uint16{
286286 PB24 / 2 : pinPadMapSERCOM0Pad0 | pinPadMapSERCOM2AltPad1 ,
287287 PB26 / 2 : pinPadMapSERCOM2Pad0 | pinPadMapSERCOM4AltPad1 ,
288288 PB28 / 2 : pinPadMapSERCOM2Pad2 | pinPadMapSERCOM4AltPad2 ,
289- // PC24 / 2: pinPadMapSERCOM0Pad2 | pinPadMapSERCOM2AltPad2,
289+ PC24 / 2 : pinPadMapSERCOM0Pad2 | pinPadMapSERCOM2AltPad2 ,
290290 //PC26 / 2: pinPadMapSERCOM1Pad1 | 0, // note: PC26 doesn't support SERCOM, but PC27 does
291291 //PC28 / 2: pinPadMapSERCOM1Pad1 | 0, // note: PC29 doesn't exist in the datasheet?
292292 PA30 / 2 : 0 | pinPadMapSERCOM1AltPad2 ,
0 commit comments