Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
atsamd51
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
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
hello-world
atsamd51
Commits
551d5d95
Commit
551d5d95
authored
5 years ago
by
Zach Fredin
Browse files
Options
Downloads
Patches
Plain Diff
updates to baremetal example
parent
7acf6ad8
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
baremetal/main.c
+6
-4
6 additions, 4 deletions
baremetal/main.c
baremetal/main.elf
+0
-0
0 additions, 0 deletions
baremetal/main.elf
with
6 additions
and
4 deletions
baremetal/main.c
+
6
−
4
View file @
551d5d95
...
...
@@ -2,14 +2,16 @@
int
main
(
void
)
{
int
i
;
while
(
1
)
{
REG_PORT_DIR0
|=
(
1
<<
17
);
REG_PORT_DIR0
&=
~
(
1
<<
19
);
REG_PORT_DIR0
|=
(
1
<<
19
);
while
(
1
)
{
REG_PORT_OUTSET0
|=
(
1
<<
17
);
REG_PORT_OUTCLR0
|=
(
1
<<
19
);
for
(
i
=
0
;
i
<
10000
;
i
++
)
{
__asm
(
"nop"
);
}
REG_PORT_
DI
R0
&
=
~
(
1
<<
17
);
REG_PORT_
DIR
0
|=
(
1
<<
19
);
REG_PORT_
OUTCL
R0
|
=
(
1
<<
17
);
REG_PORT_
OUTSET
0
|=
(
1
<<
19
);
for
(
i
=
0
;
i
<
10000
;
i
++
)
{
__asm
(
"nop"
);
}
...
...
This diff is collapsed.
Click to expand it.
baremetal/main.elf
+
0
−
0
View file @
551d5d95
No preview for this file type
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