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
a780f1f6
Commit
a780f1f6
authored
9 years ago
by
Thibaut VIARD
Browse files
Options
Downloads
Patches
Plain Diff
[zero] prepare variant for SPI and Wire board parameters
parent
f2cfe524
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
variants/arduino_zero/variant.h
+5
-0
5 additions, 0 deletions
variants/arduino_zero/variant.h
with
5 additions
and
0 deletions
variants/arduino_zero/variant.h
+
5
−
0
View file @
a780f1f6
...
...
@@ -129,6 +129,9 @@ static const uint8_t ATN = PIN_ATN;
#define PIN_SPI_MISO (22u)
#define PIN_SPI_MOSI (23u)
#define PIN_SPI_SCK (24u)
#define PERIPH_SPI sercom4
#define PAD_SPI_TX SPI_PAD_2_SCK_3
#define PAD_SPI_RX SERCOM_RX_PAD_0
static
const
uint8_t
SS
=
PIN_A2
;
// SERCOM4 last PAD is present on A2 but HW SS isn't used. Set here only for reference.
static
const
uint8_t
MOSI
=
PIN_SPI_MOSI
;
...
...
@@ -142,6 +145,8 @@ static const uint8_t SCK = PIN_SPI_SCK ;
#define PIN_WIRE_SDA (20u)
#define PIN_WIRE_SCL (21u)
#define PERIPH_WIRE sercom3
#define WIRE_IT_HANDLER SERCOM3_Handler
/*
* USB
...
...
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