@@ -264,36 +264,36 @@ const (
264264// easy to check whether a nibble is set at all.
265265//
266266// Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/60001507E.pdf
267- var pinPadMapping = [32 ]uint16 {
267+ var pinPadMapping = [64 ]uint16 {
268268 // page 32
269269 PA00 / 2 : 0 | pinPadMapSERCOM1AltPad0 ,
270270
271271 // page 33
272272 PB08 / 2 : 0 | pinPadMapSERCOM4AltPad0 ,
273273 PA04 / 2 : 0 | pinPadMapSERCOM0AltPad0 ,
274274 PA06 / 2 : 0 | pinPadMapSERCOM0AltPad2 ,
275- // PC04 / 2: pinPadMapSERCOM6Pad0 | 0,
276- // PC06 / 2: pinPadMapSERCOM6Pad2 | 0,
275+ PC04 / 2 : pinPadMapSERCOM6Pad0 | 0 ,
276+ PC06 / 2 : pinPadMapSERCOM6Pad2 | 0 ,
277277 PA08 / 2 : pinPadMapSERCOM0Pad0 | pinPadMapSERCOM2AltPad1 ,
278278 PA10 / 2 : pinPadMapSERCOM0Pad2 | pinPadMapSERCOM2AltPad2 ,
279279 PB10 / 2 : 0 | pinPadMapSERCOM4AltPad2 ,
280280 PB12 / 2 : pinPadMapSERCOM4Pad0 | 0 ,
281281 PB14 / 2 : pinPadMapSERCOM4Pad2 | 0 ,
282- // PD08 / 2: pinPadMapSERCOM7Pad0 | pinPadMapSERCOM6AltPad1,
283- // PD10 / 2: pinPadMapSERCOM7Pad2 | pinPadMapSERCOM6AltPad2,
284- // PC10 / 2: pinPadMapSERCOM6Pad2 | pinPadMapSERCOM7AltPad2,
282+ PD08 / 2 : pinPadMapSERCOM7Pad0 | pinPadMapSERCOM6AltPad1 ,
283+ PD10 / 2 : pinPadMapSERCOM7Pad2 | pinPadMapSERCOM6AltPad2 ,
284+ PC10 / 2 : pinPadMapSERCOM6Pad2 | pinPadMapSERCOM7AltPad2 ,
285285
286286 // page 34
287- // PC12 / 2: pinPadMapSERCOM7Pad0 | pinPadMapSERCOM6AltPad1,
288- // PC14 / 2: pinPadMapSERCOM7Pad2 | pinPadMapSERCOM6AltPad2,
287+ PC12 / 2 : pinPadMapSERCOM7Pad0 | pinPadMapSERCOM6AltPad1 ,
288+ PC14 / 2 : pinPadMapSERCOM7Pad2 | pinPadMapSERCOM6AltPad2 ,
289289 PA12 / 2 : pinPadMapSERCOM2Pad0 | pinPadMapSERCOM4AltPad1 ,
290290 PA14 / 2 : pinPadMapSERCOM2Pad2 | pinPadMapSERCOM4AltPad2 ,
291291 PA16 / 2 : pinPadMapSERCOM1Pad0 | pinPadMapSERCOM3AltPad1 ,
292292 PA18 / 2 : pinPadMapSERCOM1Pad2 | pinPadMapSERCOM3AltPad2 ,
293- // PC16 / 2: pinPadMapSERCOM6Pad0 | pinPadMapSERCOM0AltPad1,
294- // PC18 / 2: pinPadMapSERCOM6Pad2 | pinPadMapSERCOM0AltPad2,
295- // PC22 / 2: pinPadMapSERCOM1Pad0 | pinPadMapSERCOM3AltPad1,
296- // PD20 / 2: pinPadMapSERCOM1Pad2 | pinPadMapSERCOM3AltPad2,
293+ PC16 / 2 : pinPadMapSERCOM6Pad0 | pinPadMapSERCOM0AltPad1 ,
294+ PC18 / 2 : pinPadMapSERCOM6Pad2 | pinPadMapSERCOM0AltPad2 ,
295+ PC22 / 2 : pinPadMapSERCOM1Pad0 | pinPadMapSERCOM3AltPad1 ,
296+ PD20 / 2 : pinPadMapSERCOM1Pad2 | pinPadMapSERCOM3AltPad2 ,
297297 PB16 / 2 : pinPadMapSERCOM5Pad0 | 0 ,
298298 PB18 / 2 : pinPadMapSERCOM5Pad2 | pinPadMapSERCOM7AltPad2 ,
299299
@@ -306,7 +306,7 @@ var pinPadMapping = [32]uint16{
306306 PB24 / 2 : pinPadMapSERCOM0Pad0 | pinPadMapSERCOM2AltPad1 ,
307307 PB26 / 2 : pinPadMapSERCOM2Pad0 | pinPadMapSERCOM4AltPad1 ,
308308 PB28 / 2 : pinPadMapSERCOM2Pad2 | pinPadMapSERCOM4AltPad2 ,
309- // PC24 / 2: pinPadMapSERCOM0Pad2 | pinPadMapSERCOM2AltPad2,
309+ PC24 / 2 : pinPadMapSERCOM0Pad2 | pinPadMapSERCOM2AltPad2 ,
310310 //PC26 / 2: pinPadMapSERCOM1Pad1 | 0, // note: PC26 doesn't support SERCOM, but PC27 does
311311 //PC28 / 2: pinPadMapSERCOM1Pad1 | 0, // note: PC29 doesn't exist in the datasheet?
312312 PA30 / 2 : 0 | pinPadMapSERCOM1AltPad2 ,
0 commit comments