Skip to content

Instantly share code, notes, and snippets.

View martinandrovich's full-sized avatar
💭
Either coding or crying about coding.

Martin Androvich martinandrovich

💭
Either coding or crying about coding.
View GitHub Profile
@martinandrovich
martinandrovich / tp_demo.c
Created March 7, 2019 18:24
Demo of TIMEPOINT module
// initialize systick to 200ns per systick
tp.init_systick(200, ns);
// call this only from the SYSTICK ISR
tp.systick();
// init test TIMEPOINT instances
TIMEPOINT* tp_test1 = tp.new();
TIMEPOINT* tp_test2 = tp.new();
TIMEPOINT* tp_test3 = tp.new();