From 1466f22725e10833cafe8917ef4a764b0dd45543 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Thu, 30 Jul 2020 17:03:45 +0200 Subject: [PATCH] Add burstdet code --- examples/headless/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/headless/main.c b/examples/headless/main.c index 7f108c2..cfcd36e 100644 --- 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); -- 2.30.2