-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
32 lines (30 loc) · 770 Bytes
/
main.c
File metadata and controls
32 lines (30 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/******************************************************
* This is a test file to check the build process
* (c) Alexander Wachter
* V1.0
*******************************************************/
#include "lib/time.h"
#include "arch/include/gpio.h"
#include "arch/include/plat_init.h"
#include <stdint.h>
#include "lib/com.h"
#include "lib/registration.h"
int main()
{
time_t time_measurement;
plat_init();
reset_confirm();
tick(&time_measurement);
set_pin_high(PIN1);
while(1)
{
while(!run_benchmark);
tick(&time_measurement);
if(run_benchmark <= bmbs_benchmark_count)
bmbs_benchmarks[run_benchmark-1].entry();
run_benchmark = 0;
time_t time = tock(time_measurement);
put_result(TOTAL_TIME_ID, time);
}
return 0;
}