Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-nRF5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-nRF5
Commits
e4d75a50
Commit
e4d75a50
authored
Feb 19, 2018
by
probonopd
Committed by
Sandeep Mistry
Feb 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document meaning of pin names to match silkscreen/schematics, closes #251
parent
12e77a11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
variants/Generic/variant.h
variants/Generic/variant.h
+15
-15
No files found.
variants/Generic/variant.h
View file @
e4d75a50
...
@@ -42,18 +42,18 @@ extern "C"
...
@@ -42,18 +42,18 @@ extern "C"
#define NUM_ANALOG_OUTPUTS (0u)
#define NUM_ANALOG_OUTPUTS (0u)
// LEDs
// LEDs
#define PIN_LED (13)
#define PIN_LED (13)
// P0.13
#define LED_BUILTIN PIN_LED
#define LED_BUILTIN PIN_LED
/*
/*
* Analog pins
* Analog pins
*/
*/
#define PIN_A0 (1)
#define PIN_A0 (1)
// P0.01
#define PIN_A1 (2)
#define PIN_A1 (2)
// P0.02
#define PIN_A2 (3)
#define PIN_A2 (3)
// P0.03
#define PIN_A3 (4)
#define PIN_A3 (4)
// P0.04
#define PIN_A4 (5)
#define PIN_A4 (5)
// P0.05
#define PIN_A5 (6)
#define PIN_A5 (6)
// P0.06
static
const
uint8_t
A0
=
PIN_A0
;
static
const
uint8_t
A0
=
PIN_A0
;
static
const
uint8_t
A1
=
PIN_A1
;
static
const
uint8_t
A1
=
PIN_A1
;
...
@@ -71,19 +71,19 @@ static const uint8_t A5 = PIN_A5 ;
...
@@ -71,19 +71,19 @@ static const uint8_t A5 = PIN_A5 ;
* Serial interfaces
* Serial interfaces
*/
*/
// Serial
// Serial
#define PIN_SERIAL_RX (0)
#define PIN_SERIAL_RX (0)
// P0.00
#define PIN_SERIAL_TX (1)
#define PIN_SERIAL_TX (1)
// P0.01
/*
/*
* SPI Interfaces
* SPI Interfaces
*/
*/
#define SPI_INTERFACES_COUNT 1
#define SPI_INTERFACES_COUNT 1
#define PIN_SPI_MISO (22)
#define PIN_SPI_MISO (22)
// P0.22
#define PIN_SPI_MOSI (23)
#define PIN_SPI_MOSI (23)
// P0.23
#define PIN_SPI_SCK (24)
#define PIN_SPI_SCK (24)
// P0.24
static
const
uint8_t
SS
=
25
;
static
const
uint8_t
SS
=
25
;
// P0.25
static
const
uint8_t
MOSI
=
PIN_SPI_MOSI
;
static
const
uint8_t
MOSI
=
PIN_SPI_MOSI
;
static
const
uint8_t
MISO
=
PIN_SPI_MISO
;
static
const
uint8_t
MISO
=
PIN_SPI_MISO
;
static
const
uint8_t
SCK
=
PIN_SPI_SCK
;
static
const
uint8_t
SCK
=
PIN_SPI_SCK
;
...
@@ -93,8 +93,8 @@ static const uint8_t SCK = PIN_SPI_SCK ;
...
@@ -93,8 +93,8 @@ static const uint8_t SCK = PIN_SPI_SCK ;
*/
*/
#define WIRE_INTERFACES_COUNT 1
#define WIRE_INTERFACES_COUNT 1
#define PIN_WIRE_SDA (20u)
#define PIN_WIRE_SDA (20u)
// P0.20
#define PIN_WIRE_SCL (21u)
#define PIN_WIRE_SCL (21u)
// P0.21
static
const
uint8_t
SDA
=
PIN_WIRE_SDA
;
static
const
uint8_t
SDA
=
PIN_WIRE_SDA
;
static
const
uint8_t
SCL
=
PIN_WIRE_SCL
;
static
const
uint8_t
SCL
=
PIN_WIRE_SCL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment