Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
ff609762
Commit
ff609762
authored
9 years ago
by
Hauke Petersen
Browse files
Options
Downloads
Patches
Plain Diff
boards/arduino-due: fixed Arduino pin definitions
parent
80023f07
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
boards/arduino-due/include/arduino_pinmap.h
+81
-79
81 additions, 79 deletions
boards/arduino-due/include/arduino_pinmap.h
with
81 additions
and
79 deletions
boards/arduino-due/include/arduino_pinmap.h
+
81
−
79
View file @
ff609762
...
...
@@ -22,6 +22,8 @@
#ifndef ARDUINO_PINMAP_H
#define ARDUINO_PINMAP_H
#include
"periph/gpio.h"
#ifdef __cplusplus
extern
"C"
{
#endif
...
...
@@ -30,85 +32,85 @@ extern "C" {
* @brief Mapping of MCU pins to Arduino pins
* @{
*/
#define ARDUINO_PIN_0 GPIO_PIN(P
ORT_
A, 8)
#define ARDUINO_PIN_1 GPIO_PIN(P
ORT_
A, 9)
#define ARDUINO_PIN_2 GPIO_PIN(P
ORT_
B, 25)
#define ARDUINO_PIN_3 GPIO_PIN(P
ORT_
C, 28)
#define ARDUINO_PIN_4 GPIO_PIN(P
ORT_
A, 29)
#define ARDUINO_PIN_5 GPIO_PIN(P
ORT_
C, 25)
#define ARDUINO_PIN_6 GPIO_PIN(P
ORT_
C, 24)
#define ARDUINO_PIN_7 GPIO_PIN(P
ORT_
C, 23)
#define ARDUINO_PIN_8 GPIO_PIN(P
ORT_
C, 22)
#define ARDUINO_PIN_9 GPIO_PIN(P
ORT_
C, 21)
#define ARDUINO_PIN_10 GPIO_PIN(P
ORT_
A, 2)
#define ARDUINO_PIN_11 GPIO_PIN(P
ORT_
D, 7)
#define ARDUINO_PIN_12 GPIO_PIN(P
ORT_
D, 8)
#define ARDUINO_PIN_13 GPIO_PIN(P
ORT_
B, 27)
#define ARDUINO_PIN_14 GPIO_PIN(P
ORT_
D, 4)
#define ARDUINO_PIN_15 GPIO_PIN(P
ORT_
D, 5)
#define ARDUINO_PIN_16 GPIO_PIN(P
ORT_
A, 13)
#define ARDUINO_PIN_17 GPIO_PIN(P
ORT_
A, 12)
#define ARDUINO_PIN_18 GPIO_PIN(P
ORT_
A, 11)
#define ARDUINO_PIN_19 GPIO_PIN(P
ORT_
A, 10)
#define ARDUINO_PIN_20 GPIO_PIN(P
ORT_
B, 12)
#define ARDUINO_PIN_21 GPIO_PIN(P
ORT_
B, 13)
#define ARDUINO_PIN_22 GPIO_PIN(P
ORT_
B, 26)
#define ARDUINO_PIN_23 GPIO_PIN(P
ORT_
A, 14)
#define ARDUINO_PIN_24 GPIO_PIN(P
ORT_
A, 15)
#define ARDUINO_PIN_25 GPIO_PIN(P
ORT_
D, 0)
#define ARDUINO_PIN_26 GPIO_PIN(P
ORT_
D, 1)
#define ARDUINO_PIN_27 GPIO_PIN(P
ORT_
D, 2)
#define ARDUINO_PIN_28 GPIO_PIN(P
ORT_
D, 3)
#define ARDUINO_PIN_29 GPIO_PIN(P
ORT_
D, 6)
#define ARDUINO_PIN_30 GPIO_PIN(P
ORT_
D, 9)
#define ARDUINO_PIN_31 GPIO_PIN(P
ORT_
A, 7)
#define ARDUINO_PIN_32 GPIO_PIN(P
ORT_
D, 10)
#define ARDUINO_PIN_33 GPIO_PIN(P
ORT_
C, 1)
#define ARDUINO_PIN_34 GPIO_PIN(P
ORT_
C, 2)
#define ARDUINO_PIN_35 GPIO_PIN(P
ORT_
C, 3)
#define ARDUINO_PIN_36 GPIO_PIN(P
ORT_
C, 4)
#define ARDUINO_PIN_37 GPIO_PIN(P
ORT_
C, 5)
#define ARDUINO_PIN_38 GPIO_PIN(P
ORT_
C, 6)
#define ARDUINO_PIN_39 GPIO_PIN(P
ORT_
C, 7)
#define ARDUINO_PIN_40 GPIO_PIN(P
ORT_
C, 8)
#define ARDUINO_PIN_41 GPIO_PIN(P
ORT_
C, 9)
#define ARDUINO_PIN_42 GPIO_PIN(P
ORT_
A, 19)
#define ARDUINO_PIN_43 GPIO_PIN(P
ORT_
A, 20)
#define ARDUINO_PIN_44 GPIO_PIN(P
ORT_
C, 19)
#define ARDUINO_PIN_45 GPIO_PIN(P
ORT_
C, 18)
#define ARDUINO_PIN_46 GPIO_PIN(P
ORT_
C, 17)
#define ARDUINO_PIN_47 GPIO_PIN(P
ORT_
C, 16)
#define ARDUINO_PIN_48 GPIO_PIN(P
ORT_
C, 15)
#define ARDUINO_PIN_49 GPIO_PIN(P
ORT_
C, 14)
#define ARDUINO_PIN_50 GPIO_PIN(P
ORT_
C, 13)
#define ARDUINO_PIN_51 GPIO_PIN(P
ORT_
C, 12)
#define ARDUINO_PIN_52 GPIO_PIN(P
ORT_
B, 21)
#define ARDUINO_PIN_53 GPIO_PIN(P
ORT_
B, 14)
#define ARDUINO_PIN_54 GPIO_PIN(P
ORT_
A, 16)
#define ARDUINO_PIN_55 GPIO_PIN(P
ORT_
A, 24)
#define ARDUINO_PIN_56 GPIO_PIN(P
ORT_
A, 23)
#define ARDUINO_PIN_57 GPIO_PIN(P
ORT_
A, 22)
#define ARDUINO_PIN_58 GPIO_PIN(P
ORT_
A, 6)
#define ARDUINO_PIN_59 GPIO_PIN(P
ORT_
A, 4)
#define ARDUINO_PIN_60 GPIO_PIN(P
ORT_
A, 3)
#define ARDUINO_PIN_61 GPIO_PIN(P
ORT_
A, 2)
#define ARDUINO_PIN_62 GPIO_PIN(P
ORT_
B, 17)
#define ARDUINO_PIN_63 GPIO_PIN(P
ORT_
B, 18)
#define ARDUINO_PIN_64 GPIO_PIN(P
ORT_
B, 19)
#define ARDUINO_PIN_65 GPIO_PIN(P
ORT_
B, 20)
#define ARDUINO_PIN_66 GPIO_PIN(P
ORT_
B, 15)
#define ARDUINO_PIN_67 GPIO_PIN(P
ORT_
B, 16)
#define ARDUINO_PIN_68 GPIO_PIN(P
ORT_
A, 1)
#define ARDUINO_PIN_69 GPIO_PIN(P
ORT_
A, 0)
#define ARDUINO_PIN_70 GPIO_PIN(P
ORT_
A, 17)
#define ARDUINO_PIN_71 GPIO_PIN(P
ORT_
A, 18)
#define ARDUINO_PIN_72 GPIO_PIN(P
ORT_
C, 30)
#define ARDUINO_PIN_73 GPIO_PIN(P
ORT_
A, 21)
#define ARDUINO_PIN_74 GPIO_PIN(P
ORT_
A, 25)
#define ARDUINO_PIN_75 GPIO_PIN(P
ORT_
A, 26)
#define ARDUINO_PIN_76 GPIO_PIN(P
ORT_
A, 27)
#define ARDUINO_PIN_77 GPIO_PIN(P
ORT_
A, 28)
#define ARDUINO_PIN_78 GPIO_PIN(P
ORT_
B, 23)
#define ARDUINO_PIN_0 GPIO_PIN(PA, 8)
#define ARDUINO_PIN_1 GPIO_PIN(PA, 9)
#define ARDUINO_PIN_2 GPIO_PIN(PB, 25)
#define ARDUINO_PIN_3 GPIO_PIN(PC, 28)
#define ARDUINO_PIN_4 GPIO_PIN(PA, 29)
#define ARDUINO_PIN_5 GPIO_PIN(PC, 25)
#define ARDUINO_PIN_6 GPIO_PIN(PC, 24)
#define ARDUINO_PIN_7 GPIO_PIN(PC, 23)
#define ARDUINO_PIN_8 GPIO_PIN(PC, 22)
#define ARDUINO_PIN_9 GPIO_PIN(PC, 21)
#define ARDUINO_PIN_10 GPIO_PIN(PA, 2)
#define ARDUINO_PIN_11 GPIO_PIN(PD, 7)
#define ARDUINO_PIN_12 GPIO_PIN(PD, 8)
#define ARDUINO_PIN_13 GPIO_PIN(PB, 27)
#define ARDUINO_PIN_14 GPIO_PIN(PD, 4)
#define ARDUINO_PIN_15 GPIO_PIN(PD, 5)
#define ARDUINO_PIN_16 GPIO_PIN(PA, 13)
#define ARDUINO_PIN_17 GPIO_PIN(PA, 12)
#define ARDUINO_PIN_18 GPIO_PIN(PA, 11)
#define ARDUINO_PIN_19 GPIO_PIN(PA, 10)
#define ARDUINO_PIN_20 GPIO_PIN(PB, 12)
#define ARDUINO_PIN_21 GPIO_PIN(PB, 13)
#define ARDUINO_PIN_22 GPIO_PIN(PB, 26)
#define ARDUINO_PIN_23 GPIO_PIN(PA, 14)
#define ARDUINO_PIN_24 GPIO_PIN(PA, 15)
#define ARDUINO_PIN_25 GPIO_PIN(PD, 0)
#define ARDUINO_PIN_26 GPIO_PIN(PD, 1)
#define ARDUINO_PIN_27 GPIO_PIN(PD, 2)
#define ARDUINO_PIN_28 GPIO_PIN(PD, 3)
#define ARDUINO_PIN_29 GPIO_PIN(PD, 6)
#define ARDUINO_PIN_30 GPIO_PIN(PD, 9)
#define ARDUINO_PIN_31 GPIO_PIN(PA, 7)
#define ARDUINO_PIN_32 GPIO_PIN(PD, 10)
#define ARDUINO_PIN_33 GPIO_PIN(PC, 1)
#define ARDUINO_PIN_34 GPIO_PIN(PC, 2)
#define ARDUINO_PIN_35 GPIO_PIN(PC, 3)
#define ARDUINO_PIN_36 GPIO_PIN(PC, 4)
#define ARDUINO_PIN_37 GPIO_PIN(PC, 5)
#define ARDUINO_PIN_38 GPIO_PIN(PC, 6)
#define ARDUINO_PIN_39 GPIO_PIN(PC, 7)
#define ARDUINO_PIN_40 GPIO_PIN(PC, 8)
#define ARDUINO_PIN_41 GPIO_PIN(PC, 9)
#define ARDUINO_PIN_42 GPIO_PIN(PA, 19)
#define ARDUINO_PIN_43 GPIO_PIN(PA, 20)
#define ARDUINO_PIN_44 GPIO_PIN(PC, 19)
#define ARDUINO_PIN_45 GPIO_PIN(PC, 18)
#define ARDUINO_PIN_46 GPIO_PIN(PC, 17)
#define ARDUINO_PIN_47 GPIO_PIN(PC, 16)
#define ARDUINO_PIN_48 GPIO_PIN(PC, 15)
#define ARDUINO_PIN_49 GPIO_PIN(PC, 14)
#define ARDUINO_PIN_50 GPIO_PIN(PC, 13)
#define ARDUINO_PIN_51 GPIO_PIN(PC, 12)
#define ARDUINO_PIN_52 GPIO_PIN(PB, 21)
#define ARDUINO_PIN_53 GPIO_PIN(PB, 14)
#define ARDUINO_PIN_54 GPIO_PIN(PA, 16)
#define ARDUINO_PIN_55 GPIO_PIN(PA, 24)
#define ARDUINO_PIN_56 GPIO_PIN(PA, 23)
#define ARDUINO_PIN_57 GPIO_PIN(PA, 22)
#define ARDUINO_PIN_58 GPIO_PIN(PA, 6)
#define ARDUINO_PIN_59 GPIO_PIN(PA, 4)
#define ARDUINO_PIN_60 GPIO_PIN(PA, 3)
#define ARDUINO_PIN_61 GPIO_PIN(PA, 2)
#define ARDUINO_PIN_62 GPIO_PIN(PB, 17)
#define ARDUINO_PIN_63 GPIO_PIN(PB, 18)
#define ARDUINO_PIN_64 GPIO_PIN(PB, 19)
#define ARDUINO_PIN_65 GPIO_PIN(PB, 20)
#define ARDUINO_PIN_66 GPIO_PIN(PB, 15)
#define ARDUINO_PIN_67 GPIO_PIN(PB, 16)
#define ARDUINO_PIN_68 GPIO_PIN(PA, 1)
#define ARDUINO_PIN_69 GPIO_PIN(PA, 0)
#define ARDUINO_PIN_70 GPIO_PIN(PA, 17)
#define ARDUINO_PIN_71 GPIO_PIN(PA, 18)
#define ARDUINO_PIN_72 GPIO_PIN(PC, 30)
#define ARDUINO_PIN_73 GPIO_PIN(PA, 21)
#define ARDUINO_PIN_74 GPIO_PIN(PA, 25)
#define ARDUINO_PIN_75 GPIO_PIN(PA, 26)
#define ARDUINO_PIN_76 GPIO_PIN(PA, 27)
#define ARDUINO_PIN_77 GPIO_PIN(PA, 28)
#define ARDUINO_PIN_78 GPIO_PIN(PB, 23)
/** @ */
#ifdef __cplusplus
...
...
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