Commit Graph

8 Commits

Author SHA1 Message Date
Lephenixnoir c0d5b053d9
udpate to gint 2.4.0 2021-04-27 16:25:48 +02:00
Lephenixnoir a15c193ab7
renew the timer if it underflows 2020-10-20 16:28:57 +02:00
Lephenixnoir 7ae42ac662
explicitly specify the default Pϕ/4 prescaler
This makes no difference since this is the default.
2020-10-20 15:12:28 +02:00
Lephenixnoir 5be56fe2eb
let the user allocate contexts locally
This incompatible change modifies the allocation method for contexts.
Instead of managing a set of IDs in an malloc()-backed array, contexts
can now be allocated on the stack or static RAM.

Contexts are values of type [prof_t] and can be initialized to the value
provided by prof_make(). lvalues to contexts replace context IDs.

Finally, prof_exec() no longer requires a context to be specified, it
creates one on the fly.
2020-10-13 19:30:45 +02:00
Lephenixnoir 8a0bcfe903
fix a dead wrong call to free(prof_time) 2020-07-20 20:22:09 +02:00
Lephenixnoir 8b074a4e58
update to upcoming timer API of gint 2.1 2020-06-20 23:20:20 +02:00
Lephenixnoir 2c78a2cfeb basic working implementation with manual calls 2019-07-17 13:00:49 -04:00
Lephenixnoir d8883da3c0 build system 2019-07-17 13:00:20 -04:00