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
68ba177e
Commit
68ba177e
authored
10 years ago
by
Cristian Maglie
Committed by
Cristian Maglie
10 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #40 from LeGeek/zero
Fixing Analog Reference values
parents
cdfd4c27
474dc689
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cores/arduino/wiring_analog.c
+2
-2
2 additions, 2 deletions
cores/arduino/wiring_analog.c
cores/arduino/wiring_analog.h
+2
-2
2 additions, 2 deletions
cores/arduino/wiring_analog.h
with
4 additions
and
4 deletions
cores/arduino/wiring_analog.c
+
2
−
2
View file @
68ba177e
...
...
@@ -31,12 +31,12 @@ void analogReference( eAnalogReference ulMode )
switch
(
ulMode
)
{
case
AR_DEFAULT
:
case
INTERNAL
:
case
AR_
INTERNAL
:
default:
ADC
->
REFCTRL
.
bit
.
REFSEL
=
ADC_REFCTRL_REFSEL_INT1V_Val
;
break
;
case
EXTERNAL
:
case
AR_
EXTERNAL
:
ADC
->
REFCTRL
.
bit
.
REFSEL
=
ADC_REFCTRL_REFSEL_AREFA_Val
;
break
;
}
...
...
This diff is collapsed.
Click to expand it.
cores/arduino/wiring_analog.h
+
2
−
2
View file @
68ba177e
...
...
@@ -31,8 +31,8 @@ extern "C" {
typedef
enum
_eAnalogReference
{
AR_DEFAULT
,
INTERNAL
,
EXTERNAL
AR_
INTERNAL
,
AR_
EXTERNAL
}
eAnalogReference
;
...
...
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