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
f1a8c8b1
Commit
f1a8c8b1
authored
10 years ago
by
Thibaut VIARD
Browse files
Options
Downloads
Patches
Plain Diff
Update pin numbers according to recent changes
Signed-off-by:
Thibaut VIARD
<
thibaut.viard@atmel.com
>
parent
ddc326e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libraries/SPI/SPI.cpp
+1
-1
1 addition, 1 deletion
libraries/SPI/SPI.cpp
variants/arduino_zero/variant.cpp
+2
-2
2 additions, 2 deletions
variants/arduino_zero/variant.cpp
variants/arduino_zero/variant.h
+13
-2
13 additions, 2 deletions
variants/arduino_zero/variant.h
with
16 additions
and
5 deletions
libraries/SPI/SPI.cpp
+
1
−
1
View file @
f1a8c8b1
...
...
@@ -98,4 +98,4 @@ void SPIClass::detachInterrupt() {
// Should be disableInterrupt()
}
SPIClass
SPI
(
&
sercom4
,
18
,
20
,
21
)
;
SPIClass
SPI
(
&
sercom4
,
PIN_SPI_MISO
,
PIN_SPI_SCK
,
PIN_SPI_MOSI
)
;
This diff is collapsed.
Click to expand it.
variants/arduino_zero/variant.cpp
+
2
−
2
View file @
f1a8c8b1
...
...
@@ -207,5 +207,5 @@ SERCOM sercom3( SERCOM3 ) ;
SERCOM
sercom4
(
SERCOM4
)
;
SERCOM
sercom5
(
SERCOM5
)
;
Uart
Serial1
(
&
sercom0
,
0
,
1
)
;
Uart
Serial
(
&
sercom5
,
36
,
35
)
;
Uart
Serial1
(
&
sercom0
,
PIN_SERIAL_RX
,
PIN_SERIAL_TX
)
;
Uart
Serial
(
&
sercom5
,
PIN_SERIAL_RX
,
PIN_SERIAL_TX
)
;
This diff is collapsed.
Click to expand it.
variants/arduino_zero/variant.h
+
13
−
2
View file @
f1a8c8b1
...
...
@@ -94,6 +94,17 @@ static const uint8_t A4 = PIN_A4 ;
static
const
uint8_t
A5
=
PIN_A5
;
#define ADC_RESOLUTION 12
/*
* Serial interfaces
*/
// Serial (EDBG)
#define PIN_SERIAL_RX (31ul)
#define PIN_SERIAL_TX (30ul)
// Serial1
#define PIN_SERIAL1_RX (0ul)
#define PIN_SERIAL1_TX (1ul)
/*
* SPI Interfaces
*/
...
...
@@ -198,11 +209,11 @@ extern Uart Serial1;
//
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
// pins are NOT connected to anything by default.
#define SERIAL_PORT_MONITOR Serial
#define SERIAL_PORT_USBVIRTUAL SerialUSB
#define SERIAL_PORT_HARDWARE_OPEN Serial1
#define SERIAL_PORT_HARDWARE Serial
#define SERIAL_PORT_HARDWARE1 Serial1
#define SERIAL_PORT_MONITOR SERIAL_PORT_HARDWARE
#define SERIAL_PORT_HARDWARE_OPEN SERIAL_PORT_HARDWARE1
#endif
/* _VARIANT_ARDUINO_ZERO_ */
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