diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-27 12:53:42 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-27 12:53:42 +0200 |
commit | 4c4d045329c4a149bae0b53952c39c14243e1870 (patch) | |
tree | 18ce1a31adb20421635738d627b46150b1fb9fea /robot/hypervisor.h | |
parent | 05318790dcbd6714a2adb3532e902a56a6638ca0 (diff) |
throw error on noisy serial channel
Diffstat (limited to 'robot/hypervisor.h')
-rw-r--r-- | robot/hypervisor.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/robot/hypervisor.h b/robot/hypervisor.h index b5dc0ab..589d324 100644 --- a/robot/hypervisor.h +++ b/robot/hypervisor.h @@ -4,6 +4,9 @@ #include <stdint.h> +/** amount of parallel timers */ +#define W2_HYPERVISOR_TIMER_COUNT (1) + extern uint64_t g_w2_hypervisor_cycles; extern uint64_t g_w2_hypervisor_uptime_ms; @@ -18,3 +21,8 @@ extern unsigned long g_w2_hypervisor_ema_mode_ms; * stores global variables and controls when other modules run */ void w2_hypervisor_main(); + +/** start timer with label `label` */ +void w2_hypervisor_time_start(uint8_t label); +/** stop timer with label `label` */ +uint64_t w2_hypervisor_time_end(uint8_t label); |