projects
/
gram.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a3f544
)
Add burstdet code
author
Jean THOMAS
<git0@pub.jeanthomas.me>
Thu, 30 Jul 2020 15:03:45 +0000
(17:03 +0200)
committer
Jean THOMAS
<git0@pub.jeanthomas.me>
Thu, 30 Jul 2020 15:03:45 +0000
(17:03 +0200)
examples/headless/main.c
patch
|
blob
|
history
diff --git
a/examples/headless/main.c
b/examples/headless/main.c
index 7f108c29f8240626a5cdda282563d38c12e46fcd..cfcd36e5525a17d9e27f97cd3495165cbff8f68e 100644
(file)
--- a/
examples/headless/main.c
+++ b/
examples/headless/main.c
@@
-129,6
+129,8
@@
int main(int argc, char *argv[]) {
gram_init(&ctx, &profile, (void*)0x10000000, (void*)0x00009000, (void*)0x00008000);
printf("done\n");
+ gram_reset_burstdet(&ctx);
+
srand(time(NULL));
for (i = 0; i < kPatternSize; i++) {
pattern[i] = rand();
@@
-176,6
+178,8
@@
int main(int argc, char *argv[]) {
}
}
+ printf("Burstdet %d-%d\n", gram_read_burstdet(&ctx, 0), gram_read_burstdet(&ctx, 1));
+
printf("Memtest miss score (lowest is better): %d/100\n", (miss/4)*100/kPatternSize);
close(serial_port);