Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Arduino Core for SAMD21 CPU
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
josc941e
Arduino Core for SAMD21 CPU
Commits
68d4a933
Commit
68d4a933
authored
8 years ago
by
Cristian Maglie
Browse files
Options
Downloads
Patches
Plain Diff
Upgraded variant compliance to 1.6.6 for MKRZero board
parent
e16ece2d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
variants/mkrzero/variant.cpp
+1
-1
1 addition, 1 deletion
variants/mkrzero/variant.cpp
variants/mkrzero/variant.h
+2
-3
2 additions, 3 deletions
variants/mkrzero/variant.h
with
3 additions
and
4 deletions
variants/mkrzero/variant.cpp
+
1
−
1
View file @
68d4a933
...
...
@@ -153,7 +153,7 @@ const PinDescription g_APinDescription[] = {
{
PORTA
,
28
,
PIO_DIGITAL
,
(
PIN_ATTR_NONE
),
No_ADC_Channel
,
NOT_ON_PWM
,
NOT_ON_TIMER
,
EXTERNAL_INT_NONE
},
{
PORTB
,
8
,
PIO_DIGITAL
,
(
PIN_ATTR_NONE
),
No_ADC_Channel
,
NOT_ON_PWM
,
NOT_ON_TIMER
,
EXTERNAL_INT_NONE
},
{
PORTB
,
9
,
PIO_ANALOG
,
(
PIN_ATTR_PWM
|
PIN_ATTR_TIMER
),
ADC_Channel3
,
PWM4_CH1
,
TC4_CH1
,
EXTERNAL_INT_9
},
{
PORTB
,
9
,
PIO_ANALOG
,
(
PIN_ATTR_PWM
|
PIN_ATTR_TIMER
),
ADC_Channel3
,
PWM4_CH1
,
TC4_CH1
,
EXTERNAL_INT_9
},
{
PORTA
,
0
,
PIO_DIGITAL
,
(
PIN_ATTR_NONE
),
No_ADC_Channel
,
NOT_ON_PWM
,
NOT_ON_TIMER
,
EXTERNAL_INT_NONE
},
{
PORTA
,
1
,
PIO_DIGITAL
,
(
PIN_ATTR_NONE
),
No_ADC_Channel
,
NOT_ON_PWM
,
NOT_ON_TIMER
,
EXTERNAL_INT_NONE
},
...
...
This diff is collapsed.
Click to expand it.
variants/mkrzero/variant.h
+
2
−
3
View file @
68d4a933
...
...
@@ -18,8 +18,8 @@
#pragma once
// The definitions here needs a SAMD core >=1.6.
3
#define ARDUINO_SAMD_VARIANT_COMPLIANCE 1060
3
// The definitions here needs a SAMD core >=1.6.
6
#define ARDUINO_SAMD_VARIANT_COMPLIANCE 1060
6
#include
<WVariant.h>
...
...
@@ -50,7 +50,6 @@
#define portInputRegister(port) (&(port->IN.reg))
#define portModeRegister(port) (&(port->DIR.reg))
#define digitalPinHasPWM(P) (g_APinDescription[P].ulPWMChannel != NOT_ON_PWM || g_APinDescription[P].ulTCChannel != NOT_ON_TIMER)
#define digitalPinToInterrupt(P) (g_APinDescription[P].ulExtInt)
/*
* digitalPinToTimer(..) is AVR-specific and is not defined for SAMD
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment