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
2537ab3b
Commit
2537ab3b
authored
8 years ago
by
Cristian Maglie
Committed by
Sandeep Mistry
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
MKRZero: added definitions for SD library
parent
f9ed436e
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/mkrzero/variant.h
+7
-1
7 additions, 1 deletion
variants/mkrzero/variant.h
with
7 additions
and
1 deletion
variants/mkrzero/variant.h
+
7
−
1
View file @
2537ab3b
...
...
@@ -106,7 +106,6 @@ static const uint8_t MISO = PIN_SPI_MISO;
static
const
uint8_t
SCK
=
PIN_SPI_SCK
;
// SPI1: Connected to SD
#define USE_SPI1
#define PIN_SPI1_MISO (29u)
#define PIN_SPI1_MOSI (26u)
#define PIN_SPI1_SCK (27u)
...
...
@@ -119,6 +118,13 @@ static const uint8_t MOSI1 = PIN_SPI1_MOSI;
static
const
uint8_t
MISO1
=
PIN_SPI1_MISO
;
static
const
uint8_t
SCK1
=
PIN_SPI1_SCK
;
// Needed for SD library
#define SDCARD_SPI SPI1
#define SDCARD_MISO_PIN PIN_SPI1_MISO
#define SDCARD_MOSI_PIN PIN_SPI1_MOSI
#define SDCARD_SCK_PIN PIN_SPI1_SCK
#define SDCARD_SS_PIN PIN_SPI1_SS
// Wire Interfaces
// ---------------
#define WIRE_INTERFACES_COUNT 1
...
...
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