Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
ring
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
ring
Commits
f4915a67
Commit
f4915a67
authored
4 years ago
by
Neil Gershenfeld (test)
Browse files
Options
Downloads
Patches
Plain Diff
128DB32
parent
0b0962c4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#9906
passed
4 years ago
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
GPIO/128DB32/ring.128DB32.c
+27
-0
27 additions, 0 deletions
GPIO/128DB32/ring.128DB32.c
GPIO/128DB32/ring.128DB32.make
+21
-0
21 additions, 0 deletions
GPIO/128DB32/ring.128DB32.make
index.html
+7
-0
7 additions, 0 deletions
index.html
with
55 additions
and
0 deletions
GPIO/128DB32/ring.128DB32.c
0 → 100644
+
27
−
0
View file @
f4915a67
//
// ring.128DB32.c
//
// 128DB32 ring oscillator test
//
// Neil Gershenfeld 1/9/21
//
// This work may be reproduced, modified, distributed,
// performed, and displayed for any purpose, but must
// acknowledge this project. Copyright is retained and
// must be preserved. The work is provided as is; no
// warranty is provided, and users accept all liability.
//
#include
<avr/io.h>
int
main
(
void
)
{
CPU_CCP
=
CCP_IOREG_gc
;
// unprotect clock
CLKCTRL
.
OSCHFCTRLA
=
9
<<
2
;
// select 24 MHz clock
PORTD
.
DIRSET
=
PIN5_bm
;
while
(
1
)
{
if
(
VPORTD
.
IN
&
PIN6_bm
)
VPORTD
.
OUT
&=
~
PIN5_bm
;
else
VPORTD
.
OUT
|=
PIN5_bm
;
}
}
This diff is collapsed.
Click to expand it.
GPIO/128DB32/ring.128DB32.make
0 → 100644
+
21
−
0
View file @
f4915a67
PROJECT
=
ring.128DB32
SOURCES
=
$(
PROJECT
)
.c
DEVICE
=
avr128db32
MMCU
=
$(
DEVICE
)
F_CPU
=
24000000
PACK
=
path to AVR-Dx_DFP atpack goes here
PORT
=
/dev/ttyUSB1
BAUD
=
9600
CFLAGS
=
-mmcu
=
$(
MMCU
)
-Wall
-Os
-DF_CPU
=
$(
F_CPU
)
$(PROJECT).hex
:
$(PROJECT).out
avr-objcopy
-O
ihex
$(
PROJECT
)
.out
$(
PROJECT
)
.hex
;
\
avr-size
--mcu
=
$(
MMCU
)
--format
=
avr
$(
PROJECT
)
.out
$(PROJECT).out
:
$(SOURCES)
avr-gcc
$(
CFLAGS
)
-I
./
-I
$(
PACK
)
/include
-B
$(
PACK
)
/gcc/dev/
$(
MMCU
)
-o
$(
PROJECT
)
.out
$(
SOURCES
)
pyupdi
:
$(PROJECT).hex
pyupdi
-d
$(
DEVICE
)
-c
$(
PORT
)
-b
$(
BAUD
)
-v
-f
$(
PROJECT
)
.hex
This diff is collapsed.
Click to expand it.
index.html
+
7
−
0
View file @
f4915a67
...
...
@@ -88,6 +88,13 @@ The GPIO test measures how quickly pins can communicate with a processor core; t
<td>
November, 2020
</td>
</tr>
<tr>
<td>
2.172
</td>
<td>
AVR128DB32
</td>
<td><a
href=
GPIO/128DB32/ring.128DB32.c
>
VPORT
</a>
(
<a
href=
GPIO/128DB32/ring.128DB32.make
>
Makefile
</a>
)
</td>
<td>
December, 2021
</td>
</tr>
<tr>
<td>
1.818
</td>
<td>
ATtiny412
</td>
...
...
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