Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Мирошниченко Лев Игоревич
riot-practice
Commits
ced9e239
Commit
ced9e239
authored
1 week ago
by
Мирошниченко Лев Игоревич
Browse files
Options
Download
Patches
Plain Diff
Add coremark configuration changes
parent
31556397
master
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tasks/task5_1/Makefile
+1
-0
tasks/task5_1/Makefile
tasks/task5_1/core_main.c
+4
-0
tasks/task5_1/core_main.c
tasks/task5_1/core_portme.h
+2
-2
tasks/task5_1/core_portme.h
with
7 additions
and
2 deletions
+7
-2
tasks/task5_1/Makefile
+
1
−
0
View file @
ced9e239
...
...
@@ -20,6 +20,7 @@ FEATURES_REQUIRED += periph_timer
FEATURES_REQUIRED
+=
periph_gpio_irq
USEMODULE
+=
ztimer
USEMODULE
+=
ztimer_usec
USEMODULE
+=
ztimer_sec
USEMODULE
+=
periph_gpio
CFLAGS
+=
-DMAIN_HAS_NOARGC
-w
...
...
This diff is collapsed.
Click to expand it.
tasks/task5_1/core_main.c
+
4
−
0
View file @
ced9e239
...
...
@@ -21,6 +21,7 @@ Original Author: Shay Gal-on
initial parameters, tun t he benchmark and report the results.
*/
#include
"coremark.h"
#include
"ztimer.h"
/* Function: iterate
Run the benchmark for a specified number of iterations.
...
...
@@ -390,5 +391,8 @@ for (i = 0; i < MULTITHREAD; i++) {
/* And last call any target specific code for finalizing */
portable_fini
(
&
(
results
[
0
].
port
));
for
(;;)
{
ztimer_sleep
(
ZTIMER_SEC
,
1
);
}
return
MAIN_RETURN_VAL
;
}
This diff is collapsed.
Click to expand it.
tasks/task5_1/core_portme.h
+
2
−
2
View file @
ced9e239
...
...
@@ -73,7 +73,7 @@ Original Author: Shay Gal-on
#define COMPILER_FLAGS "-O2"
#endif
#ifndef MEM_LOCATION
#define MEM_LOCATION "STAC
K
"
#define MEM_LOCATION "STA
TI
C"
#endif
/* Data Types :
...
...
@@ -127,7 +127,7 @@ typedef ee_u32 CORE_TICKS;
MEM_STACK - to allocate the data block on the stack (NYI).
*/
#ifndef MEM_METHOD
#define MEM_METHOD MEM_STAC
K
#define MEM_METHOD MEM_STA
TI
C
#endif
/* Configuration : MULTITHREAD
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets