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
43b1fcd0
Commit
43b1fcd0
authored
10 years ago
by
Jonathan BAUDIN
Browse files
Options
Downloads
Patches
Plain Diff
Correction about the names of few enumerations
parent
f478a172
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cores/arduino/SERCOM.h
+10
-10
10 additions, 10 deletions
cores/arduino/SERCOM.h
cores/arduino/SERCOMUart.cpp
+2
-2
2 additions, 2 deletions
cores/arduino/SERCOMUart.cpp
with
12 additions
and
12 deletions
cores/arduino/SERCOM.h
+
10
−
10
View file @
43b1fcd0
...
...
@@ -32,8 +32,8 @@ typedef enum
typedef
enum
{
1
_
STOP_BIT
=
0
,
2
_
STOP_BITS
STOP_BIT
_1
=
0
,
STOP_BITS
_2
}
SercomNumberStopBit
;
typedef
enum
...
...
@@ -44,11 +44,11 @@ typedef enum
typedef
enum
{
8
_
BITS
=
0
,
9
_
BITS
,
5
_
BITS
=
0x5u
,
6
_
BITS
,
7
_
BITS
BITS
_8
=
0
,
BITS
_9
,
BITS
_5
=
0x5u
,
BITS
_6
,
BITS
_7
}
SercomUartCharSize
;
typedef
enum
...
...
@@ -59,7 +59,7 @@ typedef enum
PAD_3
}
SercomRXPad
;
V
typedef
enum
typedef
enum
{
PAD_0
=
0
,
//Only for Intern Clock
PAD_1
=
0
,
//Only for Extern Clock
...
...
@@ -92,8 +92,8 @@ typedef enum
typedef
enum
{
8
_
BITS
=
0
,
9
_
BITS
=
1
BITS
_8
=
0
,
BITS
_9
=
1
}
SercomSpiCharSize
;
typedef
enum
...
...
This diff is collapsed.
Click to expand it.
cores/arduino/SERCOMUart.cpp
+
2
−
2
View file @
43b1fcd0
...
...
@@ -81,10 +81,10 @@ SercomNumberStopBit extractNbStopBit(uint8_t config)
{
case
STOP_BITE_1
:
default:
return
1
_
STOP_BIT
;
return
STOP_BIT
_1
;
case
STOP_BITE_2
:
return
2
_
STOP_BITS
;
return
STOP_BITS
_2
}
}
...
...
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