Skip to content

Commit 68d4a93

Browse files
committed
Upgraded variant compliance to 1.6.6 for MKRZero board
1 parent e16ece2 commit 68d4a93

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

variants/mkrzero/variant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const PinDescription g_APinDescription[] = {
153153

154154
{ PORTA, 28, PIO_DIGITAL, (PIN_ATTR_NONE ), No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE },
155155
{ PORTB, 8, PIO_DIGITAL, (PIN_ATTR_NONE ), No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE },
156-
{ PORTB, 9, PIO_ANALOG, (PIN_ATTR_PWM|PIN_ATTR_TIMER), ADC_Channel3, PWM4_CH1, TC4_CH1, EXTERNAL_INT_9 },
156+
{ PORTB, 9, PIO_ANALOG, (PIN_ATTR_PWM|PIN_ATTR_TIMER ), ADC_Channel3, PWM4_CH1, TC4_CH1, EXTERNAL_INT_9 },
157157

158158
{ PORTA, 0, PIO_DIGITAL, (PIN_ATTR_NONE ), No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE },
159159
{ PORTA, 1, PIO_DIGITAL, (PIN_ATTR_NONE ), No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE },

variants/mkrzero/variant.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
#pragma once
2020

21-
// The definitions here needs a SAMD core >=1.6.3
22-
#define ARDUINO_SAMD_VARIANT_COMPLIANCE 10603
21+
// The definitions here needs a SAMD core >=1.6.6
22+
#define ARDUINO_SAMD_VARIANT_COMPLIANCE 10606
2323

2424
#include <WVariant.h>
2525

@@ -50,7 +50,6 @@
5050
#define portInputRegister(port) (&(port->IN.reg))
5151
#define portModeRegister(port) (&(port->DIR.reg))
5252
#define digitalPinHasPWM(P) (g_APinDescription[P].ulPWMChannel != NOT_ON_PWM || g_APinDescription[P].ulTCChannel != NOT_ON_TIMER)
53-
#define digitalPinToInterrupt(P) (g_APinDescription[P].ulExtInt)
5453

5554
/*
5655
* digitalPinToTimer(..) is AVR-specific and is not defined for SAMD

0 commit comments

Comments
 (0)