Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ArduinoZeroTemplate
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GRASP
ArduinoZeroTemplate
Commits
5bcd1242
Commit
5bcd1242
authored
2 years ago
by
Bengt Ragnemalm
Browse files
Options
Downloads
Patches
Plain Diff
Comments. Re-added adc
parent
63dd0fec
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ArduinoZeroTemplate.cproj
+1
-1
1 addition, 1 deletion
ArduinoZeroTemplate.cproj
src/ArduinoZeroTemplate.h
+2
-1
2 additions, 1 deletion
src/ArduinoZeroTemplate.h
src/macros.h
+2
-2
2 additions, 2 deletions
src/macros.h
with
5 additions
and
4 deletions
ArduinoZeroTemplate.cproj
+
1
−
1
View file @
5bcd1242
...
...
@@ -32,13 +32,13 @@
<framework-data>
<options>
<option
id=
"common.boards"
value=
"Add"
config=
""
content-id=
"Atmel.ASF"
/>
<option
id=
"sam0.drivers.adc"
value=
"Add"
config=
"polled"
content-id=
"Atmel.ASF"
/>
<option
id=
"sam0.drivers.dac"
value=
"Add"
config=
"polled"
content-id=
"Atmel.ASF"
/>
<option
id=
"sam0.drivers.port"
value=
"Add"
config=
""
content-id=
"Atmel.ASF"
/>
<option
id=
"sam0.drivers.rtc"
value=
"Add"
config=
"count_polled"
content-id=
"Atmel.ASF"
/>
<option
id=
"sam0.drivers.sercom.usart"
value=
"Add"
config=
"callback"
content-id=
"Atmel.ASF"
/>
<option
id=
"sam0.drivers.system"
value=
"Add"
config=
""
content-id=
"Atmel.ASF"
/>
<option
id=
"sam0.drivers.system.clock"
value=
"Add"
config=
""
content-id=
"Atmel.ASF"
/>
<option
id=
"sam0.drivers.adc"
value=
"Add"
config=
"polled"
content-id=
"Atmel.ASF"
/>
<option
id=
"sam0.drivers.wdt"
value=
"Add"
config=
"polled"
content-id=
"Atmel.ASF"
/>
<option
id=
"sam0.utils.linker_scripts"
value=
"Add"
config=
""
content-id=
"Atmel.ASF"
/>
</options>
...
...
This diff is collapsed.
Click to expand it.
src/ArduinoZeroTemplate.h
+
2
−
1
View file @
5bcd1242
...
...
@@ -137,7 +137,8 @@ Available for user
// USART5 in UART mode if used:
#define MAX_USART5_RX_BUFFER_LENGTH 5
// Really need to add analogue in!
// Analog in addition in progress
// Configuration shall be set and how to read. Also if it should be callback or not
// Functions
void
ArduinoZeroTemplateInit
(
void
);
...
...
This diff is collapsed.
Click to expand it.
src/macros.h
+
2
−
2
View file @
5bcd1242
...
...
@@ -93,8 +93,8 @@ Example for accessing register named REGISTER for the pin defined by PINMASK.
REG_PORT_REGISTERx = PINMASK; - x is the group number.
Example to set pin PB02:
REG_PORT_OUTSET1 = PORT_PB02;
It works but as you can see
that
you must yourself take care of the group because the macro
combine
d
the port and the group in the same definition.
It works but as you can see you must yourself take care of the group because the macro
combine
s
the port and the group in the same definition.
Read more here about writing to ports:
https://electronics.stackexchange.com/questions/139117/atmels-arm-programming-without-asf
...
...
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