Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
multipass
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
derf
multipass
Commits
e12d6d52
Commit
e12d6d52
authored
4 years ago
by
Daniel Friesel
Browse files
Options
Downloads
Patches
Plain Diff
remove bench app (outdated, unused)
parent
9b61414e
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
src/app/bench/Makefile.inc
+0
-1
0 additions, 1 deletion
src/app/bench/Makefile.inc
src/app/bench/main.cc
+0
-63
0 additions, 63 deletions
src/app/bench/main.cc
with
0 additions
and
64 deletions
src/app/bench/Makefile.inc
deleted
100644 → 0
+
0
−
1
View file @
9b61414e
timer_cycles
?=
1
This diff is collapsed.
Click to expand it.
src/app/bench/main.cc
deleted
100644 → 0
+
0
−
63
View file @
9b61414e
#include
"arch.h"
#include
"driver/gpio.h"
#include
"driver/stdout.h"
#include
"driver/uptime.h"
#ifndef TIMER_CYCLES
#error makeflag timer_cycles=1 required
#endif
/*
* For ESP8266: Flash reads must be 4-Byte-aligned -> uint32_t array
*/
__attribute__
((
section
(
".text"
)))
uint32_t
arr
[
4096
];
//uint32_t arr[1024];
uint16_t
frob
;
inline
uint16_t
bench_read
(
uint32_t
*
arr
)
{
uint16_t
ts_pre
,
ts_post
;
ts_pre
=
uptime
.
get_cycles
();
frob
+=
*
arr
;
ts_post
=
uptime
.
get_cycles
();
return
ts_post
-
ts_pre
;
}
int
main
(
void
)
{
arch
.
setup
();
gpio
.
setup
();
kout
.
setup
();
uint16_t
ts1
=
uptime
.
get_cycles
();
uint16_t
ts2
=
uptime
.
get_cycles
();
uint16_t
ts3
=
uptime
.
get_cycles
();
uint16_t
ts4
=
uptime
.
get_cycles
();
uint16_t
i
;
//for (i = 0; i < 1024; i++) {
// arr[i] = 1;
//}
gpio
.
led_on
(
0
);
kout
<<
"Hello, World!"
<<
endl
;
kout
<<
"Test, World!"
<<
endl
;
kout
<<
dec
<<
ts1
<<
endl
;
kout
<<
dec
<<
ts2
<<
endl
;
kout
<<
dec
<<
ts3
<<
endl
;
kout
<<
dec
<<
ts4
<<
endl
;
for
(
int
i
=
0
;
i
<
sizeof
(
arr
)
/
sizeof
(
uint32_t
);
i
++
)
{
kout
<<
i
<<
": "
<<
bench_read
(
&
arr
[
i
])
<<
endl
;
}
for
(
signed
int
i
=
(
sizeof
(
arr
)
/
sizeof
(
uint32_t
))
-
1
;
i
>=
0
;
i
--
)
{
kout
<<
i
<<
": "
<<
bench_read
(
&
arr
[
i
])
<<
endl
;
}
kout
<<
frob
<<
endl
;
arch
.
idle_loop
();
return
0
;
}
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