3 #include <variant/hardware.h>
6 void platform_calibrate_ccount(void)
8 u32
uninitialized_var(a
);
9 u32
uninitialized_var(u
);
11 u32 tstamp
= S6_REG_GREG1
+ S6_GREG1_GLOBAL_TIMER
;
18 : "=&a"(u
) : "a"(t
), "a"(tstamp
));
24 ccount_freq
= b
* (100000UL / LOOPS
);